Index: src/gpu/GrClipMaskManager.h |
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h |
index fef47e4c3ccb0f6e17d0cf28104fea46884e72ff..ed3d4312684f76e5a23f18e55c1a4c5af40d76f3 100644 |
--- a/src/gpu/GrClipMaskManager.h |
+++ b/src/gpu/GrClipMaskManager.h |
@@ -9,7 +9,7 @@ |
#include "GrClipMaskCache.h" |
#include "GrContext.h" |
-#include "GrDrawState.h" |
+#include "GrPipelineBuilder.h" |
#include "GrReducedClip.h" |
#include "GrStencil.h" |
#include "GrTexture.h" |
@@ -48,9 +48,9 @@ public: |
* the manager when it must install additional effects to implement the |
* clip. devBounds is optional but can help optimize clipping. |
*/ |
- bool setupClipping(GrDrawState*, |
- GrDrawState::AutoRestoreEffects*, |
- GrDrawState::AutoRestoreStencil*, |
+ bool setupClipping(GrPipelineBuilder*, |
+ GrPipelineBuilder::AutoRestoreEffects*, |
+ GrPipelineBuilder::AutoRestoreStencil*, |
GrScissorState*, |
const GrClipData* clipDataIn, |
const SkRect* devBounds); |
@@ -94,8 +94,8 @@ private: |
// Attempts to install a series of coverage effects to implement the clip. Return indicates |
// whether the element list was successfully converted to effects. |
- bool installClipEffects(GrDrawState*, |
- GrDrawState::AutoRestoreEffects*, |
+ bool installClipEffects(GrPipelineBuilder*, |
+ GrPipelineBuilder::AutoRestoreEffects*, |
const GrReducedClip::ElementList&, |
const SkVector& clipOffset, |
const SkRect* devBounds); |
@@ -133,14 +133,14 @@ private: |
const SkIRect& clipSpaceIBounds, |
bool willUpload); |
- bool useSWOnlyPath(const GrDrawState*, |
+ bool useSWOnlyPath(const GrPipelineBuilder*, |
const SkVector& clipToMaskOffset, |
const GrReducedClip::ElementList& elements); |
// Draws a clip element into the target alpha mask. The caller should have already setup the |
// desired blend operation. Optionally if the caller already selected a path renderer it can |
// be passed. Otherwise the function will select one if the element is a path. |
- bool drawElement(GrDrawState*, |
+ bool drawElement(GrPipelineBuilder*, |
const SkMatrix& viewMatrix, |
GrTexture* target, |
const SkClipStack::Element*, |
@@ -149,12 +149,12 @@ private: |
// Determines whether it is possible to draw the element to both the stencil buffer and the |
// alpha mask simultaneously. If so and the element is a path a compatible path renderer is |
// also returned. |
- bool canStencilAndDrawElement(GrDrawState*, |
+ bool canStencilAndDrawElement(GrPipelineBuilder*, |
GrTexture* target, |
GrPathRenderer**, |
const SkClipStack::Element*); |
- void mergeMask(GrDrawState*, |
+ void mergeMask(GrPipelineBuilder*, |
GrTexture* dstMask, |
GrTexture* srcMask, |
SkRegion::Op op, |
@@ -170,7 +170,7 @@ private: |
* updates the GrGpu with stencil settings that account stencil-based |
* clipping. |
*/ |
- void setDrawStateStencil(GrDrawState*, GrDrawState::AutoRestoreStencil*); |
+ void setPipelineBuilderStencil(GrPipelineBuilder*, GrPipelineBuilder::AutoRestoreStencil*); |
/** |
* Adjusts the stencil settings to account for interaction with stencil |