OSDN Git Service

Improve time to texture destruction
authorJohn Reck <jreck@google.com>
Mon, 22 May 2017 22:04:21 +0000 (15:04 -0700)
committerJohn Reck <jreck@google.com>
Tue, 23 May 2017 00:17:05 +0000 (17:17 -0700)
commit9a814875c4e3a98fea99dae623f22268a9afa38a
tree5d9a07eb07cdacea805609a723f9b35537010420
parent3915e25d41ce40f24fd41d8bcd6a058403d0bbc5
Improve time to texture destruction

Eliminate textureCache.mGarbage which is only cleared
in a trimMemory. Instead when we hit ~Bitmap post a
message to RenderThread to release the texture immediately

Bug: 38258699
Test: manual
Change-Id: I962ba275e89afb628ba02f74769287edbab9fed4
libs/hwui/Caches.cpp
libs/hwui/TextureCache.cpp
libs/hwui/TextureCache.h
libs/hwui/hwui/Bitmap.cpp
libs/hwui/renderstate/RenderState.cpp
libs/hwui/renderstate/RenderState.h
libs/hwui/renderthread/RenderProxy.cpp
libs/hwui/renderthread/RenderProxy.h