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

Issue 348623005: DesktopVideoCaptureMachine: do not cache window layer pointer. (Closed)

Created:
6 years, 6 months ago by hshi1
Modified:
6 years, 6 months ago
Reviewers:
danakj, piman
CC:
chromium-reviews, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org
Project:
chromium
Visibility:
Public.

Description

DesktopVideoCaptureMachine: do not cache window layer pointer. The aura window's layer pointer is subject to change due to layer recreation, so the cached pointer |desktop_layer_| may be invalid. Always use aura::Window::layer() accessor instead. BUG=385751 TEST=start desktop sharing and switch between windowed/immersive mode. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278695

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments. #

Total comments: 7

Patch Set 3 : DCHECK that window pointer matches #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -29 lines) Patch
M content/browser/media/capture/desktop_capture_device_aura.cc View 1 2 13 chunks +33 lines, -29 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hshi1
PTAL. For testing I was able to get a consistent local repro of the bug ...
6 years, 6 months ago (2014-06-19 21:16:09 UTC) #1
danakj
https://codereview.chromium.org/348623005/diff/1/content/browser/media/capture/desktop_capture_device_aura.cc File content/browser/media/capture/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/348623005/diff/1/content/browser/media/capture/desktop_capture_device_aura.cc#newcode269 content/browser/media/capture/desktop_capture_device_aura.cc:269: if (!layer) Why are there so many checks for ...
6 years, 6 months ago (2014-06-19 21:43:28 UTC) #2
piman
https://codereview.chromium.org/348623005/diff/1/content/browser/media/capture/desktop_capture_device_aura.cc File content/browser/media/capture/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/348623005/diff/1/content/browser/media/capture/desktop_capture_device_aura.cc#newcode237 content/browser/media/capture/desktop_capture_device_aura.cc:237: compositor->RemoveObserver(this); If the layer can change, how do you ...
6 years, 6 months ago (2014-06-19 21:59:20 UTC) #3
hshi1
PTAL patch set #2 https://codereview.chromium.org/348623005/diff/1/content/browser/media/capture/desktop_capture_device_aura.cc File content/browser/media/capture/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/348623005/diff/1/content/browser/media/capture/desktop_capture_device_aura.cc#newcode237 content/browser/media/capture/desktop_capture_device_aura.cc:237: compositor->RemoveObserver(this); On 2014/06/19 21:59:19, piman ...
6 years, 6 months ago (2014-06-19 22:19:33 UTC) #4
danakj
Thanks, one more Q https://codereview.chromium.org/348623005/diff/20001/content/browser/media/capture/desktop_capture_device_aura.cc File content/browser/media/capture/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/348623005/diff/20001/content/browser/media/capture/desktop_capture_device_aura.cc#newcode258 content/browser/media/capture/desktop_capture_device_aura.cc:258: // Do not capture if ...
6 years, 6 months ago (2014-06-19 22:22:06 UTC) #5
piman
LGTM+nits/suggestions. https://codereview.chromium.org/348623005/diff/20001/content/browser/media/capture/desktop_capture_device_aura.cc File content/browser/media/capture/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/348623005/diff/20001/content/browser/media/capture/desktop_capture_device_aura.cc#newcode258 content/browser/media/capture/desktop_capture_device_aura.cc:258: // Do not capture if the desktop window ...
6 years, 6 months ago (2014-06-19 23:11:49 UTC) #6
danakj
https://codereview.chromium.org/348623005/diff/20001/content/browser/media/capture/desktop_capture_device_aura.cc File content/browser/media/capture/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/348623005/diff/20001/content/browser/media/capture/desktop_capture_device_aura.cc#newcode258 content/browser/media/capture/desktop_capture_device_aura.cc:258: // Do not capture if the desktop window is ...
6 years, 6 months ago (2014-06-19 23:22:37 UTC) #7
hshi1
https://codereview.chromium.org/348623005/diff/20001/content/browser/media/capture/desktop_capture_device_aura.cc File content/browser/media/capture/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/348623005/diff/20001/content/browser/media/capture/desktop_capture_device_aura.cc#newcode493 content/browser/media/capture/desktop_capture_device_aura.cc:493: if (window == desktop_window_) On 2014/06/19 23:11:49, piman wrote: ...
6 years, 6 months ago (2014-06-19 23:53:07 UTC) #8
hshi1
The CQ bit was checked by hshi@chromium.org
6 years, 6 months ago (2014-06-19 23:54:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/348623005/40001
6 years, 6 months ago (2014-06-19 23:55:39 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 07:47:04 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 13:18:17 UTC) #12
Message was sent while issue was closed.
Change committed as 278695

Powered by Google App Engine
This is Rietveld 408576698