diff options
author | Robert Phillips <robertphillips@google.com> | 2017-09-20 15:58:44 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-20 20:21:50 +0000 |
commit | d4f100dad90ed5beb1b614464d8c4fcb22c0a993 (patch) | |
tree | 4194bbcbe1884a5454143a7579f656113cf8f00f /gm | |
parent | 8d4a5c75f07a70f71320a426f392783dbcf180ba (diff) |
Add native caching of uniquely keyed GrTextureProxies
Change-Id: I303fe025b7856b8d681a2d35b416c015bd468e1d
Reviewed-on: https://skia-review.googlesource.com/48300
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gm')
-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; } |