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 | |
372 //////////////////////////////////////////////////////////////////////////////// | 369 //////////////////////////////////////////////////////////////////////////////// |
373 | 370 |
374 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { | 371 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { |
375 this->handleDirtyContext(); | 372 this->handleDirtyContext(); |
376 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c
aps())) { | 373 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c
aps())) { |
377 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); | 374 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); |
378 } | 375 } |
379 | 376 |
380 GrVertices::Iterator iter; | 377 GrVertices::Iterator iter; |
381 const GrNonInstancedVertices* verts = iter.init(vertices); | 378 const GrNonInstancedVertices* verts = iter.init(vertices); |
382 do { | 379 do { |
383 this->onDraw(args, *verts); | 380 this->onDraw(args, *verts); |
384 fStats.incNumDraws(); | 381 fStats.incNumDraws(); |
385 } while ((verts = iter.next())); | 382 } while ((verts = iter.next())); |
386 } | 383 } |
387 | 384 |
OLD | NEW |