Make DDL contexts/drawing managers always sort opLists
We want:
DDLs to always be sorted
Live rendering to still be sorted w/in Skia
Live rendering to still not be sorted in Chrome and Android
Additionally, we want reduced-opList-splitting to only be enabled on some of Skia's bots.
Change-Id: I15e7d69c7e109749665a86a0169ad918c993dc77
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/199244
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrLegacyDirectContext.cpp b/src/gpu/GrLegacyDirectContext.cpp
index e580ac8..75fb6e1 100644
--- a/src/gpu/GrLegacyDirectContext.cpp
+++ b/src/gpu/GrLegacyDirectContext.cpp
@@ -73,6 +73,15 @@
return false;
}
+ bool sortOpLists = this->explicitlyAllocateGPUResources();
+ if (GrContextOptions::Enable::kNo == this->options().fSortRenderTargets) {
+ sortOpLists = false;
+ } else if (GrContextOptions::Enable::kYes == this->options().fSortRenderTargets) {
+ sortOpLists = true;
+ }
+
+ this->setupDrawingManager(this->explicitlyAllocateGPUResources(), sortOpLists);
+
SkASSERT(this->caps());
GrDrawOpAtlas::AllowMultitexturing allowMultitexturing;