diff options
author | Brian Osman <brianosman@google.com> | 2016-12-16 11:55:18 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-16 18:09:02 +0000 |
commit | 138ea97c1acaed4b968540220724dd5bf671e8db (patch) | |
tree | bd98e545885ec57bf16cc457e10766655b2fec22 /tests/SkResourceCacheTest.cpp | |
parent | 8ced688a3a3489ac696e5ee2d10557b389fd4ebf (diff) |
Add color space to picture image as a creation parameter
This gives a picture image a preferred "native" color space, which
facilitates caching and other things.
BUG=skia:
Change-Id: I95988c14d17f96d7d870b3d1c3b723c36e2c170d
Reviewed-on: https://skia-review.googlesource.com/6158
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/SkResourceCacheTest.cpp')
-rw-r--r-- | tests/SkResourceCacheTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/SkResourceCacheTest.cpp b/tests/SkResourceCacheTest.cpp index c8da135b0d..ed2ff74b56 100644 --- a/tests/SkResourceCacheTest.cpp +++ b/tests/SkResourceCacheTest.cpp @@ -329,7 +329,8 @@ DEF_TEST(BitmapCache_discarded_image, reporter) { SkCanvas* canvas = recorder.beginRecording(10, 10); canvas->clear(SK_ColorCYAN); return SkImage::MakeFromPicture(recorder.finishRecordingAsPicture(), - SkISize::Make(10, 10), nullptr, nullptr); + SkISize::Make(10, 10), nullptr, nullptr, + SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named)); }); } } |