diff options
author | Robert Phillips <robertphillips@google.com> | 2017-09-21 08:26:08 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-21 13:52:10 +0000 |
commit | ae7d3f3992708354a3284bb49066737e36a76f40 (patch) | |
tree | 5f629138138923176da38afe3cb5899fc54a66a5 /gm/image_pict.cpp | |
parent | 48497462c18533794979cb8020a982f4681fd635 (diff) |
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 <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r-- | gm/image_pict.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<SkSurface> surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, 0, + sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kYes, info, 0, kTopLeft_GrSurfaceOrigin, nullptr)); if (surface) { surface->getCanvas()->clear(0); @@ -188,7 +188,7 @@ protected: sk_sp<GrSurfaceContext> dstContext(fCtx->contextPriv().makeDeferredSurfaceContext( desc, SkBackingFit::kExact, - SkBudgeted::kNo)); + SkBudgeted::kYes)); if (!dstContext) { return nullptr; } |