Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Fix occlusion tracking for layers with non-default blend modes
When computing the occlusion from a layer, draw_blend_mode rather than blend_mode needs to be considered, since draw_blend_mode is what's used when drawing the layer. However, non-default blend modes currently always trigger surface creation, and then the blend mode gets applied when drawing the surface. This means that draw_blend_mode is always SrcOver. This CL replaces the incorrect use of blend_mode in OcclusionTracker::MarkOcclusionBehindLayer with a DCHECK that draw_blend_mode is SrcOver. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Review-Url: https://codereview.chromium.org/2176903002 Cr-Commit-Position: refs/heads/master@{#407572}
- Loading branch information