From cb88470d82d646972a7e83d04bb19444d87dd840 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Mon, 19 Mar 2018 14:01:21 -0400 Subject: Remove SkSurface::MakeFromBackendTextureAsRenderTarget variant that doesn't take SkColorType Bug: skia:6718 Change-Id: I3fabe2050394bfbd8ad2fa600d07323838308ae5 Reviewed-on: https://skia-review.googlesource.com/115087 Reviewed-by: Greg Daniel Commit-Queue: Brian Salomon --- include/core/SkSurface.h | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'include') diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h index 5a3887ef02..456ee362f2 100644 --- a/include/core/SkSurface.h +++ b/include/core/SkSurface.h @@ -274,30 +274,6 @@ public: sk_sp colorSpace, const SkSurfaceProps* surfaceProps); - /** Used to wrap a GPU-backed texture as a SkSurface. Skia will treat the texture as - a rendering target only, but unlike NewFromBackendRenderTarget, Skia will manage and own - the associated render target objects (but not the provided texture). Skia will not assume - ownership of the texture and the client must ensure the texture is valid for the lifetime - of the SkSurface. - - If SK_SUPPORT_GPU is defined as zero, has no effect and returns nullptr. - - @param context GPU context - @param backendTexture texture residing on GPU - @param origin one of: kBottomLeft_GrSurfaceOrigin, kTopLeft_GrSurfaceOrigin - @param sampleCnt samples per pixel, or 0 to disable full scene anti-aliasing - @param colorSpace range of colors - @param surfaceProps LCD striping orientation and setting for device independent - fonts; may be nullptr - @return SkSurface if all parameters are valid; otherwise, nullptr - */ - static sk_sp MakeFromBackendTextureAsRenderTarget(GrContext* context, - const GrBackendTexture& backendTexture, - GrSurfaceOrigin origin, - int sampleCnt, - sk_sp colorSpace, - const SkSurfaceProps* surfaceProps); - /** Used to wrap a GPU-backed texture as a SkSurface. Skia will treat the texture as a rendering target only, but unlike NewFromBackendRenderTarget, Skia will manage and own the associated render target objects (but not the provided texture). Skia will not assume -- cgit v1.2.3