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/SkSpecialSurface.cpp | |
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/SkSpecialSurface.cpp')
-rw-r--r-- | src/core/SkSpecialSurface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp index 510926a1f5..b339c27476 100644 --- a/src/core/SkSpecialSurface.cpp +++ b/src/core/SkSpecialSurface.cpp @@ -137,9 +137,11 @@ public: ~SkSpecialSurface_Gpu() override { } sk_sp<SkSpecialImage> onMakeImageSnapshot() override { + // TODO: Supply color space from fDrawContext, once it's present sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeFromGpu(this->subset(), kNeedNewImageUniqueID_SpecialImage, fDrawContext->asTexture(), + nullptr, &this->props())); fDrawContext = nullptr; return tmp; |