diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-27 17:40:15 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-27 17:40:15 +0000 |
commit | a5d2203f58c28db033aad47f95470a2cb36efe29 (patch) | |
tree | 0b70632cd5b2d63ee8fea4a9c5409c0e413b37c8 /include | |
parent | a5d056ae0b04021dfb44c2c7a3d6a34e060261b8 (diff) |
Use a single GrDrawState in GrContext for direct and buffered drawing
Review URL: http://codereview.appspot.com/5933043/
git-svn-id: http://skia.googlecode.com/svn/trunk@3507 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index ae0e5652bd..e0bbb4cf5a 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -17,6 +17,7 @@ #include "GrRenderTarget.h" class GrAutoScratchTexture; +class GrDrawState; class GrDrawTarget; class GrFontCache; class GrGpu; @@ -671,6 +672,8 @@ private: DrawCategory fLastDrawCategory; GrGpu* fGpu; + GrDrawState* fDrawState; + GrResourceCache* fTextureCache; GrFontCache* fFontCache; @@ -704,7 +707,7 @@ private: void flushDrawBuffer(); - void setPaint(const GrPaint& paint, GrDrawTarget* target); + void setPaint(const GrPaint& paint); GrDrawTarget* prepareToDraw(const GrPaint& paint, DrawCategory drawType); |