commit | 83f2e5ac136c006a7839945f8420f978b672b2cd | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Thu Mar 24 06:31:25 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Mar 24 06:31:25 2016 -0700 |
tree | 1aae275deaf982fb9c327adf6c81a7aa82a57be8 | |
parent | 1579e3c376a9ee8c694a64f9c87457cea13ba442 [diff] [blame] |
Switch SkColorFilterImageFilter over to new onFilterImage interface TBR=bsalomon@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1782083002 Committed: https://skia.googlesource.com/skia/+/ec950c4d215c6141b31b98ed6a8182a97baeb8b9 Review URL: https://codereview.chromium.org/1782083002
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp index f49f228..2b371d6 100644 --- a/src/core/SkSpecialImage.cpp +++ b/src/core/SkSpecialImage.cpp
@@ -67,6 +67,10 @@ return nullptr; } + if (bmp.empty()) { + return SkSpecialImage::MakeFromRaster(proxy, SkIRect::MakeEmpty(), bmp); + } + SkAutoTUnref<GrTexture> resultTex( GrRefCachedBitmapTexture(context, bmp, GrTextureParams::ClampNoFilter())); if (!resultTex) {