Revert "Force-use the pbuffer surface for destroy"

bug:18528859

This reverts commit b945f2313a.

Change-Id: I6915624d356cb8570471eb3a5b8921f59b58db6d
This commit is contained in:
Chris Craik
2014-11-26 18:59:58 +00:00
parent b945f2313a
commit 9f81485a76

View File

@@ -60,8 +60,6 @@ CanvasContext::~CanvasContext() {
void CanvasContext::destroy() {
stopDrawing();
setSurface(NULL);
mEglManager.usePBufferSurface();
freePrefetechedLayers();
destroyHardwareResources();
mAnimationContext->destroy();
@@ -69,6 +67,7 @@ void CanvasContext::destroy() {
delete mCanvas;
mCanvas = 0;
}
setSurface(NULL);
}
void CanvasContext::setSurface(ANativeWindow* window) {