Loading libs/hwui/Caches.h +2 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,8 @@ public: */ bool init(); bool isInitialized() { return mInitialized; } /** * Flush the cache. * Loading libs/hwui/Layer.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -197,7 +197,12 @@ void Layer::generateTexture() { } void Layer::clearTexture() { // There's a rare possibility that Caches could have been destroyed already // since this method is queued up as a task. // Since this is a reset method, treat this as non-fatal. if (caches.isInitialized()) { caches.textureState().unbindTexture(texture.mId); } texture.mId = 0; } Loading Loading
libs/hwui/Caches.h +2 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,8 @@ public: */ bool init(); bool isInitialized() { return mInitialized; } /** * Flush the cache. * Loading
libs/hwui/Layer.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -197,7 +197,12 @@ void Layer::generateTexture() { } void Layer::clearTexture() { // There's a rare possibility that Caches could have been destroyed already // since this method is queued up as a task. // Since this is a reset method, treat this as non-fatal. if (caches.isInitialized()) { caches.textureState().unbindTexture(texture.mId); } texture.mId = 0; } Loading