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

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: Remove spurious comments 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
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 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 "GrContext.h"
13 #include "GrPaint.h"
14 #include "GrRefCnt.h"
15 #include "GrRect.h"
16
17 class GrContext;
18 class GrDrawTarget;
19 class GrPaint;
20 class SkStrokeRec;
21
22 /*
23 * This class wraps helper functions that draw ovals (filled & stroked)
24 */
25 class GrOvalRenderer : public GrRefCnt {
26 public:
27 SK_DECLARE_INST_COUNT(GrOvalRenderer)
28
29 GrOvalRenderer() {}
30
31 ~GrOvalRenderer() {}
32
33 bool drawOval(GrDrawTarget* target, const GrContext* context, const GrPaint& paint,
34 const GrRect& oval, const SkStrokeRec& stroke);
35 private:
36 void drawEllipse(GrDrawTarget* target, const GrPaint& paint,
37 const GrRect& ellipse,
38 const SkStrokeRec& stroke);
39 void drawCircle(GrDrawTarget* target, const GrPaint& paint,
40 const GrRect& circle,
41 const SkStrokeRec& stroke);
42
43 typedef GrRefCnt INHERITED;
44 };
45
46 #endif // GrOvalRenderer_DEFINED
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698