OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrAARectRenderer_DEFINED | 8 #ifndef GrAARectRenderer_DEFINED |
9 #define GrAARectRenderer_DEFINED | 9 #define GrAARectRenderer_DEFINED |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void fillAANestedRects(GrGpu* gpu, | 68 void fillAANestedRects(GrGpu* gpu, |
69 GrDrawTarget* target, | 69 GrDrawTarget* target, |
70 const SkRect rects[2], | 70 const SkRect rects[2], |
71 const SkMatrix& combinedMatrix); | 71 const SkMatrix& combinedMatrix); |
72 | 72 |
73 private: | 73 private: |
74 GrIndexBuffer* fAAFillRectIndexBuffer; | 74 GrIndexBuffer* fAAFillRectIndexBuffer; |
75 GrIndexBuffer* fAAMiterStrokeRectIndexBuffer; | 75 GrIndexBuffer* fAAMiterStrokeRectIndexBuffer; |
76 GrIndexBuffer* fAABevelStrokeRectIndexBuffer; | 76 GrIndexBuffer* fAABevelStrokeRectIndexBuffer; |
77 | 77 |
| 78 GrIndexBuffer* aaFillRectIndexBuffer(GrGpu* gpu); |
| 79 |
78 static int aaStrokeRectIndexCount(bool miterStroke); | 80 static int aaStrokeRectIndexCount(bool miterStroke); |
79 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke); | 81 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke); |
80 | 82 |
81 void geometryFillAARect(GrGpu* gpu, | 83 void geometryFillAARect(GrGpu* gpu, |
82 GrDrawTarget* target, | 84 GrDrawTarget* target, |
83 const SkRect& rect, | 85 const SkRect& rect, |
84 const SkMatrix& combinedMatrix, | 86 const SkMatrix& combinedMatrix, |
85 const SkRect& devRect); | 87 const SkRect& devRect); |
86 | 88 |
87 void shaderFillAARect(GrGpu* gpu, | 89 void shaderFillAARect(GrGpu* gpu, |
(...skipping 10 matching lines...) Expand all Loading... |
98 GrDrawTarget* target, | 100 GrDrawTarget* target, |
99 const SkRect& devOutside, | 101 const SkRect& devOutside, |
100 const SkRect& devOutsideAssist, | 102 const SkRect& devOutsideAssist, |
101 const SkRect& devInside, | 103 const SkRect& devInside, |
102 bool miterStroke); | 104 bool miterStroke); |
103 | 105 |
104 typedef SkRefCnt INHERITED; | 106 typedef SkRefCnt INHERITED; |
105 }; | 107 }; |
106 | 108 |
107 #endif // GrAARectRenderer_DEFINED | 109 #endif // GrAARectRenderer_DEFINED |
OLD | NEW |