| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 } | 345 } |
| 346 return false; | 346 return false; |
| 347 } | 347 } |
| 348 | 348 |
| 349 void GrGpu::resolveRenderTarget(GrRenderTarget* target) { | 349 void GrGpu::resolveRenderTarget(GrRenderTarget* target) { |
| 350 SkASSERT(target); | 350 SkASSERT(target); |
| 351 this->handleDirtyContext(); | 351 this->handleDirtyContext(); |
| 352 this->onResolveRenderTarget(target); | 352 this->onResolveRenderTarget(target); |
| 353 } | 353 } |
| 354 | 354 |
| 355 void GrGpu::performFlushWorkaround() { |
| 356 } |
| 357 |
| 355 //////////////////////////////////////////////////////////////////////////////// | 358 //////////////////////////////////////////////////////////////////////////////// |
| 356 | 359 |
| 357 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { | 360 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { |
| 358 this->handleDirtyContext(); | 361 this->handleDirtyContext(); |
| 359 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c
aps())) { | 362 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c
aps())) { |
| 360 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); | 363 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); |
| 361 } | 364 } |
| 362 | 365 |
| 363 GrVertices::Iterator iter; | 366 GrVertices::Iterator iter; |
| 364 const GrNonInstancedVertices* verts = iter.init(vertices); | 367 const GrNonInstancedVertices* verts = iter.init(vertices); |
| 365 do { | 368 do { |
| 366 this->onDraw(args, *verts); | 369 this->onDraw(args, *verts); |
| 367 fStats.incNumDraws(); | 370 fStats.incNumDraws(); |
| 368 } while ((verts = iter.next())); | 371 } while ((verts = iter.next())); |
| 369 } | 372 } |
| 373 |
| OLD | NEW |