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

Issue 2763143002: Remove FrameGenerator::root_window_ (Closed)

Created:
3 years, 9 months ago by Alex Z.
Modified:
3 years, 9 months ago
CC:
chromium-reviews, rjkroege, kylechar
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove FrameGenerator::root_window_ FrameGenerator should be as simple as possible. PlatformDisplayDefault implements ServerWindowObserver and notify its FrameGenerator when the visibility or bounds of the root window changes. FrameGenerator updates window visibility and bounds when it gets notified and requests BeginFrames accordingly. BUG=683732 Review-Url: https://codereview.chromium.org/2763143002 Cr-Commit-Position: refs/heads/master@{#459157} Committed: https://chromium.googlesource.com/chromium/src/+/394caf0ffa05d6c7ada7560a3379f4807215bfb4

Patch Set 1 #

Total comments: 16

Patch Set 2 : Rebased and addressed comments #

Total comments: 7

Patch Set 3 : Addressed comments #

Total comments: 18

Patch Set 4 : Addressed comments #

Total comments: 6

Patch Set 5 : Addressed nits #

Total comments: 2

Patch Set 6 : PlatformDisplayDefault does not implement ServerWindowObserver #

Total comments: 4

Patch Set 7 : Addressed comments #

Total comments: 10

Patch Set 8 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -91 lines) Patch
M services/ui/ws/frame_generator.h View 1 2 3 4 5 6 7 5 chunks +6 lines, -13 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 3 4 5 6 7 9 chunks +28 lines, -27 lines 0 comments Download
M services/ui/ws/frame_generator_unittest.cc View 1 2 3 4 5 6 7 5 chunks +71 lines, -45 lines 0 comments Download
M services/ui/ws/platform_display_default.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/platform_display_default.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 53 (27 generated)
Alex Z.
PTAL
3 years, 9 months ago (2017-03-21 20:45:23 UTC) #3
Fady Samuel
Ohh sorry I forgot to send these out.. https://codereview.chromium.org/2763143002/diff/1/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2763143002/diff/1/services/ui/ws/frame_generator.cc#newcode39 services/ui/ws/frame_generator.cc:39: if ...
3 years, 9 months ago (2017-03-22 03:38:39 UTC) #7
Alex Z.
https://codereview.chromium.org/2763143002/diff/1/services/ui/ws/frame_generator.h File services/ui/ws/frame_generator.h (right): https://codereview.chromium.org/2763143002/diff/1/services/ui/ws/frame_generator.h#newcode37 services/ui/ws/frame_generator.h:37: bool visible, On 2017/03/22 03:38:39, Fady Samuel wrote: > ...
3 years, 9 months ago (2017-03-22 13:17:18 UTC) #8
Fady Samuel
On 2017/03/22 13:17:18, Alex Z. wrote: > https://codereview.chromium.org/2763143002/diff/1/services/ui/ws/frame_generator.h > File services/ui/ws/frame_generator.h (right): > > https://codereview.chromium.org/2763143002/diff/1/services/ui/ws/frame_generator.h#newcode37 ...
3 years, 9 months ago (2017-03-22 13:21:55 UTC) #9
Alex Z.
eseckler@: Please review changes in frame_generator_unittest.cc::BeginFrameWhileInvisible. https://codereview.chromium.org/2763143002/diff/1/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2763143002/diff/1/services/ui/ws/frame_generator.cc#newcode39 services/ui/ws/frame_generator.cc:39: if (window_manager_surface_info_.is_valid()) On ...
3 years, 9 months ago (2017-03-22 14:56:44 UTC) #11
Eric Seckler
On 2017/03/22 14:56:44, Alex Z. wrote: > eseckler@: Please review changes in > frame_generator_unittest.cc::BeginFrameWhileInvisible. Those ...
3 years, 9 months ago (2017-03-22 15:00:12 UTC) #12
Fady Samuel
https://codereview.chromium.org/2763143002/diff/20001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (left): https://codereview.chromium.org/2763143002/diff/20001/services/ui/ws/frame_generator.cc#oldcode39 services/ui/ws/frame_generator.cc:39: SetNeedsBeginFrame(true); alignment. https://codereview.chromium.org/2763143002/diff/20001/services/ui/ws/frame_generator.cc#oldcode48 services/ui/ws/frame_generator.cc:48: SetNeedsBeginFrame(true); This alignment is wrong. ...
3 years, 9 months ago (2017-03-22 15:32:27 UTC) #13
Alex Z.
https://codereview.chromium.org/2763143002/diff/20001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (left): https://codereview.chromium.org/2763143002/diff/20001/services/ui/ws/frame_generator.cc#oldcode39 services/ui/ws/frame_generator.cc:39: SetNeedsBeginFrame(true); On 2017/03/22 15:32:27, Fady Samuel wrote: > alignment. ...
3 years, 9 months ago (2017-03-22 16:55:34 UTC) #15
Fady Samuel
https://codereview.chromium.org/2763143002/diff/40001/services/ui/ws/frame_generator.h File services/ui/ws/frame_generator.h (right): https://codereview.chromium.org/2763143002/diff/40001/services/ui/ws/frame_generator.h#newcode11 services/ui/ws/frame_generator.h:11: #include "base/timer/timer.h" nit: Is this necessary? https://codereview.chromium.org/2763143002/diff/40001/services/ui/ws/frame_generator.h#newcode12 services/ui/ws/frame_generator.h:12: #include ...
3 years, 9 months ago (2017-03-22 18:19:40 UTC) #19
Alex Z.
https://codereview.chromium.org/2763143002/diff/40001/services/ui/ws/frame_generator.h File services/ui/ws/frame_generator.h (right): https://codereview.chromium.org/2763143002/diff/40001/services/ui/ws/frame_generator.h#newcode11 services/ui/ws/frame_generator.h:11: #include "base/timer/timer.h" On 2017/03/22 18:19:40, Fady Samuel wrote: > ...
3 years, 9 months ago (2017-03-22 18:35:58 UTC) #21
Fady Samuel
Looks good once these nits are addressed. https://codereview.chromium.org/2763143002/diff/60001/services/ui/ws/frame_generator.h File services/ui/ws/frame_generator.h (right): https://codereview.chromium.org/2763143002/diff/60001/services/ui/ws/frame_generator.h#newcode17 services/ui/ws/frame_generator.h:17: #include "ui/gfx/native_widget_types.h" ...
3 years, 9 months ago (2017-03-22 19:02:19 UTC) #23
Alex Z.
https://codereview.chromium.org/2763143002/diff/60001/services/ui/ws/frame_generator.h File services/ui/ws/frame_generator.h (right): https://codereview.chromium.org/2763143002/diff/60001/services/ui/ws/frame_generator.h#newcode17 services/ui/ws/frame_generator.h:17: #include "ui/gfx/native_widget_types.h" On 2017/03/22 19:02:19, Fady Samuel wrote: > ...
3 years, 9 months ago (2017-03-22 19:19:45 UTC) #24
Alex Z.
msw@: Please review changes in platform_display_default*.
3 years, 9 months ago (2017-03-22 19:20:22 UTC) #26
Fady Samuel
lgtm
3 years, 9 months ago (2017-03-22 19:20:37 UTC) #27
msw
https://codereview.chromium.org/2763143002/diff/80001/services/ui/ws/platform_display_default.cc File services/ui/ws/platform_display_default.cc (right): https://codereview.chromium.org/2763143002/diff/80001/services/ui/ws/platform_display_default.cc#newcode273 services/ui/ws/platform_display_default.cc:273: void PlatformDisplayDefault::OnWindowBoundsChanged( Why not make FrameGenerator observe the ServerWindow ...
3 years, 9 months ago (2017-03-22 19:36:52 UTC) #28
Alex Z.
https://codereview.chromium.org/2763143002/diff/80001/services/ui/ws/platform_display_default.cc File services/ui/ws/platform_display_default.cc (right): https://codereview.chromium.org/2763143002/diff/80001/services/ui/ws/platform_display_default.cc#newcode273 services/ui/ws/platform_display_default.cc:273: void PlatformDisplayDefault::OnWindowBoundsChanged( On 2017/03/22 19:36:52, msw wrote: > Why ...
3 years, 9 months ago (2017-03-22 20:51:11 UTC) #30
Fady Samuel
lgtm
3 years, 9 months ago (2017-03-22 20:55:09 UTC) #31
kylechar
https://codereview.chromium.org/2763143002/diff/100001/services/ui/ws/frame_generator.h File services/ui/ws/frame_generator.h (right): https://codereview.chromium.org/2763143002/diff/100001/services/ui/ws/frame_generator.h#newcode42 services/ui/ws/frame_generator.h:42: void OnWindowBoundsChanged(const gfx::Rect& bounds); This should just be a ...
3 years, 9 months ago (2017-03-22 20:58:48 UTC) #32
Alex Z.
https://codereview.chromium.org/2763143002/diff/100001/services/ui/ws/frame_generator.h File services/ui/ws/frame_generator.h (right): https://codereview.chromium.org/2763143002/diff/100001/services/ui/ws/frame_generator.h#newcode42 services/ui/ws/frame_generator.h:42: void OnWindowBoundsChanged(const gfx::Rect& bounds); On 2017/03/22 20:58:48, kylechar wrote: ...
3 years, 9 months ago (2017-03-22 21:20:35 UTC) #34
Fady Samuel
https://codereview.chromium.org/2763143002/diff/120001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2763143002/diff/120001/services/ui/ws/frame_generator.cc#newcode61 services/ui/ws/frame_generator.cc:61: void FrameGenerator::OnWindowBoundsChanged(const gfx::Size& pixel_size) { nit: BoundsChange isn't quite ...
3 years, 9 months ago (2017-03-22 21:21:37 UTC) #36
kylechar
A few nits. https://codereview.chromium.org/2763143002/diff/120001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2763143002/diff/120001/services/ui/ws/frame_generator.cc#newcode131 services/ui/ws/frame_generator.cc:131: const gfx::Rect bounds(pixel_size_.width(), pixel_size_.height()); There is ...
3 years, 9 months ago (2017-03-22 21:27:37 UTC) #38
Alex Z.
https://codereview.chromium.org/2763143002/diff/120001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2763143002/diff/120001/services/ui/ws/frame_generator.cc#newcode61 services/ui/ws/frame_generator.cc:61: void FrameGenerator::OnWindowBoundsChanged(const gfx::Size& pixel_size) { On 2017/03/22 21:21:37, Fady ...
3 years, 9 months ago (2017-03-23 14:18:44 UTC) #41
kylechar
lgtm
3 years, 9 months ago (2017-03-23 14:37:29 UTC) #44
msw
lgtm
3 years, 9 months ago (2017-03-23 18:29:02 UTC) #47
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/2763143002/140001
3 years, 9 months ago (2017-03-23 18:32:54 UTC) #50
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 18:40:16 UTC) #53
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/394caf0ffa05d6c7ada7560a3379...

Powered by Google App Engine
This is Rietveld 408576698