Enable Layer Squashing Prevention

With this CL, a layer may preclude squashing by subsequent layers
in paint order. NB: it makes no attempt to handle cases where
layers change sort order due to relative position in a 3D rendering
context.

I plan to add the test separately. It's in progress here:
crrev.com/c/842946

Bug: 788807
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: I817a7ddc6f446b7d65dde2c4b4d88a6ac8912549
Reviewed-on: https://chromium-review.googlesource.com/832668
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Chris Harrelson <[email protected]>
Commit-Queue: Ian Vollick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#526046}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index a48b0b7..d27de936 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1236,6 +1236,10 @@
     {"ui-disable-partial-swap", flag_descriptions::kUiPartialSwapName,
      flag_descriptions::kUiPartialSwapDescription, kOsAll,
      SINGLE_DISABLE_VALUE_TYPE(switches::kUIDisablePartialSwap)},
+    {"enable-prevent-layer-squashing",
+     flag_descriptions::kEnablePreventLayerSquashingName,
+     flag_descriptions::kEnablePreventLayerSquashingDescription, kOsAll,
+     FEATURE_VALUE_TYPE(features::kEnablePreventLayerSquashing)},
 #if BUILDFLAG(ENABLE_WEBRTC)
     {"disable-webrtc-hw-decoding", flag_descriptions::kWebrtcHwDecodingName,
      flag_descriptions::kWebrtcHwDecodingDescription, kOsAndroid | kOsCrOS,