am ca84c8b1: Merge "Revert "Force-use the pbuffer surface for destroy"" into lmp-mr1-dev
* commit 'ca84c8b1b0e364e01ce392f0dbca5132830a148d': Revert "Force-use the pbuffer surface for destroy"
This commit is contained in:
@@ -60,8 +60,6 @@ CanvasContext::~CanvasContext() {
|
|||||||
|
|
||||||
void CanvasContext::destroy() {
|
void CanvasContext::destroy() {
|
||||||
stopDrawing();
|
stopDrawing();
|
||||||
setSurface(NULL);
|
|
||||||
mEglManager.usePBufferSurface();
|
|
||||||
freePrefetechedLayers();
|
freePrefetechedLayers();
|
||||||
destroyHardwareResources();
|
destroyHardwareResources();
|
||||||
mAnimationContext->destroy();
|
mAnimationContext->destroy();
|
||||||
@@ -69,6 +67,7 @@ void CanvasContext::destroy() {
|
|||||||
delete mCanvas;
|
delete mCanvas;
|
||||||
mCanvas = 0;
|
mCanvas = 0;
|
||||||
}
|
}
|
||||||
|
setSurface(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CanvasContext::setSurface(ANativeWindow* window) {
|
void CanvasContext::setSurface(ANativeWindow* window) {
|
||||||
|
|||||||
Reference in New Issue
Block a user