commit | 8e1c4e672553ecae2745168514240705f3516773 | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Sun Feb 19 12:27:01 2017 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Feb 20 19:21:53 2017 +0000 |
tree | e6a30fef483a4701d7e4203129805880d79f4242 | |
parent | a3091099fa19da32e60433c0da835e9de3dd8ee9 [diff] [blame] |
Remove asTextureRef from SkSpecialImage & update effects accordingly (take 2) This CL also renames SkSpecialImage::asTextureProxy to asTextureProxyRef This is a reland of: https://skia-review.googlesource.com/c/7995/ (Remove asTextureRef from SkSpecialImage & update effects accordingly) It should be good to land since https://skia-review.googlesource.com/c/8701/ (Replace SkSpecialImage::makeTightSubset with asImage (take 2)) fixes the Chrome-side issue Change-Id: I3d88b2b3d23fd69f3fb914a69dacca96cbc038a4 Reviewed-on: https://skia-review.googlesource.com/8450 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/effects/SkImageSource.cpp b/src/effects/SkImageSource.cpp index 5769e67..9c32cf8 100644 --- a/src/effects/SkImageSource.cpp +++ b/src/effects/SkImageSource.cpp
@@ -93,6 +93,7 @@ // The dest is just an un-scaled integer translation of the entire image; return it offset->fX = iLeft; offset->fY = iTop; + return SkSpecialImage::MakeFromImage(SkIRect::MakeWH(fImage->width(), fImage->height()), fImage, ctx.outputProperties().colorSpace(), &source->props());