diff options
Diffstat (limited to 'include/gpu/GrRenderTargetContext.h')
-rw-r--r-- | include/gpu/GrRenderTargetContext.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/gpu/GrRenderTargetContext.h b/include/gpu/GrRenderTargetContext.h index 95d8c9d463..f728ef15b2 100644 --- a/include/gpu/GrRenderTargetContext.h +++ b/include/gpu/GrRenderTargetContext.h @@ -33,7 +33,6 @@ class GrRenderTarget; class GrRenderTargetOpList; class GrStyle; class GrSurface; -class GrTextureProxy; struct GrUserStencilSettings; class SkDrawFilter; struct SkIPoint; @@ -343,20 +342,17 @@ public: bool wasAbandoned() const; - GrRenderTarget* instantiate(); - GrRenderTarget* accessRenderTarget() { // TODO: usage of this entry point needs to be reduced and potentially eliminated // since it ends the deferral of the GrRenderTarget's allocation return fRenderTargetProxy->instantiate(fContext->textureProvider()); } - GrTextureProxy* asDeferredTexture(); - sk_sp<GrTexture> asTexture() { // TODO: usage of this entry point needs to be reduced and potentially eliminated // since it ends the deferral of the GrRenderTarget's allocation - // It's usage should migrate to asDeferredTexture + // It's usage should migrate to the soon-to-be-added asDeferredTexture which + // returns a GrTextureProxy return sk_ref_sp(this->accessRenderTarget()->asTexture()); } @@ -366,8 +362,6 @@ public: GrAuditTrail* auditTrail() { return fAuditTrail; } - bool isWrapped_ForTesting() const; - protected: GrRenderTargetContext(GrContext*, GrDrawingManager*, sk_sp<GrRenderTargetProxy>, sk_sp<SkColorSpace>, const SkSurfaceProps* surfaceProps, GrAuditTrail*, |