Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Issue 2674683002: Revert: Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients (Closed)

Created:
3 years, 10 months ago by johnme
Modified:
3 years, 10 months ago
Reviewers:
sadrul, sky, riajiang
CC:
chromium-reviews, kalyank, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -231 lines) Patch
M ash/mus/window_manager.cc View 3 chunks +0 lines, -13 lines 0 comments Download
M ui/aura/mus/capture_synchronizer.h View 2 chunks +5 lines, -7 lines 0 comments Download
M ui/aura/mus/capture_synchronizer.cc View 2 chunks +14 lines, -33 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 2 chunks +0 lines, -65 lines 0 comments Download
M ui/aura/test/aura_test_helper.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 3 chunks +0 lines, -7 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus_unittest.cc View 2 chunks +0 lines, -47 lines 0 comments Download
M ui/views/mus/mus_client.h View 2 chunks +0 lines, -9 lines 0 comments Download
M ui/views/mus/mus_client.cc View 2 chunks +0 lines, -15 lines 0 comments Download
M ui/views/mus/pointer_watcher_event_router.h View 2 chunks +0 lines, -8 lines 0 comments Download
M ui/views/mus/pointer_watcher_event_router.cc View 3 chunks +5 lines, -11 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_capture_client.h View 2 chunks +0 lines, -3 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_capture_client.cc View 3 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
johnme
Created Revert of Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients.
3 years, 10 months ago (2017-02-02 12:59:20 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2674683002/1
3 years, 10 months ago (2017-02-02 13:03:13 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/146241) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-02 13:04:46 UTC) #9
findit-for-me
FYI: Findit identified this CL at revision 447753 as the culprit for failures in the ...
3 years, 10 months ago (2017-02-02 13:20:11 UTC) #10
johnme
3 years, 10 months ago (2017-02-02 13:23:39 UTC) #11
Message was sent while issue was closed.
I'm confused - I cancelled the CQ, removed the NOTRY=true, then re-enabled CQ.
As you can see, the description here doesn't have NOTRY, and there's no
auto-generated comment from the CQ saying it landed. However it clearly did land
as https://crrev.com/f5a30c08e753738a71894ed1f43c07a6d0421dc6, so I'll close
this. It also broke compile, since it turns out
https://codereview.chromium.org/2657873006 did depend on this. I've created a
revert of that patchset in https://codereview.chromium.org/2669203002 which
should hopefully fix the compile failure.

Powered by Google App Engine
This is Rietveld 408576698