Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: src/gpu/GrGpu.cpp

Issue 1333623003: wire up incNumDraws (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { 359 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) {
360 this->handleDirtyContext(); 360 this->handleDirtyContext();
361 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c aps())) { 361 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c aps())) {
362 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); 362 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType);
363 } 363 }
364 364
365 GrVertices::Iterator iter; 365 GrVertices::Iterator iter;
366 const GrNonInstancedVertices* verts = iter.init(vertices); 366 const GrNonInstancedVertices* verts = iter.init(vertices);
367 do { 367 do {
368 this->onDraw(args, *verts); 368 this->onDraw(args, *verts);
369 fStats.incNumDraws();
369 } while ((verts = iter.next())); 370 } while ((verts = iter.next()));
370 } 371 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698