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

Unified Diff: src/gpu/GrDrawingManager.cpp

Issue 2110123003: Move dump of batches to be after the forwardCombine call in prepareBatches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawingManager.cpp
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp
index f0a9a161c8e8ea103614cd51055fe2914a915a07..458bd20571fafc332fff5cb2bd66accd1bde31f9 100644
--- a/src/gpu/GrDrawingManager.cpp
+++ b/src/gpu/GrDrawingManager.cpp
@@ -67,6 +67,10 @@ void GrDrawingManager::flush() {
SkTTopoSort<GrDrawTarget, GrDrawTarget::TopoSortTraits>(&fDrawTargets);
SkASSERT(result);
+ for (int i = 0; i < fDrawTargets.count(); ++i) {
+ fDrawTargets[i]->prepareBatches(&fFlushState);
+ }
+
// Enable this to print out verbose batching information
#if 0
for (int i = 0; i < fDrawTargets.count(); ++i) {
@@ -74,10 +78,6 @@ void GrDrawingManager::flush() {
}
#endif
- for (int i = 0; i < fDrawTargets.count(); ++i) {
- fDrawTargets[i]->prepareBatches(&fFlushState);
- }
-
// Upload all data to the GPU
fFlushState.preIssueDraws();
« 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