diff options
author | Robert Phillips <robertphillips@google.com> | 2017-02-07 11:59:16 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-07 21:41:00 +0000 |
commit | e88cf6b7aa5deaeaa9dab18ada7d9d11e1e4be12 (patch) | |
tree | 9b3eef7407120c74dd9e9a7a38579d57ff52fe39 /tests/SpecialImageTest.cpp | |
parent | 0766e9b55e307eb1db9c683a12b8333833d65247 (diff) |
Remove asTextureRef from SkSpecialImage & update effects accordingly
This CL also renames SkSpecialImage::asTextureProxy to asTextureProxyRef
Change-Id: I5ed8e475bb9688453b825ae4500ed0e8d324b5ac
Reviewed-on: https://skia-review.googlesource.com/7995
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/SpecialImageTest.cpp')
-rw-r--r-- | tests/SpecialImageTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp index 94683a0cdf..c80163863b 100644 --- a/tests/SpecialImageTest.cpp +++ b/tests/SpecialImageTest.cpp @@ -65,10 +65,10 @@ static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* rep #if SK_SUPPORT_GPU //-------------- - // Test getTextureAsRef - as long as there is a context this should succeed + // Test asTextureProxyRef - as long as there is a context this should succeed if (context) { - sk_sp<GrTexture> texture(img->asTextureRef(context)); - REPORTER_ASSERT(reporter, texture); + sk_sp<GrTextureProxy> proxy(img->asTextureProxyRef(context)); + REPORTER_ASSERT(reporter, proxy); } #endif |