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

Issue 2580703005: Fixes bug in ServerWindowCompositorFrameSinkManager (Closed)

Created:
4 years ago by sky
Modified:
4 years ago
Reviewers:
Fady Samuel
CC:
chromium-reviews, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes bug in ServerWindowCompositorFrameSinkManager It was assuming there is always a root window, which isn't the case. GetRootWindow() only returns non-null when attached to a display, so if a window has a parent but isn't yet attached to a display then GetRoot returns null. BUG=674575 TEST=none R=fsamuel@chromium.org Committed: https://crrev.com/f58580288ec06e8196db11ee9280b5eabac1b5ad Cr-Commit-Position: refs/heads/master@{#439132}

Patch Set 1 #

Patch Set 2 : tweak #

Patch Set 3 : merge #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -8 lines) Patch
M services/ui/ws/server_window.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M services/ui/ws/server_window.cc View 1 2 4 chunks +14 lines, -2 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.cc View 1 2 4 chunks +22 lines, -6 lines 2 comments Download

Messages

Total messages: 19 (12 generated)
sky
I would like a test for this, but I'm not sure how to exercise this ...
4 years ago (2016-12-15 21:49:05 UTC) #1
Fady Samuel
lgtm, we might be able to write a test in frame_generator_unittest.cc but all this code ...
4 years ago (2016-12-16 16:59:49 UTC) #10
sky
https://codereview.chromium.org/2580703005/diff/40001/services/ui/ws/server_window_compositor_frame_sink_manager.cc File services/ui/ws/server_window_compositor_frame_sink_manager.cc (left): https://codereview.chromium.org/2580703005/diff/40001/services/ui/ws/server_window_compositor_frame_sink_manager.cc#oldcode165 services/ui/ws/server_window_compositor_frame_sink_manager.cc:165: if (window_->parent()) { On 2016/12/16 16:59:49, Fady Samuel wrote: ...
4 years ago (2016-12-16 17:07:07 UTC) #11
Fady Samuel
On 2016/12/16 17:07:07, sky wrote: > https://codereview.chromium.org/2580703005/diff/40001/services/ui/ws/server_window_compositor_frame_sink_manager.cc > File services/ui/ws/server_window_compositor_frame_sink_manager.cc (left): > > https://codereview.chromium.org/2580703005/diff/40001/services/ui/ws/server_window_compositor_frame_sink_manager.cc#oldcode165 > ...
4 years ago (2016-12-16 17:07:59 UTC) #12
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/2580703005/40001
4 years ago (2016-12-16 17:15:36 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-16 17:22:44 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-16 17:25:20 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f58580288ec06e8196db11ee9280b5eabac1b5ad
Cr-Commit-Position: refs/heads/master@{#439132}

Powered by Google App Engine
This is Rietveld 408576698