diff options
author | Robert Phillips <robertphillips@google.com> | 2018-03-26 14:32:10 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-26 19:02:03 +0000 |
commit | 19d311b1e3f48d0f04585ce199c377956af52be4 (patch) | |
tree | 38de1333999a220267c190f992daa9348c26adf6 | |
parent | 68ff92f78addb3c862cc28bcee2b97ff4679c290 (diff) |
Remove copy of TableColorFilter data when GPU rendering
Change-Id: I8cb6059a175e0ef6bd766e3ad2254c893c11bed3
Reviewed-on: https://skia-review.googlesource.com/116522
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
-rw-r--r-- | src/effects/SkTableColorFilter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp index dda50268fb..c6bc538341 100644 --- a/src/effects/SkTableColorFilter.cpp +++ b/src/effects/SkTableColorFilter.cpp @@ -255,6 +255,7 @@ bool SkTable_ColorFilter::asComponentTable(SkBitmap* table) const { } bitmapPixels += 256; } + bmp->setImmutable(); fBitmap = bmp; } *table = *fBitmap; |