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 | 8 |
9 #include "GrGpu.h" | 9 #include "GrGpu.h" |
10 | 10 |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 int meshCount) { | 481 int meshCount) { |
482 if (primProc.numAttribs() > this->caps()->maxVertexAttributes()) { | 482 if (primProc.numAttribs() > this->caps()->maxVertexAttributes()) { |
483 fStats.incNumFailedDraws(); | 483 fStats.incNumFailedDraws(); |
484 return false; | 484 return false; |
485 } | 485 } |
486 this->handleDirtyContext(); | 486 this->handleDirtyContext(); |
487 | 487 |
488 this->onDraw(pipeline, primProc, meshes, meshCount); | 488 this->onDraw(pipeline, primProc, meshes, meshCount); |
489 return true; | 489 return true; |
490 } | 490 } |
491 | |
OLD | NEW |