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 | |
80 static int aaStrokeRectIndexCount(bool miterStroke); | 78 static int aaStrokeRectIndexCount(bool miterStroke); |
81 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke); | 79 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke); |
82 | 80 |
83 void geometryFillAARect(GrGpu* gpu, | 81 void geometryFillAARect(GrGpu* gpu, |
84 GrDrawTarget* target, | 82 GrDrawTarget* target, |
85 const SkRect& rect, | 83 const SkRect& rect, |
86 const SkMatrix& combinedMatrix, | 84 const SkMatrix& combinedMatrix, |
87 const SkRect& devRect); | 85 const SkRect& devRect); |
88 | 86 |
89 void shaderFillAARect(GrGpu* gpu, | 87 void shaderFillAARect(GrGpu* gpu, |
(...skipping 10 matching lines...) Expand all Loading... |
100 GrDrawTarget* target, | 98 GrDrawTarget* target, |
101 const SkRect& devOutside, | 99 const SkRect& devOutside, |
102 const SkRect& devOutsideAssist, | 100 const SkRect& devOutsideAssist, |
103 const SkRect& devInside, | 101 const SkRect& devInside, |
104 bool miterStroke); | 102 bool miterStroke); |
105 | 103 |
106 typedef SkRefCnt INHERITED; | 104 typedef SkRefCnt INHERITED; |
107 }; | 105 }; |
108 | 106 |
109 #endif // GrAARectRenderer_DEFINED | 107 #endif // GrAARectRenderer_DEFINED |
OLD | NEW |