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