From afbf71dd924c7bb46ccdac49e7408b4b088563ff Mon Sep 17 00:00:00 2001 From: brianosman Date: Thu, 21 Jul 2016 07:15:37 -0700 Subject: Adding color space to SkSpecialImage Mostly means that GPU backed special images need to be supplied (and store) a color space object. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2163343002 Review-Url: https://codereview.chromium.org/2163343002 --- src/core/SkSpecialImage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/SkSpecialImage.h') diff --git a/src/core/SkSpecialImage.h b/src/core/SkSpecialImage.h index 9afd64fa45..3c29882801 100644 --- a/src/core/SkSpecialImage.h +++ b/src/core/SkSpecialImage.h @@ -50,6 +50,7 @@ public: int width() const { return fSubset.width(); } int height() const { return fSubset.height(); } const SkIRect& subset() const { return fSubset; } + SkColorSpace* getColorSpace() const; uint32_t uniqueID() const { return fUniqueID; } virtual bool isOpaque() const { return false; } @@ -77,6 +78,7 @@ public: static sk_sp MakeFromGpu(const SkIRect& subset, uint32_t uniqueID, sk_sp, + sk_sp, const SkSurfaceProps* = nullptr, SkAlphaType at = kPremul_SkAlphaType); #endif -- cgit v1.2.3