Loading libs/hwui/renderthread/CanvasContext.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -503,6 +503,10 @@ void CanvasContext::destroyHardwareResources(TreeObserver* observer) { for (const sp<RenderNode>& node : mRenderNodes) { node->destroyHardwareResources(observer); } Caches& caches = Caches::getInstance(); // Make sure to release all the textures we were owning as there won't // be another draw caches.textureCache.resetMarkInUse(this); mRenderPipeline->onDestroyHardwareResources(); } } Loading libs/hwui/renderthread/OpenGLPipeline.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -163,10 +163,6 @@ bool OpenGLPipeline::isContextReady() { } void OpenGLPipeline::onDestroyHardwareResources() { Caches& caches = Caches::getInstance(); // Make sure to release all the textures we were owning as there won't // be another draw caches.textureCache.resetMarkInUse(this); mRenderThread.renderState().flush(Caches::FlushMode::Layers); } Loading Loading
libs/hwui/renderthread/CanvasContext.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -503,6 +503,10 @@ void CanvasContext::destroyHardwareResources(TreeObserver* observer) { for (const sp<RenderNode>& node : mRenderNodes) { node->destroyHardwareResources(observer); } Caches& caches = Caches::getInstance(); // Make sure to release all the textures we were owning as there won't // be another draw caches.textureCache.resetMarkInUse(this); mRenderPipeline->onDestroyHardwareResources(); } } Loading
libs/hwui/renderthread/OpenGLPipeline.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -163,10 +163,6 @@ bool OpenGLPipeline::isContextReady() { } void OpenGLPipeline::onDestroyHardwareResources() { Caches& caches = Caches::getInstance(); // Make sure to release all the textures we were owning as there won't // be another draw caches.textureCache.resetMarkInUse(this); mRenderThread.renderState().flush(Caches::FlushMode::Layers); } Loading