Move dump of batches to be after the forwardCombine call in prepareBatches
This eliminates an unfortunate red herring. Text batching isn't actually as bad as I had feared. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2110123003 Review-Url: https://codereview.chromium.org/2110123003
This commit is contained in:
parent
67f62fae59
commit
27fe1f849d
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user