[Blink/SPv175+] Change DCHECK(chunk clip escaped layer clip) to a DLOG
The PaintChunkToCcLayer algorithm was originally designed for SPv2 compositor, and it was expected the layerization algorithm should never assign a chunk to a excessively clipped layer, thus the DCHECK. Later this algorithm was adopted in SPv175 to be used with the SPv1 compositor. There is a known bug that in certain corner case we can fail to escape clip, and the bug is difficult to fix in the legacy architecture. The DCHECK is expected to be a "soft" one that we have a fail-safe path to recover in a sane way. This CL converts the DCHECK to a DLOG in SPv1 mode, and it should still trap in SPv2 mode. In addition, it reverts a workaround to a nullptr bug in the fail-safe path, and add a test for the fail-safe. BUG=881788,853357 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I4606acf4885f3344bb45a901bb2e8e46dbcda49a Reviewed-on: https://chromium-review.googlesource.com/1213952Reviewed-by:vmpstr <vmpstr@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Commit-Queue: Tien-Ren Chen <trchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#590052}
Showing
Please register or sign in to comment