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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 return fQuadIndexBuffer; | 273 return fQuadIndexBuffer; |
274 } | 274 } |
275 | 275 |
276 //////////////////////////////////////////////////////////////////////////////// | 276 //////////////////////////////////////////////////////////////////////////////// |
277 | 277 |
278 void GrGpu::draw(const GrOptDrawState& ds, const GrDrawTarget::DrawInfo& info) { | 278 void GrGpu::draw(const GrOptDrawState& ds, const GrDrawTarget::DrawInfo& info) { |
279 this->handleDirtyContext(); | 279 this->handleDirtyContext(); |
280 this->onDraw(ds, info); | 280 this->onDraw(ds, info); |
281 } | 281 } |
282 | 282 |
283 void GrGpu::stencilPath(const GrOptDrawState& ds, | 283 void GrGpu::stencilPath(const GrPath* path, const StencilPathState& state) { |
284 const GrPath* path, | |
285 const GrStencilSettings& stencilSettings) { | |
286 this->handleDirtyContext(); | 284 this->handleDirtyContext(); |
287 this->onStencilPath(ds, path, stencilSettings); | 285 this->onStencilPath(path, state); |
288 } | 286 } |
289 | 287 |
290 void GrGpu::drawPath(const GrOptDrawState& ds, | 288 void GrGpu::drawPath(const GrOptDrawState& ds, |
291 const GrPath* path, | 289 const GrPath* path, |
292 const GrStencilSettings& stencilSettings) { | 290 const GrStencilSettings& stencilSettings) { |
293 this->handleDirtyContext(); | 291 this->handleDirtyContext(); |
294 this->onDrawPath(ds, path, stencilSettings); | 292 this->onDrawPath(ds, path, stencilSettings); |
295 } | 293 } |
296 | 294 |
297 void GrGpu::drawPaths(const GrOptDrawState& ds, | 295 void GrGpu::drawPaths(const GrOptDrawState& ds, |
298 const GrPathRange* pathRange, | 296 const GrPathRange* pathRange, |
299 const void* indices, | 297 const void* indices, |
300 GrDrawTarget::PathIndexType indexType, | 298 GrDrawTarget::PathIndexType indexType, |
301 const float transformValues[], | 299 const float transformValues[], |
302 GrDrawTarget::PathTransformType transformType, | 300 GrDrawTarget::PathTransformType transformType, |
303 int count, | 301 int count, |
304 const GrStencilSettings& stencilSettings) { | 302 const GrStencilSettings& stencilSettings) { |
305 this->handleDirtyContext(); | 303 this->handleDirtyContext(); |
306 pathRange->willDrawPaths(indices, indexType, count); | 304 pathRange->willDrawPaths(indices, indexType, count); |
307 this->onDrawPaths(ds, pathRange, indices, indexType, transformValues, | 305 this->onDrawPaths(ds, pathRange, indices, indexType, transformValues, |
308 transformType, count, stencilSettings); | 306 transformType, count, stencilSettings); |
309 } | 307 } |
OLD | NEW |