OSDN Git Service

Yank ResourceCache out of Caches
authorJohn Reck <jreck@google.com>
Thu, 6 Nov 2014 17:45:10 +0000 (09:45 -0800)
committerJohn Reck <jreck@google.com>
Thu, 6 Nov 2014 17:45:10 +0000 (09:45 -0800)
commita35778c799e8073a42b9e22191bde9d838327ab7
treef4d74fc026f8dcf6d8ea8e5a18be30a14b990b70
parentb9744c1c1f5e8cc936da7f1832665f77ad5bb18f
Yank ResourceCache out of Caches

Bug: 17947547

Pull the ResourceCache (aka, ref-counting side channel) out of
Caches so that DisplayListRenderer doesn't use Caches, avoiding
the risk of instantiating Caches on the wrong thread or
without a GL context

Change-Id: I7d63b70b3b0a0163308c5dedd6ef255eadebe8fd
core/jni/android/graphics/Bitmap.cpp
core/jni/android/graphics/NinePatch.cpp
core/jni/android/graphics/Path.cpp
libs/hwui/Caches.h
libs/hwui/DisplayList.cpp
libs/hwui/DisplayListRenderer.cpp
libs/hwui/DisplayListRenderer.h
libs/hwui/RenderNode.cpp
libs/hwui/ResourceCache.cpp
libs/hwui/ResourceCache.h