aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrDrawState.h5
-rw-r--r--src/gpu/GrPathRenderer.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index 386aebdfe0..357f864c15 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -36,6 +36,11 @@ public:
* the last enabled stage. The presence or absence of texture coordinates
* for each stage in the vertex layout indicates whether a stage is enabled
* or not.
+ *
+ * Stages 0 through GrPaint::kTotalStages-1 are reserved for setting up
+ * the draw (i.e., textures and filter masks). Stages GrPaint::kTotalStages
+ * through kNumStages-1 are earmarked for use by GrTextContext and
+ * GrPathRenderer-derived classes.
*/
enum {
kNumStages = 4,
diff --git a/src/gpu/GrPathRenderer.h b/src/gpu/GrPathRenderer.h
index 6a6cea6a3f..ff9fdbbc05 100644
--- a/src/gpu/GrPathRenderer.h
+++ b/src/gpu/GrPathRenderer.h
@@ -21,6 +21,10 @@ struct GrPoint;
/**
* Base class for drawing paths into a GrDrawTarget.
+ *
+ * Derived classes can use stages GrPaint::kTotalStages through
+ * GrDrawState::kNumStages-1. The stages before GrPaint::kTotalStages
+ * are reserved for setting up the draw (i.e., textures and filter masks).
*/
class GR_API GrPathRenderer : public GrRefCnt {
public: