From ae7d3f3992708354a3284bb49066737e36a76f40 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Thu, 21 Sep 2017 08:26:08 -0400 Subject: Add native caching of uniquely keyed GrTextureProxies (take 2) TBR=bsalomon@google.com Change-Id: I590dcdc85fb60706c7eb06277694791dc04c9141 Reviewed-on: https://skia-review.googlesource.com/49543 Reviewed-by: Brian Salomon Commit-Queue: Robert Phillips --- gm/image_pict.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gm/image_pict.cpp') diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp index 73fedec3a0..25c3b1c085 100644 --- a/gm/image_pict.cpp +++ b/gm/image_pict.cpp @@ -152,7 +152,7 @@ public: : SkImageGenerator(info) , fCtx(SkRef(ctx)) { - sk_sp surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, 0, + sk_sp surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kYes, info, 0, kTopLeft_GrSurfaceOrigin, nullptr)); if (surface) { surface->getCanvas()->clear(0); @@ -188,7 +188,7 @@ protected: sk_sp dstContext(fCtx->contextPriv().makeDeferredSurfaceContext( desc, SkBackingFit::kExact, - SkBudgeted::kNo)); + SkBudgeted::kYes)); if (!dstContext) { return nullptr; } -- cgit v1.2.3