aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-24 17:41:47 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-24 17:41:47 +0000
commit7d34d2eecc40d150d867e37d5160a1bc3cfccbde (patch)
treeba3561a9265b074533e820a0711901c37eabd553 /gpu/include
parent1a2e8d233d91cc4c6622ff3d975ab7d50604c923 (diff)
Increase number of stages from 1 to 2
Move GrTextContext from stage 0 to stage 1 so it doesn't conflict with GrPaint (allow textured text) Switch to dynamically generated shaders git-svn-id: http://skia.googlecode.com/svn/trunk@721 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/include')
-rw-r--r--gpu/include/GrDrawTarget.h2
-rw-r--r--gpu/include/GrTextContext.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/gpu/include/GrDrawTarget.h b/gpu/include/GrDrawTarget.h
index ec84cdaa65..862559e601 100644
--- a/gpu/include/GrDrawTarget.h
+++ b/gpu/include/GrDrawTarget.h
@@ -50,7 +50,7 @@ public:
// Currently there is just one stage but this will be changed soon.
enum {
- kNumStages = 1,
+ kNumStages = 2,
kMaxTexCoords = kNumStages
};
diff --git a/gpu/include/GrTextContext.h b/gpu/include/GrTextContext.h
index d813c0935d..727358ec42 100644
--- a/gpu/include/GrTextContext.h
+++ b/gpu/include/GrTextContext.h
@@ -38,7 +38,8 @@ public:
void flush(); // optional; automatically called by destructor
private:
- const GrPaint& fPaint;
+ GrPaint fPaint;
+ GrVertexLayout fVertexLayout;
GrContext* fContext;
GrDrawTarget* fDrawTarget;