aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SpecialSurfaceTest.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-25 12:32:54 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-25 12:32:55 -0700
commitc91fd3447e1d3452d5e43e70e371896c80645b61 (patch)
treeec9a701b992bf549c2c220042fa44ce5c8cd8633 /tests/SpecialSurfaceTest.cpp
parent1eca11659e217eca138c230525a52deb3d52b2d3 (diff)
Add another dollop of sk_sp to SkSpecialImage and SkSpecialSurface
Diffstat (limited to 'tests/SpecialSurfaceTest.cpp')
-rw-r--r--tests/SpecialSurfaceTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/SpecialSurfaceTest.cpp b/tests/SpecialSurfaceTest.cpp
index 7169b5e8e2..8c560fef79 100644
--- a/tests/SpecialSurfaceTest.cpp
+++ b/tests/SpecialSurfaceTest.cpp
@@ -98,12 +98,12 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SpecialSurface_Gpu2, reporter, ctxInfo) {
desc.fWidth = kFullSize;
desc.fHeight = kFullSize;
- SkAutoTUnref<GrTexture> temp(ctxInfo.fGrContext->textureProvider()->createApproxTexture(desc));
+ sk_sp<GrTexture> temp(ctxInfo.fGrContext->textureProvider()->createApproxTexture(desc));
SkASSERT_RELEASE(temp);
const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
- sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromTexture(subset, temp));
+ sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromTexture(subset, std::move(temp)));
test_surface(surf, reporter, kPad);