Commit 54790f7b authored by halliwell's avatar halliwell Committed by Commit bot

Additional fix for rounding overlay display_rect to integers

This change: https://codereview.chromium.org/1110813002/ was missing a
key step - after an ozone platform validator has rounded display_rect
to integer coordinates, that data needs passing back through to the
compositor overlay candidate data - otherwise the assert is still fired.

BUG=

Review URL: https://codereview.chromium.org/1133953002

Cr-Commit-Position: refs/heads/master@{#329210}
parent eb57d858
...@@ -64,6 +64,7 @@ void BrowserCompositorOverlayCandidateValidatorOzone::CheckOverlaySupport( ...@@ -64,6 +64,7 @@ void BrowserCompositorOverlayCandidateValidatorOzone::CheckOverlaySupport(
for (size_t i = 0; i < surfaces->size(); i++) { for (size_t i = 0; i < surfaces->size(); i++) {
surfaces->at(i).overlay_handled = ozone_surface_list.at(i).overlay_handled; surfaces->at(i).overlay_handled = ozone_surface_list.at(i).overlay_handled;
surfaces->at(i).display_rect = ozone_surface_list.at(i).display_rect;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment