Make updateSurface non-blocking
am: cd68212f08
Change-Id: I691e5a2979e92572440ad7c410e8f0cec6169beb
This commit is contained in:
@@ -519,16 +519,6 @@ public final class ThreadedRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method should be invoked whenever the current hardware renderer
|
|
||||||
* context should be reset.
|
|
||||||
*
|
|
||||||
* @param surface The surface to hardware accelerate
|
|
||||||
*/
|
|
||||||
void invalidate(Surface surface) {
|
|
||||||
updateSurface(surface);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detaches the layer's surface texture from the GL context and releases
|
* Detaches the layer's surface texture from the GL context and releases
|
||||||
* the texture id
|
* the texture id
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ void RenderProxy::updateSurface(const sp<Surface>& surface) {
|
|||||||
SETUP_TASK(updateSurface);
|
SETUP_TASK(updateSurface);
|
||||||
args->context = mContext;
|
args->context = mContext;
|
||||||
args->surface = surface.get();
|
args->surface = surface.get();
|
||||||
postAndWait(task);
|
post(task);
|
||||||
}
|
}
|
||||||
|
|
||||||
CREATE_BRIDGE2(pauseSurface, CanvasContext* context, Surface* surface) {
|
CREATE_BRIDGE2(pauseSurface, CanvasContext* context, Surface* surface) {
|
||||||
|
|||||||
Reference in New Issue
Block a user