Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
|
robertphillips
2013/03/21 13:12:39
2013
jvanverth1
2013/03/21 18:42:18
Done.
| |
| 2 * Copyright 2012 Google Inc. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 | |
| 9 #ifndef GrOvalRenderer_DEFINED | |
| 10 #define GrOvalRenderer_DEFINED | |
| 11 | |
| 12 #include "GrRefCnt.h" | |
| 13 #include "GrRect.h" | |
| 14 | |
| 15 class GrContext; | |
| 16 class GrDrawTarget; | |
| 17 class GrPaint; | |
| 18 class SkStrokeRec; | |
| 19 | |
| 20 /* | |
|
robertphillips
2013/03/21 13:12:39
not rects
jvanverth1
2013/03/21 18:42:18
Done.
| |
| 21 * This class wraps helper functions that draw AA rects (filled & stroked) | |
| 22 */ | |
| 23 class GrOvalRenderer : public GrRefCnt { | |
| 24 public: | |
| 25 SK_DECLARE_INST_COUNT(GrOvalRenderer) | |
| 26 | |
| 27 GrOvalRenderer() { | |
| 28 } | |
|
bsalomon
2013/03/21 02:08:53
can keep empty {} on same line if you like
jvanverth1
2013/03/21 18:42:18
Done.
| |
| 29 | |
| 30 ~GrOvalRenderer() { | |
| 31 } | |
| 32 | |
| 33 bool canDrawOval(const GrContext* gpu, const GrPaint& paint, const GrRect& o val, 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.
| |
| 34 | |
| 35 void drawEllipse(GrDrawTarget* context, const GrPaint& paint, | |
| 36 const GrRect& ellipse, | |
| 37 const SkStrokeRec& stroke); | |
| 38 void drawCircle(GrDrawTarget* context, const GrPaint& paint, | |
| 39 const GrRect& circle, | |
| 40 const SkStrokeRec& stroke); | |
| 41 | |
| 42 private: | |
| 43 | |
| 44 typedef GrRefCnt INHERITED; | |
| 45 }; | |
| 46 | |
| 47 #endif // GrOvalRenderer_DEFINED | |
| OLD | NEW |