OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void drawPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, GrColor
color, | 85 void drawPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, GrColor
color, |
86 const GrPath*, GrPathRendering::FillType); | 86 const GrPath*, GrPathRendering::FillType); |
87 | 87 |
88 /** | 88 /** |
89 * Draws the aggregate path from combining multiple. Note that this will not | 89 * Draws the aggregate path from combining multiple. Note that this will not |
90 * always be equivalent to back-to-back calls to drawPath(). It will respect | 90 * always be equivalent to back-to-back calls to drawPath(). It will respect |
91 * the HW antialias flag on the GrPipelineBuilder (if possible in the 3D API
). | 91 * the HW antialias flag on the GrPipelineBuilder (if possible in the 3D API
). |
92 * | 92 * |
93 * TODO: Remove this function and construct the batch outside GrDrawTarget. | 93 * TODO: Remove this function and construct the batch outside GrDrawTarget. |
94 * | 94 * |
95 * @param draw The range, transforms, and indices for the draw. | 95 * @param draw The transforms and indices for the draw. |
96 * This object must only be drawn once. The draw | 96 * This object must only be drawn once. The draw |
97 * may modify its contents. | 97 * may modify its contents. |
98 * @param fill Fill type for drawing all the paths | 98 * @param fill Fill type for drawing all the paths |
99 */ | 99 */ |
100 void drawPathsFromRange(const GrPipelineBuilder&, | 100 void drawPathsFromRange(const GrPipelineBuilder&, |
101 const SkMatrix& viewMatrix, | 101 const SkMatrix& viewMatrix, |
102 const SkMatrix& localMatrix, | 102 const SkMatrix& localMatrix, |
103 GrColor color, | 103 GrColor color, |
| 104 GrPathRange* range, |
104 GrPathRangeDraw* draw, | 105 GrPathRangeDraw* draw, |
105 GrPathRendering::FillType fill); | 106 GrPathRendering::FillType fill); |
106 | 107 |
107 /** | 108 /** |
108 * Helper function for drawing rects. | 109 * Helper function for drawing rects. |
109 * | 110 * |
110 * @param rect the rect to draw | 111 * @param rect the rect to draw |
111 * @param localRect optional rect that specifies local coords to map onto | 112 * @param localRect optional rect that specifies local coords to map onto |
112 * rect. If nullptr then rect serves as the local coords. | 113 * rect. If nullptr then rect serves as the local coords. |
113 * @param localMatrix Optional local matrix. The local coordinates are speci
fied by localRect, | 114 * @param localMatrix Optional local matrix. The local coordinates are speci
fied by localRect, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 GrGpu* fGpu; | 232 GrGpu* fGpu; |
232 GrResourceProvider* fResourceProvider; | 233 GrResourceProvider* fResourceProvider; |
233 GrBatchFlushState fFlushState; | 234 GrBatchFlushState fFlushState; |
234 bool fFlushing; | 235 bool fFlushing; |
235 int fFirstUnpreparedBatch; | 236 int fFirstUnpreparedBatch; |
236 | 237 |
237 typedef SkRefCnt INHERITED; | 238 typedef SkRefCnt INHERITED; |
238 }; | 239 }; |
239 | 240 |
240 #endif | 241 #endif |
OLD | NEW |