diff options
author | 2016-07-20 13:55:39 -0700 | |
---|---|---|
committer | 2016-07-20 13:55:39 -0700 | |
commit | dddbe380b0e6b690041a4e020aefe57f1b21691a (patch) | |
tree | 4a2afaa3617f174558fdd544dac7d8205646facd /gm/image_pict.cpp | |
parent | 7d46f4af7dc759002537a172af121f2bfe200981 (diff) |
Adding an SkColorSpace to SkImage_Gpu
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2165703003
Review-Url: https://codereview.chromium.org/2165703003
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r-- | gm/image_pict.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp index fb3e5c6319..e8cd5e0748 100644 --- a/gm/image_pict.cpp +++ b/gm/image_pict.cpp @@ -332,6 +332,7 @@ protected: // No API to draw a GrTexture directly, so we cheat and create a private image subclass SkAutoTUnref<SkImage> image(new SkImage_Gpu(cache->info().width(), cache->info().height(), cache->uniqueID(), kPremul_SkAlphaType, texture, + sk_ref_sp(cache->info().colorSpace()), SkBudgeted::kNo)); canvas->drawImage(image, x, y); #endif |