Index: src/gpu/GrRenderTargetPriv.h |
diff --git a/src/gpu/GrRenderTargetPriv.h b/src/gpu/GrRenderTargetPriv.h |
index 59262f4b11229df0891dd3461476e16e24cb76fe..d1f68faff061e8c43fd010f8fa558da97dea59a7 100644 |
--- a/src/gpu/GrRenderTargetPriv.h |
+++ b/src/gpu/GrRenderTargetPriv.h |
@@ -21,12 +21,11 @@ public: |
GrStencilAttachment* getStencilAttachment() const { return fRenderTarget->fStencilAttachment; } |
/** |
- * If this render target already has a stencil buffer, return it. Otherwise attempt to attach |
- * one. |
+ * Attaches the GrStencilAttachment onto the render target. if stencil is a nullptr then the |
+ * currnetly attached GrStencilAttachment will be removed if one was previously attached. This |
bsalomon
2015/09/14 19:35:10
currently
|
+ * function returns false if there was any failure in attaching the GrStencilAttachment. |
*/ |
- GrStencilAttachment* attachStencilAttachment() const; |
- |
- void didAttachStencilAttachment(GrStencilAttachment*); |
+ bool attachStencilAttachment(GrStencilAttachment* stencil); |
private: |
explicit GrRenderTargetPriv(GrRenderTarget* renderTarget) : fRenderTarget(renderTarget) {} |