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

Unified Diff: src/gpu/batches/GrDrawBatch.h

Issue 2108503004: Dump batch bounds and scissor rect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to match B.'s formatting Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/batches/GrDiscardBatch.h ('k') | src/gpu/batches/GrDrawPathBatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrDrawBatch.h
diff --git a/src/gpu/batches/GrDrawBatch.h b/src/gpu/batches/GrDrawBatch.h
index bf93cf5a72115f2a2df4734e361d3cfdeacfcee8..038665038094977163ec74f815c6b3d5ee8a49dd 100644
--- a/src/gpu/batches/GrDrawBatch.h
+++ b/src/gpu/batches/GrDrawBatch.h
@@ -100,6 +100,20 @@ public:
this->pipeline()->getCoverageFragmentProcessor(i).dumpInfo().c_str());
}
string.appendf("XP: %s\n", this->pipeline()->getXferProcessor().name());
+
+ bool scissorEnabled = this->pipeline()->getScissorState().enabled();
+ string.appendf("Scissor: ");
+ if (scissorEnabled) {
+ string.appendf("[L: %d, T: %d, R: %d, B: %d]\n",
+ this->pipeline()->getScissorState().rect().fLeft,
+ this->pipeline()->getScissorState().rect().fTop,
+ this->pipeline()->getScissorState().rect().fRight,
+ this->pipeline()->getScissorState().rect().fBottom);
+ } else {
+ string.appendf("<disabled>\n");
+ }
+ string.append(INHERITED::dumpInfo());
+
return string;
}
« no previous file with comments | « src/gpu/batches/GrDiscardBatch.h ('k') | src/gpu/batches/GrDrawPathBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698