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

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

Issue 858343002: Rename GrOptDrawState to GrPipeline and GrDrawState to GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more nits Created 5 years, 11 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
« 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 17 matching lines...) Expand all
28 : fGpu(gpu) 28 : fGpu(gpu)
29 , fRRectIndexBuffer(NULL) 29 , fRRectIndexBuffer(NULL)
30 , fStrokeRRectIndexBuffer(NULL) {} 30 , fStrokeRRectIndexBuffer(NULL) {}
31 ~GrOvalRenderer() { 31 ~GrOvalRenderer() {
32 this->reset(); 32 this->reset();
33 } 33 }
34 34
35 void reset(); 35 void reset();
36 36
37 bool drawOval(GrDrawTarget*, 37 bool drawOval(GrDrawTarget*,
38 GrDrawState*, 38 GrPipelineBuilder*,
39 GrColor, 39 GrColor,
40 const SkMatrix& viewMatrix, 40 const SkMatrix& viewMatrix,
41 bool useAA, 41 bool useAA,
42 const SkRect& oval, 42 const SkRect& oval,
43 const SkStrokeRec& stroke); 43 const SkStrokeRec& stroke);
44 bool drawRRect(GrDrawTarget*, 44 bool drawRRect(GrDrawTarget*,
45 GrDrawState*, 45 GrPipelineBuilder*,
46 GrColor, 46 GrColor,
47 const SkMatrix& viewMatrix, 47 const SkMatrix& viewMatrix,
48 bool useAA, 48 bool useAA,
49 const SkRRect& rrect, 49 const SkRRect& rrect,
50 const SkStrokeRec& stroke); 50 const SkStrokeRec& stroke);
51 bool drawDRRect(GrDrawTarget* target, 51 bool drawDRRect(GrDrawTarget* target,
52 GrDrawState*, 52 GrPipelineBuilder*,
53 GrColor, 53 GrColor,
54 const SkMatrix& viewMatrix, 54 const SkMatrix& viewMatrix,
55 bool useAA, 55 bool useAA,
56 const SkRRect& outer, 56 const SkRRect& outer,
57 const SkRRect& inner); 57 const SkRRect& inner);
58 58
59 private: 59 private:
60 bool drawEllipse(GrDrawTarget* target, 60 bool drawEllipse(GrDrawTarget* target,
61 GrDrawState*, 61 GrPipelineBuilder*,
62 GrColor, 62 GrColor,
63 const SkMatrix& viewMatrix, 63 const SkMatrix& viewMatrix,
64 bool useCoverageAA, 64 bool useCoverageAA,
65 const SkRect& ellipse, 65 const SkRect& ellipse,
66 const SkStrokeRec& stroke); 66 const SkStrokeRec& stroke);
67 bool drawDIEllipse(GrDrawTarget* target, 67 bool drawDIEllipse(GrDrawTarget* target,
68 GrDrawState*, 68 GrPipelineBuilder*,
69 GrColor, 69 GrColor,
70 const SkMatrix& viewMatrix, 70 const SkMatrix& viewMatrix,
71 bool useCoverageAA, 71 bool useCoverageAA,
72 const SkRect& ellipse, 72 const SkRect& ellipse,
73 const SkStrokeRec& stroke); 73 const SkStrokeRec& stroke);
74 void drawCircle(GrDrawTarget* target, 74 void drawCircle(GrDrawTarget* target,
75 GrDrawState*, 75 GrPipelineBuilder*,
76 GrColor, 76 GrColor,
77 const SkMatrix& viewMatrix, 77 const SkMatrix& viewMatrix,
78 bool useCoverageAA, 78 bool useCoverageAA,
79 const SkRect& circle, 79 const SkRect& circle,
80 const SkStrokeRec& stroke); 80 const SkStrokeRec& stroke);
81 81
82 GrIndexBuffer* rRectIndexBuffer(bool isStrokeOnly); 82 GrIndexBuffer* rRectIndexBuffer(bool isStrokeOnly);
83 83
84 GrGpu* fGpu; 84 GrGpu* fGpu;
85 GrIndexBuffer* fRRectIndexBuffer; 85 GrIndexBuffer* fRRectIndexBuffer;
86 GrIndexBuffer* fStrokeRRectIndexBuffer; 86 GrIndexBuffer* fStrokeRRectIndexBuffer;
87 87
88 typedef SkRefCnt INHERITED; 88 typedef SkRefCnt INHERITED;
89 }; 89 };
90 90
91 #endif // GrOvalRenderer_DEFINED 91 #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