aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ProxyTest.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-05 13:38:13 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-05 18:07:05 +0000
commit67d52cf0d8baff02fd4337a62f1f9cd975edc18f (patch)
treea17ca628b4013026f5628e5841e44b48e6128a13 /tests/ProxyTest.cpp
parentbab680d891a201f27b87343a692a902d00d67c0a (diff)
sk_sp-ify GrResourceProvider some more
I believe this addresses the concerns of this particular bug (although more remains to be done) Bug: skia:5327 Change-Id: Ie82f08f87b3cf3d7986fe4eeb16a5d2553173913 Reviewed-on: https://skia-review.googlesource.com/18599 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests/ProxyTest.cpp')
-rw-r--r--tests/ProxyTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ProxyTest.cpp b/tests/ProxyTest.cpp
index dc34c76b66..75df5aaa3b 100644
--- a/tests/ProxyTest.cpp
+++ b/tests/ProxyTest.cpp
@@ -137,7 +137,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredProxyTest, reporter, ctxInfo) {
{
sk_sp<GrTexture> tex;
if (SkBackingFit::kApprox == fit) {
- tex.reset(provider->createApproxTexture(desc, 0));
+ tex = provider->createApproxTexture(desc, 0);
} else {
tex = provider->createTexture(desc, budgeted);
}
@@ -170,7 +170,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredProxyTest, reporter, ctxInfo) {
{
sk_sp<GrTexture> tex;
if (SkBackingFit::kApprox == fit) {
- tex.reset(provider->createApproxTexture(desc, 0));
+ tex = provider->createApproxTexture(desc, 0);
} else {
tex = provider->createTexture(desc, budgeted);
}