OSDN Git Service

Remove SkBitmap from ResourceCache
authorJohn Reck <jreck@google.com>
Thu, 7 May 2015 20:14:15 +0000 (13:14 -0700)
committerJohn Reck <jreck@google.com>
Thu, 7 May 2015 20:17:18 +0000 (13:17 -0700)
commite75ab4c26a4f661334845f7bc4132011694836a4
treeffbef5cc8893437299ad0d701c126120287ea464
parentb59642bf49e8703ebd88532f06628ef5a7d8b006
Remove SkBitmap from ResourceCache

Bug: 18928352

Fully-proper refcounting via SkBitmap/SkPixelRef, no more
side-channel refcounting via ResourceCache. Makes HWUI
more resilient to the bitmap being modified as well as
the SkBitmap's info & rowBytes() is updated every time
a DisplayList is recorded instead of relying on buggy
cache eviction logic

Change-Id: I2e8292d62ab6c257a2cfa1542387bf2bf1ade816
libs/hwui/DisplayList.cpp
libs/hwui/DisplayListCanvas.h
libs/hwui/ResourceCache.cpp
libs/hwui/ResourceCache.h