From 96be9df1300b2281641b038ef11064157f6e0b41 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Fri, 21 Jul 2017 14:17:45 +0000 Subject: Revert "Reduce dependence on GrSurface's origin field" This reverts commit 467022b1861033d968195687da15270c208279ff. Reason for revert: GrAHardwareBufferImageGenerator.cpp Original change's description: > Reduce dependence on GrSurface's origin field > > Unfortunately, GrGPU and its ilk are still using the GrSurface's origin a lot. I will clean that up in a second CL. > > Change-Id: Iba729440ce8ea8d24bb7f4e5de55ed576a0f176d > Reviewed-on: https://skia-review.googlesource.com/24700 > Commit-Queue: Robert Phillips > Reviewed-by: Brian Salomon TBR=bsalomon@google.com,robertphillips@google.com Change-Id: I1b3f5c3b82d250ac164beb1d5c83abb6c3c6ab3b No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/25620 Reviewed-by: Robert Phillips Commit-Queue: Robert Phillips --- gm/image_pict.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gm/image_pict.cpp') diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp index 7b8adf1d45..4a77797061 100644 --- a/gm/image_pict.cpp +++ b/gm/image_pict.cpp @@ -152,8 +152,7 @@ public: : SkImageGenerator(info) , fCtx(SkRef(ctx)) { - sk_sp surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, 0, - kTopLeft_GrSurfaceOrigin, nullptr)); + sk_sp surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info)); if (surface) { surface->getCanvas()->clear(0); surface->getCanvas()->translate(-100, -100); -- cgit v1.2.3