| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 * This object must only be drawn once. The draw | 126 * This object must only be drawn once. The draw |
| 127 * may modify its contents. | 127 * may modify its contents. |
| 128 * @param fill Fill type for drawing all the paths | 128 * @param fill Fill type for drawing all the paths |
| 129 */ | 129 */ |
| 130 void drawPathsFromRange(const GrPipelineBuilder&, | 130 void drawPathsFromRange(const GrPipelineBuilder&, |
| 131 const SkMatrix& viewMatrix, | 131 const SkMatrix& viewMatrix, |
| 132 const SkMatrix& localMatrix, | 132 const SkMatrix& localMatrix, |
| 133 GrColor color, | 133 GrColor color, |
| 134 GrPathRange* range, | 134 GrPathRange* range, |
| 135 GrPathRangeDraw* draw, | 135 GrPathRangeDraw* draw, |
| 136 GrPathRendering::FillType fill); | 136 GrPathRendering::FillType fill, |
| 137 const SkRect& bounds); |
| 137 | 138 |
| 138 /** | 139 /** |
| 139 * Helper function for drawing rects. | 140 * Helper function for drawing rects. |
| 140 * | 141 * |
| 141 * @param rect the rect to draw | 142 * @param rect the rect to draw |
| 142 * @param localRect optional rect that specifies local coords to map onto | 143 * @param localRect optional rect that specifies local coords to map onto |
| 143 * rect. If nullptr then rect serves as the local coords. | 144 * rect. If nullptr then rect serves as the local coords. |
| 144 * @param localMatrix Optional local matrix. The local coordinates are speci
fied by localRect, | 145 * @param localMatrix Optional local matrix. The local coordinates are speci
fied by localRect, |
| 145 * or if it is nullptr by rect. This matrix applies to th
e coordinate implied by | 146 * or if it is nullptr by rect. This matrix applies to th
e coordinate implied by |
| 146 * that rectangle before it is input to GrCoordTransforms
that read local | 147 * that rectangle before it is input to GrCoordTransforms
that read local |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 uint32_t fFlags; | 313 uint32_t fFlags; |
| 313 | 314 |
| 314 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' | 315 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' |
| 315 SkTDArray<GrDrawTarget*> fDependencies; | 316 SkTDArray<GrDrawTarget*> fDependencies; |
| 316 GrRenderTarget* fRenderTarget; | 317 GrRenderTarget* fRenderTarget; |
| 317 | 318 |
| 318 typedef SkRefCnt INHERITED; | 319 typedef SkRefCnt INHERITED; |
| 319 }; | 320 }; |
| 320 | 321 |
| 321 #endif | 322 #endif |
| OLD | NEW |