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:
parent
3390e15269
commit
5c446570ed
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user