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

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

Issue 1443763002: Increase the amount of debug information printed out by batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix printf Created 5 years, 1 month 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 | « src/effects/SkLightingImageFilter.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | 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 #include "GrDrawTarget.h" 9 #include "GrDrawTarget.h"
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // Can't make it closed in the self-read case 86 // Can't make it closed in the self-read case
87 dt->makeClosed(); 87 dt->makeClosed();
88 } 88 }
89 } 89 }
90 } 90 }
91 91
92 #ifdef SK_DEBUG 92 #ifdef SK_DEBUG
93 void GrDrawTarget::dump() const { 93 void GrDrawTarget::dump() const {
94 SkDebugf("--------------------------------------------------------------\n") ; 94 SkDebugf("--------------------------------------------------------------\n") ;
95 SkDebugf("node: %d\n"); 95 SkDebugf("node: %d -> RT: %d\n", fDebugID, fRenderTarget ? fRenderTarget->ge tUniqueID() : -1);
96 SkDebugf("relies On (%d): ", fDependencies.count()); 96 SkDebugf("relies On (%d): ", fDependencies.count());
97 for (int i = 0; i < fDependencies.count(); ++i) { 97 for (int i = 0; i < fDependencies.count(); ++i) {
98 SkDebugf("%d, ", fDependencies[i]->fDebugID); 98 SkDebugf("%d, ", fDependencies[i]->fDebugID);
99 } 99 }
100 SkDebugf("\n"); 100 SkDebugf("\n");
101 SkDebugf("batches (%d):\n", fBatches.count()); 101 SkDebugf("batches (%d):\n", fBatches.count());
102 for (int i = 0; i < fBatches.count(); ++i) { 102 for (int i = 0; i < fBatches.count(); ++i) {
103 #if 0 103 #if 0
104 SkDebugf("*******************************\n"); 104 SkDebugf("*******************************\n");
105 #endif 105 #endif
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 } 547 }
548 548
549 return true; 549 return true;
550 } 550 }
551 551
552 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend erTarget* rt) { 552 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend erTarget* rt) {
553 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); 553 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt);
554 this->recordBatch(batch); 554 this->recordBatch(batch);
555 batch->unref(); 555 batch->unref();
556 } 556 }
OLDNEW
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698