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

Unified Diff: src/gpu/GrClipMaskManager.h

Issue 1391653002: Remove ClipMaskType from GrCMM (Closed) Base URL: https://skia.googlesource.com/skia.git@cfp
Patch Set: rebase Created 5 years, 2 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 | « no previous file | 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 149f760f9c3795b9c6f553ff7d5f7974e1ca4113..128bf15357e60d60ed9353d60e1a1ab49ede82d3 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -67,14 +67,6 @@ public:
const SkRect* devBounds,
GrAppliedClip*);
- bool isClipInStencil() const {
- return kStencil_ClipMaskType == fCurrClipMaskType;
- }
-
- bool isClipInAlpha() const {
- return kAlpha_ClipMaskType == fCurrClipMaskType;
- }
-
void adjustPathStencilParams(const GrStencilAttachment*, GrStencilSettings*);
private:
@@ -170,17 +162,6 @@ private:
GrTexture* createCachedMask(int width, int height, const GrUniqueKey& key, bool renderTarget);
- /**
- * We may represent the clip as a mask in the stencil buffer or as an alpha
- * texture. It may be neither because the scissor rect suffices or we
- * haven't yet examined the clip.
- */
- enum ClipMaskType {
- kNone_ClipMaskType,
- kStencil_ClipMaskType,
- kAlpha_ClipMaskType,
- } fCurrClipMaskType;
-
static const int kMaxAnalyticElements = 4;
GrDrawTarget* fDrawTarget; // This is our owning draw target.
« no previous file with comments | « no previous file | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698