diff options
Diffstat (limited to 'include/core/SkSurface.h')
-rw-r--r-- | include/core/SkSurface.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h index 4d38d300c9..e60f50e3fa 100644 --- a/include/core/SkSurface.h +++ b/include/core/SkSurface.h @@ -140,11 +140,19 @@ public: * Return a new surface whose contents will be drawn to an offscreen * render target, allocated by the surface. */ - static sk_sp<SkSurface> MakeRenderTarget( - GrContext*, SkBudgeted, const SkImageInfo&, int sampleCount, const SkSurfaceProps*); + static sk_sp<SkSurface> MakeRenderTarget(GrContext*, SkBudgeted, const SkImageInfo&, + int sampleCount, GrSurfaceOrigin, + const SkSurfaceProps*); + + static sk_sp<SkSurface> MakeRenderTarget(GrContext* context, SkBudgeted budgeted, + const SkImageInfo& info, int sampleCount, + const SkSurfaceProps* props) { + return MakeRenderTarget(context, budgeted, info, sampleCount, + kBottomLeft_GrSurfaceOrigin, props); + } static sk_sp<SkSurface> MakeRenderTarget(GrContext* gr, SkBudgeted b, const SkImageInfo& info) { - return MakeRenderTarget(gr, b, info, 0, nullptr); + return MakeRenderTarget(gr, b, info, 0, kBottomLeft_GrSurfaceOrigin, nullptr); } #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API |