Fix memory leak in DeferredProxyTest

Change-Id: Ib183f71e972b0756b8558098dabe32b6934c0847
Reviewed-on: https://skia-review.googlesource.com/7866
Commit-Queue: Robert Phillips <robertphillips@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Hal Canary <halcanary@google.com>
This commit is contained in:
Robert Phillips 2017-02-01 10:53:20 -05:00 committed by Skia Commit-Bot
parent 3390e15269
commit 5c446570ed

View File

@ -134,9 +134,9 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredProxyTest, reporter, ctxInfo) {
{
sk_sp<GrTexture> tex;
if (SkBackingFit::kApprox == fit) {
tex = sk_ref_sp(provider->createApproxTexture(desc));
tex.reset(provider->createApproxTexture(desc));
} else {
tex = sk_ref_sp(provider->createTexture(desc, budgeted));
tex.reset(provider->createTexture(desc, budgeted));
}
sk_sp<GrSurfaceProxy> sProxy(GrSurfaceProxy::MakeDeferred(
@ -167,9 +167,9 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredProxyTest, reporter, ctxInfo) {
{
sk_sp<GrTexture> tex;
if (SkBackingFit::kApprox == fit) {
tex = sk_ref_sp(provider->createApproxTexture(desc));
tex.reset(provider->createApproxTexture(desc));
} else {
tex = sk_ref_sp(provider->createTexture(desc, budgeted));
tex.reset(provider->createTexture(desc, budgeted));
}
sk_sp<GrSurfaceProxy> sProxy(GrSurfaceProxy::MakeDeferred(caps,