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

Unified Diff: src/gpu/GrDrawState.h

Issue 12918032: Add GrPaint stage for xfermodes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | « include/gpu/GrPaint.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawState.h
===================================================================
--- src/gpu/GrDrawState.h (revision 8413)
+++ src/gpu/GrDrawState.h (working copy)
@@ -11,6 +11,7 @@
#include "GrBackendEffectFactory.h"
#include "GrColor.h"
#include "GrEffectStage.h"
+#include "GrPaint.h"
#include "GrRefCnt.h"
#include "GrRenderTarget.h"
#include "GrStencil.h"
@@ -53,12 +54,13 @@
* the color / coverage distinction.
*
* Stages 0 through GrPaint::kTotalStages-1 are reserved for stages copied from the client's
- * GrPaint. Stages GrPaint::kTotalStages through kNumStages-2 are earmarked for use by
- * GrTextContext and GrPathRenderer-derived classes. kNumStages-1 is earmarked for clipping
- * by GrClipMaskManager.
+ * GrPaint. Stage GrPaint::kTotalStages is earmarked for use by GrTextContext, GrPathRenderer-
+ * derived classes, and the rect/oval helper classes. GrPaint::kTotalStages+1 is earmarked for
+ * clipping by GrClipMaskManager. TODO: replace fixed size array of stages with variable size
+ * arrays of color and coverage stages.
*/
enum {
- kNumStages = 5,
+ kNumStages = GrPaint::kTotalStages + 2,
};
GrDrawState() {
« no previous file with comments | « include/gpu/GrPaint.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698