diff options
author | robertphillips <robertphillips@google.com> | 2016-03-07 12:45:14 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-07 12:45:14 -0800 |
commit | 4418dbac3386f26c8da62ab242be9c178961eb18 (patch) | |
tree | d94be5d8f77cb85fd6bc908ef7ebc93357ce4908 /tests/SpecialImageTest.cpp | |
parent | 19de504eaee0c18cac4f840e0ca336a1e41b65eb (diff) |
Swap over to using SkImageFilter::filterImage instead of filterImageDeprecated
This CL relies on https://codereview.chromium.org/1757983002/ (Add SkSpecialImage-based methods to SkImageFilter)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1762013002
TBR=bsalomon@google.com
Review URL: https://codereview.chromium.org/1762013002
Diffstat (limited to 'tests/SpecialImageTest.cpp')
-rw-r--r-- | tests/SpecialImageTest.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp index bde140d2ce..3dd6da92f4 100644 --- a/tests/SpecialImageTest.cpp +++ b/tests/SpecialImageTest.cpp @@ -11,25 +11,12 @@ #include "SkSpecialImage.h" #include "SkSpecialSurface.h" #include "Test.h" +#include "TestingSpecialImageAccess.h" #if SK_SUPPORT_GPU #include "GrContext.h" #endif -class TestingSpecialImageAccess { -public: - static const SkIRect& Subset(const SkSpecialImage* img) { - return img->subset(); - } - - static bool PeekPixels(const SkSpecialImage* img, SkPixmap* pixmap) { - return img->peekPixels(pixmap); - } - - static GrTexture* PeekTexture(const SkSpecialImage* img) { - return img->peekTexture(); - } -}; // This test creates backing resources exactly sized to [kFullSize x kFullSize]. // It then wraps them in an SkSpecialImage with only the center (red) region being active. |