aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContextPriv.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-01-27 10:58:31 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-27 17:00:38 +0000
commit26caf898f1db66bc6923b61ef902132bbdff51dd (patch)
tree09f27bfcf01e42c750a694f8ea5310d1e5168207 /src/gpu/GrContextPriv.h
parent882ccafee00a7d8d924258d59606fa878c0d9777 (diff)
Add utilities to create GrSurfaceProxy & GrSurfaceContext from backend descs
Change-Id: Iff2278de8ddd6c0dff74e5cf1996702bad31217b Reviewed-on: https://skia-review.googlesource.com/7647 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrContextPriv.h')
-rw-r--r--src/gpu/GrContextPriv.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrContextPriv.h b/src/gpu/GrContextPriv.h
index ed9691c656..8ad3483e0d 100644
--- a/src/gpu/GrContextPriv.h
+++ b/src/gpu/GrContextPriv.h
@@ -35,11 +35,11 @@ public:
SkBackingFit dstFit,
SkBudgeted isDstBudgeted);
- // TODO: add:
- // sk_sp<GrSurfaceContext> makeBackendSurfaceContext(const GrBackendTextureDesc& desc,
- // sk_sp<SkColorSpace> colorSpace,
- // GrWrapOwnership = kBorrow_GrWrapOwnership);
- // Maybe add a 'surfaceProps' param that is ignored for non-RTs?
+ // TODO: Maybe add a 'surfaceProps' param (that is ignored for non-RTs) and remove
+ // makeBackendTextureRenderTargetContext & makeBackendTextureAsRenderTargetRenderTargetContext
+ sk_sp<GrSurfaceContext> makeBackendSurfaceContext(const GrBackendTextureDesc& desc,
+ sk_sp<SkColorSpace> colorSpace,
+ GrWrapOwnership = kBorrow_GrWrapOwnership);
sk_sp<GrRenderTargetContext> makeBackendTextureRenderTargetContext(
const GrBackendTextureDesc& desc,