OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "GrGpu.h" | 10 #include "GrGpu.h" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 311 |
312 if (!this->flushGraphicsState(ds, kDrawPath_DrawType)) { | 312 if (!this->flushGraphicsState(ds, kDrawPath_DrawType)) { |
313 return; | 313 return; |
314 } | 314 } |
315 | 315 |
316 this->pathRendering()->drawPath(path, stencilSettings); | 316 this->pathRendering()->drawPath(path, stencilSettings); |
317 } | 317 } |
318 | 318 |
319 void GrGpu::drawPaths(const GrOptDrawState& ds, | 319 void GrGpu::drawPaths(const GrOptDrawState& ds, |
320 const GrPathRange* pathRange, | 320 const GrPathRange* pathRange, |
321 const uint32_t indices[], | 321 const void* indices, |
| 322 GrDrawTarget::PathIndexType indexType, |
| 323 const float transformValues[], |
| 324 GrDrawTarget::PathTransformType transformType, |
322 int count, | 325 int count, |
323 const float transforms[], | |
324 GrDrawTarget::PathTransformType transformsType, | |
325 const GrStencilSettings& stencilSettings) { | 326 const GrStencilSettings& stencilSettings) { |
326 this->handleDirtyContext(); | 327 this->handleDirtyContext(); |
327 | 328 |
328 if (!this->flushGraphicsState(ds, kDrawPaths_DrawType)) { | 329 if (!this->flushGraphicsState(ds, kDrawPaths_DrawType)) { |
329 return; | 330 return; |
330 } | 331 } |
331 | 332 |
332 pathRange->willDrawPaths(indices, count); | 333 pathRange->willDrawPaths(indices, indexType, count); |
333 this->pathRendering()->drawPaths(pathRange, indices, count, transforms, tran
sformsType, | 334 this->pathRendering()->drawPaths(pathRange, indices, indexType, transformVal
ues, |
334 stencilSettings); | 335 transformType, count, stencilSettings); |
335 } | 336 } |
OLD | NEW |