diff options
author | robertphillips <robertphillips@google.com> | 2016-04-25 12:32:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-25 12:32:55 -0700 |
commit | c91fd3447e1d3452d5e43e70e371896c80645b61 (patch) | |
tree | ec9a701b992bf549c2c220042fa44ce5c8cd8633 /tests/SpecialSurfaceTest.cpp | |
parent | 1eca11659e217eca138c230525a52deb3d52b2d3 (diff) |
Add another dollop of sk_sp to SkSpecialImage and SkSpecialSurface
This is split out of https://codereview.chromium.org/1914883002/ (Refactor drawContext/RenderTarget creation)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1913743002
Review URL: https://codereview.chromium.org/1913743002
Diffstat (limited to 'tests/SpecialSurfaceTest.cpp')
-rw-r--r-- | tests/SpecialSurfaceTest.cpp | 4 |
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); |