From 807371c15bd742efb98a9df6e1dee73e8bda8af5 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 20 Jul 2017 20:48:12 +0000 Subject: Revert "Remove GrBackendRenderTargetDesc in favor of GrBackendRenderTarget." This reverts commit e2d37c2a07f5473e5fc6fb65e9e23e14127580e9. Reason for revert: Original change's description: > Remove GrBackendRenderTargetDesc in favor of GrBackendRenderTarget. > > Also removes a reference to GrBackendTextureDesc in a comment and updates markdown docs. > > Docs-Preview: https://skia.org/?cl=24861 > Bug: skia: > Change-Id: Ic6490d5ef46953450e6dee69271397bb2b94d0d6 > Reviewed-on: https://skia-review.googlesource.com/24861 > Commit-Queue: Brian Salomon > Reviewed-by: Robert Phillips TBR=egdaniel@google.com,bsalomon@google.com,robertphillips@google.com Change-Id: I4b85b529727f0bf5aec21d87e725a8195666e2e5 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia: Reviewed-on: https://skia-review.googlesource.com/25182 Reviewed-by: Brian Salomon Commit-Queue: Brian Salomon --- include/gpu/GrBackendSurface.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/gpu/GrBackendSurface.h') diff --git a/include/gpu/GrBackendSurface.h b/include/gpu/GrBackendSurface.h index 55cec78548..c9a9ad02e6 100644 --- a/include/gpu/GrBackendSurface.h +++ b/include/gpu/GrBackendSurface.h @@ -108,6 +108,12 @@ public: #endif private: + // Temporary constructor which can be used to convert from a GrBackendRenderTargetDesc. + GrBackendRenderTarget(const GrBackendRenderTargetDesc& desc, GrBackend backend); + + // Friending for access to above constructor taking a GrBackendRenderTargetDesc + friend class SkSurface; + int fWidth; //