diff options
author | brianosman <brianosman@google.com> | 2016-07-21 07:15:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-21 07:15:37 -0700 |
commit | afbf71dd924c7bb46ccdac49e7408b4b088563ff (patch) | |
tree | f914dccf3130dc11f0003e1c744ebb9e942a4736 /src/core/SkSpecialImage.h | |
parent | 1b93bd1e6eba3d14593490e4e24a34546638c8da (diff) |
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
Diffstat (limited to 'src/core/SkSpecialImage.h')
-rw-r--r-- | src/core/SkSpecialImage.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<SkSpecialImage> MakeFromGpu(const SkIRect& subset, uint32_t uniqueID, sk_sp<GrTexture>, + sk_sp<SkColorSpace>, const SkSurfaceProps* = nullptr, SkAlphaType at = kPremul_SkAlphaType); #endif |