commit | 4df1656f0f728ed428c3ab8f7beb19703b27c28e | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Thu Apr 28 15:09:34 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Apr 28 15:09:34 2016 -0700 |
tree | 6c3c7fd910308f6e2b12a05df43be1f7cc279825 | |
parent | 175dd9b5e3d7d749738dac743d2ac360b5340187 [diff] [blame] |
Tighten up SkSpecialSurface factory functions This is split out of https://codereview.chromium.org/1930013002/ ((Mostly) Retract GrRenderTarget from SkGpuDevice) GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1925313002 Review-Url: https://codereview.chromium.org/1925313002
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp index 54e9a60..56b3aaf 100644 --- a/tests/ImageFilterTest.cpp +++ b/tests/ImageFilterTest.cpp
@@ -370,12 +370,9 @@ static sk_sp<SkSpecialSurface> create_empty_special_surface(GrContext* context, int widthHeight) { #if SK_SUPPORT_GPU if (context) { - GrSurfaceDesc desc; - desc.fConfig = kSkia8888_GrPixelConfig; - desc.fFlags = kRenderTarget_GrSurfaceFlag; - desc.fWidth = widthHeight; - desc.fHeight = widthHeight; - return SkSpecialSurface::MakeRenderTarget(context, desc); + return SkSpecialSurface::MakeRenderTarget(context, + widthHeight, widthHeight, + kSkia8888_GrPixelConfig); } else #endif {