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

Unified Diff: src/gpu/GrDefaultPathRenderer.h

Issue 732693002: Drawstate on stack (Closed) Base URL: https://skia.googlesource.com/skia.git@real_def_gp
Patch Set: ready 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
Index: src/gpu/GrDefaultPathRenderer.h
diff --git a/src/gpu/GrDefaultPathRenderer.h b/src/gpu/GrDefaultPathRenderer.h
index c60afccbfb6ef8ae2e6f7665425dd7d8a7b9d335..0f90daa27f9e5c42193dd941fdf59f212847df04 100644
--- a/src/gpu/GrDefaultPathRenderer.h
+++ b/src/gpu/GrDefaultPathRenderer.h
@@ -19,39 +19,45 @@ class SK_API GrDefaultPathRenderer : public GrPathRenderer {
public:
GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSupport);
- virtual bool canDrawPath(const SkPath&,
+ virtual bool canDrawPath(const GrDrawTarget*,
+ const GrDrawState*,
+ const SkPath&,
const SkStrokeRec&,
- const GrDrawTarget*,
bool antiAlias) const SK_OVERRIDE;
private:
- virtual StencilSupport onGetStencilSupport(const SkPath&,
- const SkStrokeRec&,
- const GrDrawTarget*) const SK_OVERRIDE;
+ virtual StencilSupport onGetStencilSupport(const GrDrawTarget*,
+ const GrDrawState*,
+ const SkPath&,
+ const SkStrokeRec&) const SK_OVERRIDE;
- virtual bool onDrawPath(const SkPath&,
+ virtual bool onDrawPath(GrDrawTarget*,
+ GrDrawState*,
+ const SkPath&,
const SkStrokeRec&,
- GrDrawTarget*,
bool antiAlias) SK_OVERRIDE;
- virtual void onStencilPath(const SkPath&,
- const SkStrokeRec&,
- GrDrawTarget*) SK_OVERRIDE;
+ virtual void onStencilPath(GrDrawTarget*,
+ GrDrawState*,
+ const SkPath&,
+ const SkStrokeRec&) SK_OVERRIDE;
- bool internalDrawPath(const SkPath&,
+ bool internalDrawPath(GrDrawTarget*,
+ GrDrawState*,
+ const SkPath&,
const SkStrokeRec&,
- GrDrawTarget*,
bool stencilOnly);
- bool createGeom(const SkPath&,
- const SkStrokeRec&,
- SkScalar srcSpaceTol,
- GrDrawTarget*,
+ bool createGeom(GrDrawTarget*,
+ GrDrawState*,
GrPrimitiveType*,
int* vertexCnt,
int* indexCnt,
- GrDrawTarget::AutoReleaseGeometry*);
+ GrDrawTarget::AutoReleaseGeometry*,
+ const SkPath&,
+ const SkStrokeRec&,
+ SkScalar srcSpaceTol);
bool fSeparateStencil;
bool fStencilWrapOps;

Powered by Google App Engine
This is Rietveld 408576698