viz: Add flag to enable splitting quads for occlusion
This patch adds a flag to enable/disable splitting quads when partially
occluded to reduce compositing overdraw.
This flag currently disables the optimization, so that we can consider
merging this patch back to 81 along with the optimization (then the
optimization will need to be explicitly enabled via the flag in 81).
Bug: 1061708
Test: Power consumption of meets on a chromebook with the flag on and off
Change-Id: I4417076a21c7074244e7bb960b1e1cf477fb721a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2103721
Commit-Queue: Daniele Castagna <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Cr-Commit-Position: refs/heads/master@{#750460}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 700f554..0061e29 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -1782,6 +1782,12 @@
"a query, any service worker associated with the search engine the query "
"will be sent to is started early.";
+const char kSplitPartiallyOccludedQuadsName[] =
+ "Split partially occluded quads";
+const char kSplitPartiallyOccludedQuadsDescription[] =
+ "Split partially occluded quads before drawing, discarding the occluded "
+ "regions, in order to redruce compositing overdraw.";
+
const char kStrictOriginIsolationName[] = "Strict-Origin-Isolation";
const char kStrictOriginIsolationDescription[] =
"Experimental security mode that strengthens the site isolation policy. "