aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-10 12:40:40 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-10 12:40:40 +0000
commitbf5cad4e9c5808493b35cb9b0000a2d36b7f9b78 (patch)
treed5bfedac66d024ae3711a2e53fb37d6ea6f824c6 /include
parentd8f856c32b679d9f5a9926feac005e2c0186f83f (diff)
Added documentation of stage/TU allocation
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrTextContext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrTextContext.h b/include/gpu/GrTextContext.h
index 588ae6ee34..ab1a344539 100644
--- a/include/gpu/GrTextContext.h
+++ b/include/gpu/GrTextContext.h
@@ -22,6 +22,11 @@ class GrPaint;
class SkGpuDevice;
class SkPaint;
+/**
+ * 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 GrTextContext: public GrRefCnt {
protected:
GrContext* fContext;