diff options
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r-- | gm/image_pict.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp index 4a77797061..7b8adf1d45 100644 --- a/gm/image_pict.cpp +++ b/gm/image_pict.cpp @@ -152,7 +152,8 @@ public: : SkImageGenerator(info) , fCtx(SkRef(ctx)) { - sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info)); + sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, 0, + kTopLeft_GrSurfaceOrigin, nullptr)); if (surface) { surface->getCanvas()->clear(0); surface->getCanvas()->translate(-100, -100); |