Chromium Code Reviews
DescriptionRevert of Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients. (patchset #9 id:240001 of https://codereview.chromium.org/2626013005/ )
Reason for revert:
Caused aura_unittests
WindowTreeClientClientTest.TwoWindowTreesRequestCapture
to fail consistently on
https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/builds/19320
since LSan detects a leak:
Direct leak of 64 byte(s) in 1 object(s) allocated from:
#0 0x52fcfb in operator new(unsigned long) (/b/s/w/irdxqiGi/out/Release/aura_unittests+0x52fcfb)
#1 0x729983 in aura::WindowTreeClientClientTest_TwoWindowTreesRequestCapture_Test::TestBody() ui/aura/mus/window_tree_client_unittest.cc:1376:7
Original issue's description:
> Change CaptureSynchronizer and PointerWatcherEventRouter to support
> multiple CaptureClients.
>
> DesktopNativeWidgetAura was using DesktopCaptureClient but
> CaptureSynchronizer was only supporting one CaptureClient, which is
> a CaptureController. Therefore made the following changes:
>
> 1. We have one CaptureController for ash and multiple
> DesktopCaptureClients for all mus clients. This CL changes
> CaptureSynchronizer and PointerWatcherEventRouter to support multiple
> CaptureClients. When a root window's capture client is set, MusClient
> will be notified by DesktopWindowTreeHostMus if it's a
> DesktopCaptureClient, and WindowManager will take care of
> CaptureController. We then add CaptureSynchronizer and
> PointerWatcherEventRouter to be the observer for that CaptureClient.
>
> 2. Update DesktopCaptureClient to notify its observers when capture
> has changed.
>
> BUG=676002, 678057
> TEST=aura_unittests views_mus_unittests
>
> Review-Url: https://codereview.chromium.org/2626013005
> Cr-Commit-Position: refs/heads/master@{#447621}
> Committed: https://chromium.googlesource.com/chromium/src/+/e75f053a801b6a6322a57a9417582f14ebc3f161
TBR=sadrul@chromium.org,sky@chromium.org,riajiang@chromium.org
# Not skipping CQ checks since other patches may depend on this one:
# - https://codereview.chromium.org/2667073002
# - https://codereview.chromium.org/2657873006
NOPRESUBMIT=true
NOTREECHECKS=true
BUG=676002, 678057
Patch Set 1 #Messages
Total messages: 11 (6 generated)
|