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

Unified Diff: src/gpu/GrClipMaskManager.h

Issue 1966903004: Remove clip from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@fix2_nvpr
Patch Set: Created 4 years, 7 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
Index: src/gpu/GrClipMaskManager.h
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index 096dafd2e575ab743c40d3b7adc50eeb7b227a6f..2b70f02e38689504749ab7096169c146262035d6 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -17,6 +17,7 @@
#include "SkTLList.h"
#include "SkTypes.h"
+class GrClip;
class GrDrawTarget;
class GrPathRenderer;
class GrPathRendererChain;
@@ -56,7 +57,7 @@ private:
*/
class GrClipMaskManager : SkNoncopyable {
public:
- GrClipMaskManager(GrDrawTarget* owner, bool debugClipBatchToBounds);
+ GrClipMaskManager(GrDrawTarget* owner);
/**
* Creates a clip mask if necessary as a stencil buffer or alpha texture
@@ -64,12 +65,8 @@ public:
* then the draw can be skipped. devBounds is optional but can help optimize
* clipping.
*/
- bool setupClipping(const GrPipelineBuilder&, const SkRect* devBounds, GrAppliedClip*);
-
- bool setupScissorClip(const GrPipelineBuilder& pipelineBuilder,
- const SkIRect& scissor,
- const SkRect* devBounds,
- GrAppliedClip* out);
+ bool setupClipping(const GrPipelineBuilder&, const GrClip&, const SkRect* devBounds,
+ GrAppliedClip*);
private:
inline GrContext* getContext();
@@ -150,7 +147,6 @@ private:
GrDrawTarget* fDrawTarget; // This is our owning draw target.
StencilClipMode fClipMode;
- bool fDebugClipBatchToBounds;
typedef SkNoncopyable INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698