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

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

Issue 783763002: Initial CL to move color / coverage off of drawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@no-static-gp
Patch Set: bug fix Created 6 years 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
« no previous file with comments | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrOvalRenderer_DEFINED 8 #ifndef GrOvalRenderer_DEFINED
9 #define GrOvalRenderer_DEFINED 9 #define GrOvalRenderer_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 GrOvalRenderer() : fRRectIndexBuffer(NULL), fStrokeRRectIndexBuffer(NULL) {} 27 GrOvalRenderer() : fRRectIndexBuffer(NULL), fStrokeRRectIndexBuffer(NULL) {}
28 ~GrOvalRenderer() { 28 ~GrOvalRenderer() {
29 this->reset(); 29 this->reset();
30 } 30 }
31 31
32 void reset(); 32 void reset();
33 33
34 bool drawOval(GrDrawTarget*, 34 bool drawOval(GrDrawTarget*,
35 GrDrawState*, 35 GrDrawState*,
36 GrColor,
36 const GrContext*, 37 const GrContext*,
37 bool useAA, 38 bool useAA,
38 const SkRect& oval, 39 const SkRect& oval,
39 const SkStrokeRec& stroke); 40 const SkStrokeRec& stroke);
40 bool drawRRect(GrDrawTarget*, 41 bool drawRRect(GrDrawTarget*,
41 GrDrawState*, 42 GrDrawState*,
43 GrColor,
42 GrContext*, 44 GrContext*,
43 bool useAA, 45 bool useAA,
44 const SkRRect& rrect, 46 const SkRRect& rrect,
45 const SkStrokeRec& stroke); 47 const SkStrokeRec& stroke);
46 bool drawDRRect(GrDrawTarget* target, 48 bool drawDRRect(GrDrawTarget* target,
47 GrDrawState*, 49 GrDrawState*,
50 GrColor,
48 GrContext* context, 51 GrContext* context,
49 bool useAA, 52 bool useAA,
50 const SkRRect& outer, 53 const SkRRect& outer,
51 const SkRRect& inner); 54 const SkRRect& inner);
52 55
53 private: 56 private:
54 bool drawEllipse(GrDrawTarget* target, 57 bool drawEllipse(GrDrawTarget* target,
55 GrDrawState*, 58 GrDrawState*,
59 GrColor,
56 const GrContext* context, 60 const GrContext* context,
57 bool useCoverageAA, 61 bool useCoverageAA,
58 const SkRect& ellipse, 62 const SkRect& ellipse,
59 const SkStrokeRec& stroke); 63 const SkStrokeRec& stroke);
60 bool drawDIEllipse(GrDrawTarget* target, 64 bool drawDIEllipse(GrDrawTarget* target,
61 GrDrawState*, 65 GrDrawState*,
66 GrColor,
62 const GrContext* context, 67 const GrContext* context,
63 bool useCoverageAA, 68 bool useCoverageAA,
64 const SkRect& ellipse, 69 const SkRect& ellipse,
65 const SkStrokeRec& stroke); 70 const SkStrokeRec& stroke);
66 void drawCircle(GrDrawTarget* target, 71 void drawCircle(GrDrawTarget* target,
67 GrDrawState*, 72 GrDrawState*,
73 GrColor,
68 const GrContext* context, 74 const GrContext* context,
69 bool useCoverageAA, 75 bool useCoverageAA,
70 const SkRect& circle, 76 const SkRect& circle,
71 const SkStrokeRec& stroke); 77 const SkStrokeRec& stroke);
72 78
73 GrIndexBuffer* rRectIndexBuffer(bool isStrokeOnly, GrGpu* gpu); 79 GrIndexBuffer* rRectIndexBuffer(bool isStrokeOnly, GrGpu* gpu);
74 80
75 GrIndexBuffer* fRRectIndexBuffer; 81 GrIndexBuffer* fRRectIndexBuffer;
76 GrIndexBuffer* fStrokeRRectIndexBuffer; 82 GrIndexBuffer* fStrokeRRectIndexBuffer;
77 83
78 typedef SkRefCnt INHERITED; 84 typedef SkRefCnt INHERITED;
79 }; 85 };
80 86
81 #endif // GrOvalRenderer_DEFINED 87 #endif // GrOvalRenderer_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698