diff options
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index 6933b2f1e23c..63fa788ba251 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -576,7 +576,7 @@ void CanvasContext::markLayerInUse(RenderNode* node) { static void destroyPrefetechedNode(RenderNode* node) { ALOGW("Incorrectly called buildLayer on View: %s, destroying layer...", node->getName()); - node->destroyHardwareResources(); + node->destroyHardwareResources(nullptr); node->decStrong(nullptr); } @@ -641,7 +641,7 @@ void CanvasContext::destroyHardwareResources() { if (mEglManager.hasEglContext()) { freePrefetechedLayers(); for (const sp<RenderNode>& node : mRenderNodes) { - node->destroyHardwareResources(); + node->destroyHardwareResources(nullptr); } Caches& caches = Caches::getInstance(); // Make sure to release all the textures we were owning as there won't |