Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: include/gpu/GrContext.h

Issue 732693002: Drawstate on stack (Closed) Base URL: https://skia.googlesource.com/skia.git@real_def_gp
Patch Set: tiny fix Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/yuvtorgbeffect.cpp ('k') | include/gpu/GrPathRendererChain.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index b48ac406a4f6dd4eae48a59c1fbf7f91c5f216a0..b83df457431ca0cfb57bfdf8d2130be7c3f91e0f 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -898,9 +898,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);
@@ -944,7 +945,6 @@ private:
SkMatrix fViewMatrix;
SkAutoTUnref<GrRenderTarget> fRenderTarget;
const GrClipData* fClip; // TODO: make this ref counted
- GrDrawState* fDrawState;
GrResourceCache2* fResourceCache2;
GrFontCache* fFontCache;
@@ -984,14 +984,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,
« no previous file with comments | « gm/yuvtorgbeffect.cpp ('k') | include/gpu/GrPathRendererChain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698