Index: include/gpu/GrOvalRenderer.h |
=================================================================== |
--- include/gpu/GrOvalRenderer.h (revision 0) |
+++ include/gpu/GrOvalRenderer.h (working copy) |
@@ -0,0 +1,47 @@ |
+/* |
robertphillips
2013/03/21 13:12:39
2013
jvanverth1
2013/03/21 18:42:18
Done.
|
+ * Copyright 2012 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+ |
+#ifndef GrOvalRenderer_DEFINED |
+#define GrOvalRenderer_DEFINED |
+ |
+#include "GrRefCnt.h" |
+#include "GrRect.h" |
+ |
+class GrContext; |
+class GrDrawTarget; |
+class GrPaint; |
+class SkStrokeRec; |
+ |
+/* |
robertphillips
2013/03/21 13:12:39
not rects
jvanverth1
2013/03/21 18:42:18
Done.
|
+ * This class wraps helper functions that draw AA rects (filled & stroked) |
+ */ |
+class GrOvalRenderer : public GrRefCnt { |
+public: |
+ SK_DECLARE_INST_COUNT(GrOvalRenderer) |
+ |
+ GrOvalRenderer() { |
+ } |
bsalomon
2013/03/21 02:08:53
can keep empty {} on same line if you like
jvanverth1
2013/03/21 18:42:18
Done.
|
+ |
+ ~GrOvalRenderer() { |
+ } |
+ |
+ bool canDrawOval(const GrContext* gpu, const GrPaint& paint, const GrRect& oval, bool* isCircle) const; |
bsalomon
2013/03/21 02:08:53
nit: wrap (BTW Rob and I both have done some varia
jvanverth1
2013/03/21 18:42:18
Done. And thanks for the pointer.
|
+ |
+ void drawEllipse(GrDrawTarget* context, const GrPaint& paint, |
+ const GrRect& ellipse, |
+ const SkStrokeRec& stroke); |
+ void drawCircle(GrDrawTarget* context, const GrPaint& paint, |
+ const GrRect& circle, |
+ const SkStrokeRec& stroke); |
+ |
+private: |
+ |
+ typedef GrRefCnt INHERITED; |
+}; |
+ |
+#endif // GrOvalRenderer_DEFINED |