CompositorSurfaceManager gets arg order wrong for synthetic surfaceCreated call |
||||
Issue descriptionwhen sending a synthetic surfaceCreated event CSM, sends "width, height, format" instead of "format, width, height". This greatly breaks things. unfortunately, the tests miss it because they match anyInt() for the callback. tguilbert uncovered this issue while adding AndroidOverlay support. previously, synthetic create events are pretty rare, maybe impossible.
,
Jun 5 2017
requesting merge just in case there's an edge case that actually hits this path.
,
Jun 6 2017
Your change meets the bar and is auto-approved for M60. Please go ahead and merge the CL to branch 3112 manually. Please contact milestone owner if you have questions. Owners: amineer@(Android), cmasso@(iOS), josafat@(ChromeOS), bustamante@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 7 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/54644fd3cf8319f81869a3a557922b37d6ff1f27 commit 54644fd3cf8319f81869a3a557922b37d6ff1f27 Author: liberato@chromium.org <liberato@chromium.org> Date: Wed Jun 07 20:56:01 2017 Fix CompositorSurfaceManager synthetic surfaceCreated arg order. [Merge to M60] When sending a synthetic surfaceChanged to the client, CSM swapped the order of the width, height pair with the surface format. As a result, the compositor got the wrong value for all of them. This CL also updates the test to check for this case, since it was using anyInt() in the matchers previously. BUG= 728790 TEST=CompositorSurfaceManagerTest Review-Url: https://codereview.chromium.org/2916153002 Review-Url: https://codereview.chromium.org/2928483006 . Cr-Commit-Position: refs/branch-heads/3112@{#233} Cr-Branched-From: b6460e24cf59f429d69de255538d0fc7a425ccf9-refs/heads/master@{#474897} [modify] https://crrev.com/54644fd3cf8319f81869a3a557922b37d6ff1f27/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorSurfaceManager.java [modify] https://crrev.com/54644fd3cf8319f81869a3a557922b37d6ff1f27/chrome/android/junit/src/org/chromium/chrome/browser/compositor/CompositorSurfaceManagerTest.java |
||||
►
Sign in to add a comment |
||||
Comment 1 by liber...@chromium.org
, Jun 5 2017