// Assuming glContext != null
final NativeSurface surface = glDrawble.getNativeSurface();
final ProxySurface proxySurface = (surface instanceof ProxySurface) ? (ProxySurface)surface : null;
final int lockRes = surface.lockSurface();
try {
// propagate new size - seems not relevant here
if (proxySurface != null) {
final UpstreamSurfaceHook ush = proxySurface.getUpstreamSurfaceHook();