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

Unified Diff: src/gpu/GrOvalRenderer.h

Issue 1731413002: Hide GrDrawTarget from GrOvalRenderer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: erg! Created 4 years, 10 months 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 | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOvalRenderer.h
diff --git a/src/gpu/GrOvalRenderer.h b/src/gpu/GrOvalRenderer.h
index d591ffeed38d80db1217f1d4603371f2e84c5cb2..d34398006fd013ea168845750acef9e695ad550f 100644
--- a/src/gpu/GrOvalRenderer.h
+++ b/src/gpu/GrOvalRenderer.h
@@ -10,8 +10,9 @@
#include "GrPaint.h"
-class GrDrawTarget;
+class GrDrawBatch;
class GrPipelineBuilder;
+class GrShaderCaps;
struct SkRect;
class SkStrokeRec;
@@ -20,52 +21,36 @@ class SkStrokeRec;
*/
class GrOvalRenderer {
public:
- static bool DrawOval(GrDrawTarget*,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- bool useAA,
- const SkRect& oval,
- const SkStrokeRec& stroke);
- static bool DrawRRect(GrDrawTarget*,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- bool useAA,
- const SkRRect& rrect,
- const SkStrokeRec& stroke);
- static bool DrawDRRect(GrDrawTarget* target,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- bool useAA,
- const SkRRect& outer,
- const SkRRect& inner);
+ static GrDrawBatch* CreateOvalBatch(const GrPipelineBuilder&,
+ GrColor,
+ const SkMatrix& viewMatrix,
+ bool useAA,
+ const SkRect& oval,
+ const SkStrokeRec& stroke,
+ GrShaderCaps* shaderCaps);
+ static GrDrawBatch* CreateRRectBatch(const GrPipelineBuilder&,
+ GrColor,
+ const SkMatrix& viewMatrix,
+ bool useAA,
+ const SkRRect& rrect,
+ const SkStrokeRec& stroke,
+ GrShaderCaps* shaderCaps);
private:
GrOvalRenderer();
- static bool DrawEllipse(GrDrawTarget* target,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- bool useCoverageAA,
- const SkRect& ellipse,
- const SkStrokeRec& stroke);
- static bool DrawDIEllipse(GrDrawTarget* target,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- bool useCoverageAA,
- const SkRect& ellipse,
- const SkStrokeRec& stroke);
- static void DrawCircle(GrDrawTarget* target,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- bool useCoverageAA,
- const SkRect& circle,
- const SkStrokeRec& stroke);
+ static GrDrawBatch* CreateEllipseBatch(GrColor,
+ const SkMatrix& viewMatrix,
+ const SkRect& ellipse,
+ const SkStrokeRec& stroke);
+ static GrDrawBatch* CreateDIEllipseBatch(GrColor,
+ const SkMatrix& viewMatrix,
+ const SkRect& ellipse,
+ const SkStrokeRec& stroke);
+ static GrDrawBatch* CreateCircleBatch(GrColor,
+ const SkMatrix& viewMatrix,
+ const SkRect& circle,
+ const SkStrokeRec& stroke);
};
#endif // GrOvalRenderer_DEFINED
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698