diff options
author | Robert Phillips <robertphillips@google.com> | 2018-03-08 09:51:04 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-08 15:26:51 +0000 |
commit | c7c2baf0cf264b9d0d9c0f67cfb827a7e4a5e32c (patch) | |
tree | 6af65cc34a6b4557fd24d029c447c2822bdb9699 /src/core/SkMask.h | |
parent | 8c827ce7ea5b624792a9261f65d9515deb56a63d (diff) |
Additional DDL playback cleanup
This operates in tandem with https://skia-review.googlesource.com/c/skia/+/112702 (
Remove GrRestrictedAtlasManager) to get DDL playback working.
Change-Id: I6c2178fde760677bf79f2cf0a2dee8b5990aa5bc
Reviewed-on: https://skia-review.googlesource.com/113121
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/core/SkMask.h')
-rw-r--r-- | src/core/SkMask.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/SkMask.h b/src/core/SkMask.h index d4c5e3599c..1acd8f9cc3 100644 --- a/src/core/SkMask.h +++ b/src/core/SkMask.h @@ -146,6 +146,12 @@ public: SkMask::FreeImage(fImage); } + uint8_t* release() { + uint8_t* tmp = fImage; + fImage = nullptr; + return tmp; + } + private: uint8_t* fImage; }; |