aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrOvalRenderer.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2014-11-17 14:22:48 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-17 14:22:49 -0800
commit9853ccef19c200be93a6211f32589fa82a53067c (patch)
treefd07ff890581f7df7b99021e5bc42f75539c6050 /src/gpu/GrOvalRenderer.h
parentb079ec682d6f049e5f0df83efa41a1eaa50215c6 (diff)
Drawstate on stack
Diffstat (limited to 'src/gpu/GrOvalRenderer.h')
-rw-r--r--src/gpu/GrOvalRenderer.h39
1 files changed, 30 insertions, 9 deletions
diff --git a/src/gpu/GrOvalRenderer.h b/src/gpu/GrOvalRenderer.h
index 96f9b3afb9..abad623589 100644
--- a/src/gpu/GrOvalRenderer.h
+++ b/src/gpu/GrOvalRenderer.h
@@ -31,21 +31,42 @@ public:
void reset();
- bool drawOval(GrDrawTarget* target, const GrContext* context, bool useAA,
- const SkRect& oval, const SkStrokeRec& stroke);
- bool drawRRect(GrDrawTarget* target, GrContext* context, bool useAA,
- const SkRRect& rrect, const SkStrokeRec& stroke);
- bool drawDRRect(GrDrawTarget* target, GrContext* context, bool useAA,
- const SkRRect& outer, const SkRRect& inner);
+ bool drawOval(GrDrawTarget*,
+ GrDrawState*,
+ const GrContext*,
+ bool useAA,
+ const SkRect& oval,
+ const SkStrokeRec& stroke);
+ bool drawRRect(GrDrawTarget*,
+ GrDrawState*,
+ GrContext*,
+ bool useAA,
+ const SkRRect& rrect,
+ const SkStrokeRec& stroke);
+ bool drawDRRect(GrDrawTarget* target,
+ GrDrawState*,
+ GrContext* context,
+ bool useAA,
+ const SkRRect& outer,
+ const SkRRect& inner);
private:
- bool drawEllipse(GrDrawTarget* target, const GrContext* context, bool useCoverageAA,
+ bool drawEllipse(GrDrawTarget* target,
+ GrDrawState*,
+ const GrContext* context,
+ bool useCoverageAA,
const SkRect& ellipse,
const SkStrokeRec& stroke);
- bool drawDIEllipse(GrDrawTarget* target, const GrContext* context, bool useCoverageAA,
+ bool drawDIEllipse(GrDrawTarget* target,
+ GrDrawState*,
+ const GrContext* context,
+ bool useCoverageAA,
const SkRect& ellipse,
const SkStrokeRec& stroke);
- void drawCircle(GrDrawTarget* target, const GrContext* context, bool useCoverageAA,
+ void drawCircle(GrDrawTarget* target,
+ GrDrawState*,
+ const GrContext* context,
+ bool useCoverageAA,
const SkRect& circle,
const SkStrokeRec& stroke);