| 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 } | 359 } |
| 360 return false; | 360 return false; |
| 361 } | 361 } |
| 362 | 362 |
| 363 void GrGpu::resolveRenderTarget(GrRenderTarget* target) { | 363 void GrGpu::resolveRenderTarget(GrRenderTarget* target) { |
| 364 SkASSERT(target); | 364 SkASSERT(target); |
| 365 this->handleDirtyContext(); | 365 this->handleDirtyContext(); |
| 366 this->onResolveRenderTarget(target); | 366 this->onResolveRenderTarget(target); |
| 367 } | 367 } |
| 368 | 368 |
| 369 void GrGpu::performFlushWorkaround() { |
| 370 } |
| 371 |
| 369 //////////////////////////////////////////////////////////////////////////////// | 372 //////////////////////////////////////////////////////////////////////////////// |
| 370 | 373 |
| 371 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { | 374 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { |
| 372 this->handleDirtyContext(); | 375 this->handleDirtyContext(); |
| 373 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c
aps())) { | 376 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c
aps())) { |
| 374 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); | 377 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); |
| 375 } | 378 } |
| 376 | 379 |
| 377 GrVertices::Iterator iter; | 380 GrVertices::Iterator iter; |
| 378 const GrNonInstancedVertices* verts = iter.init(vertices); | 381 const GrNonInstancedVertices* verts = iter.init(vertices); |
| 379 do { | 382 do { |
| 380 this->onDraw(args, *verts); | 383 this->onDraw(args, *verts); |
| 381 fStats.incNumDraws(); | 384 fStats.incNumDraws(); |
| 382 } while ((verts = iter.next())); | 385 } while ((verts = iter.next())); |
| 383 } | 386 } |
| 387 |
| OLD | NEW |