aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/image_pict.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r--gm/image_pict.cpp4
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;
}