Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2231)

Unified Diff: src/gpu/GrClipMaskManager.h

Issue 858343002: Rename GrOptDrawState to GrPipeline and GrDrawState to GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more nits Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrBitmapTextContext.cpp ('k') | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/gpu/GrBitmapTextContext.cpp ('k') | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698