Index: include/gpu/GrContext.h |
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h |
index 97acda1e795a4cc540525d65c805b5d3fd18c3c3..a081699a582b557398c69e2cad9d6ec20b8e020e 100644 |
--- a/include/gpu/GrContext.h |
+++ b/include/gpu/GrContext.h |
@@ -900,9 +900,10 @@ public: |
GrStencilBuffer* findAndRefStencilBuffer(int width, int height, int sampleCnt); |
GrPathRenderer* getPathRenderer( |
+ const GrDrawTarget* target, |
+ const GrDrawState*, |
const SkPath& path, |
const SkStrokeRec& stroke, |
- const GrDrawTarget* target, |
bool allowSW, |
GrPathRendererChain::DrawType drawType = GrPathRendererChain::kColor_DrawType, |
GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
@@ -946,7 +947,6 @@ private: |
SkMatrix fViewMatrix; |
SkAutoTUnref<GrRenderTarget> fRenderTarget; |
const GrClipData* fClip; // TODO: make this ref counted |
- GrDrawState* fDrawState; |
GrResourceCache* fResourceCache; |
GrResourceCache2* fResourceCache2; |
@@ -988,14 +988,16 @@ private: |
void setupDrawBuffer(); |
- class AutoRestoreEffects; |
class AutoCheckFlush; |
/// Sets the paint and returns the target to draw into. The paint can be NULL in which case the |
/// draw state is left unmodified. |
- GrDrawTarget* prepareToDraw(const GrPaint*, AutoRestoreEffects*, AutoCheckFlush*); |
+ GrDrawTarget* prepareToDraw(GrDrawState* ds, const GrPaint* paint, const AutoCheckFlush*); |
- void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, |
- const GrStrokeInfo& stroke); |
+ void internalDrawPath(GrDrawTarget*, |
+ GrDrawState*, |
+ bool useAA, |
+ const SkPath&, |
+ const GrStrokeInfo&); |
GrTexture* createResizedTexture(const GrSurfaceDesc& desc, |
const GrCacheID& cacheID, |