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

Side by Side Diff: include/gpu/GrOvalRenderer.h

Issue 12657003: Move oval rendering code to GrOvalRenderer (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Added some line wraps Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrContext.cpp » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698