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

Unified Diff: src/gpu/GrDrawState.h

Issue 22686002: Implement path cover with nv_path_rendering (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebased to issue 23537028 Created 7 years, 3 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/GrDrawState.h
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index bfc15b01cd0c022d3b279d83c8705b1a82882096..2afb2a19f20d8801f28100d78ec29cee0eb9a6e6 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -721,6 +721,12 @@ public:
GrStencilSettings* stencil() { return &fCommon.fStencilSettings; }
+ void setStencilPathSettings(const GrStencilSettings& settings) {
+ fCommon.fPathStencilSettings = settings;
+ }
+
+ const GrStencilSettings& getStencilPathSettings() const { return fCommon.fPathStencilSettings; }
+
/// @}
///////////////////////////////////////////////////////////////////////////
@@ -931,6 +937,7 @@ private:
const GrVertexAttrib* fVAPtr;
int fVACount;
GrStencilSettings fStencilSettings;
+ GrStencilSettings fPathStencilSettings;
bsalomon 2013/09/13 20:25:28 Is this necessary? I'm wondering if we could have
Kimmo Kinnunen 2013/09/18 07:52:38 Done.
GrColor fCoverage;
SkXfermode::Mode fColorFilterMode;
GrColor fColorFilterColor;
@@ -950,6 +957,7 @@ private:
fVACount == other.fVACount &&
!memcmp(fVAPtr, other.fVAPtr, fVACount * sizeof(GrVertexAttrib)) &&
fStencilSettings == other.fStencilSettings &&
+ fPathStencilSettings == other.fPathStencilSettings &&
fCoverage == other.fCoverage &&
fColorFilterMode == other.fColorFilterMode &&
fColorFilterColor == other.fColorFilterColor &&
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawTarget.h » ('j') | src/gpu/GrDrawTarget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698