diff options
author | 2017-04-12 12:57:07 -0400 | |
---|---|---|
committer | 2017-04-12 17:46:17 +0000 | |
commit | 4ccd862d2940c47e7815c1309814e3de1c791e84 (patch) | |
tree | 505c83228e8a34843f54283f44c21e447661ae01 /include | |
parent | 6d2cf4726c0aa63c7ca5f17dba0b93d3534d9cb6 (diff) |
android-only api to reset the fields of a pixelref
BUG=skia:6494
Change-Id: I97c8a93849a13f0c5fd57c8a150ecc2ce363d8f3
Reviewed-on: https://skia-review.googlesource.com/13250
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPixelRef.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h index 9cad27979d..feaef8d1b8 100644 --- a/include/core/SkPixelRef.h +++ b/include/core/SkPixelRef.h @@ -255,6 +255,11 @@ protected: */ virtual size_t getAllocatedSizeInBytes() const; +#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK + // This is undefined if there are clients in-flight trying to use us + void android_only_reset(const SkImageInfo&, size_t rowBytes, sk_sp<SkColorTable>); +#endif + /** Return the mutex associated with this pixelref. This value is assigned in the constructor, and cannot change during the lifetime of the object. */ |