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