diff options
author | 2017-04-11 12:03:44 -0400 | |
---|---|---|
committer | 2017-04-11 16:38:17 +0000 | |
commit | 7a542c559a6e584107b94e6254ac3c7f9f24b591 (patch) | |
tree | 9186b5ae154b580e20b3dc40f437e44f546c467b /include | |
parent | 77443974ea96912fa39079a4bf82ab791ec3c922 (diff) |
Change bitmapcache to not rely on lockpixels.
The Rec in the cache is the owner of the pixel memory
- discardable or
- malloc
Each external client has a pixelref that just points to those pixels,
and whose destructor will notify the rec.
This eliminates the dependency on lockPixels in pixelref, freeing us
to remove that entirely from pixelref.
Bug: skia:
Change-Id: If45ed0ae202a1211336626364235215253e8aa7c
Reviewed-on: https://skia-review.googlesource.com/10300
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPixelRef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h index 286c929c8b..ac2e45e5fd 100644 --- a/include/core/SkPixelRef.h +++ b/include/core/SkPixelRef.h @@ -316,6 +316,7 @@ private: friend class SkImage_Gpu; friend class SkImageCacherator; friend class SkSpecialImage_Gpu; + friend void SkBitmapCache_setImmutableWithID(SkPixelRef*, uint32_t); typedef SkRefCnt INHERITED; }; |