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

Issue 2651843002: FrameGenerator should receive SurfaceInfo and use it in frame generation (Closed)

Created:
3 years, 11 months ago by Saman Sami
Modified:
3 years, 11 months ago
Reviewers:
danakj, Fady Samuel, sky
CC:
chromium-reviews, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FrameGenerator should receive SurfaceInfo and use it in frame generation FrameGenerator::OnSurfaceCreated should get a full SurfaceInfo object, as opposed to a surface id, and use that in frame generation instead of depending on a window object. FrameGenerator should not receive begin frames unless the SurfaceInfo object or device_scale_factor_ changes. Fixed a bug in SurfaceFactory, where the frame size was not calculated properly. BUG=683732 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2651843002 Cr-Commit-Position: refs/heads/master@{#445901} Committed: https://chromium.googlesource.com/chromium/src/+/401c5932118fb24071348b6a6ee5ce1638a7d982

Patch Set 1 #

Total comments: 1

Patch Set 2 : c #

Total comments: 26

Patch Set 3 : c #

Patch Set 4 : c #

Patch Set 5 : c #

Total comments: 8

Patch Set 6 : c #

Patch Set 7 : c #

Patch Set 8 : c #

Patch Set 9 : c #

Total comments: 2

Patch Set 10 : c #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -99 lines) Patch
M cc/surfaces/surface_factory.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +25 lines, -0 lines 0 comments Download
M services/ui/ws/display.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/ws/display.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -7 lines 0 comments Download
M services/ui/ws/frame_generator.h View 1 2 3 4 4 chunks +8 lines, -16 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 3 4 5 8 6 chunks +42 lines, -42 lines 0 comments Download
M services/ui/ws/frame_generator_delegate.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M services/ui/ws/frame_generator_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -4 lines 0 comments Download
M services/ui/ws/platform_display_default.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/platform_display_default.cc View 1 2 3 chunks +2 lines, -6 lines 0 comments Download
M services/ui/ws/platform_display_delegate.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 5 1 chunk +1 line, -7 lines 0 comments Download
M services/ui/ws/window_server.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 61 (42 generated)
Saman Sami
PTAL
3 years, 11 months ago (2017-01-23 22:31:07 UTC) #5
Fady Samuel
https://codereview.chromium.org/2651843002/diff/1/services/ui/ws/window_server.cc File services/ui/ws/window_server.cc (right): https://codereview.chromium.org/2651843002/diff/1/services/ui/ws/window_server.cc#newcode789 services/ui/ws/window_server.cc:789: ->OnSurfaceCreated(surface_info, window); While you're at it, could you please ...
3 years, 11 months ago (2017-01-23 22:34:27 UTC) #6
Saman Sami
PTAL
3 years, 11 months ago (2017-01-23 23:10:50 UTC) #8
Fady Samuel
https://codereview.chromium.org/2651843002/diff/20001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2651843002/diff/20001/services/ui/ws/frame_generator.cc#newcode114 services/ui/ws/frame_generator.cc:114: shared_state->SetAll(gfx::Transform(), output_rect.size(), output_rect, You should scale the bounds like ...
3 years, 11 months ago (2017-01-23 23:26:54 UTC) #10
Fady Samuel
https://codereview.chromium.org/2651843002/diff/20001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2651843002/diff/20001/services/ui/ws/frame_generator.cc#newcode105 services/ui/ws/frame_generator.cc:105: DrawWindow(render_pass.get(), delegate_->GetActiveRootWindow()); We don't need GetActiveRootWindow here anymore. In ...
3 years, 11 months ago (2017-01-24 02:52:32 UTC) #13
Saman Sami
PTAL https://codereview.chromium.org/2651843002/diff/20001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2651843002/diff/20001/services/ui/ws/frame_generator.cc#newcode105 services/ui/ws/frame_generator.cc:105: DrawWindow(render_pass.get(), delegate_->GetActiveRootWindow()); On 2017/01/24 02:52:31, Fady Samuel wrote: ...
3 years, 11 months ago (2017-01-24 20:29:59 UTC) #25
Fady Samuel
https://codereview.chromium.org/2651843002/diff/80001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2651843002/diff/80001/services/ui/ws/frame_generator.cc#newcode35 services/ui/ws/frame_generator.cc:35: device_scale_factor_ = device_scale_factor; Let's not do work if we ...
3 years, 11 months ago (2017-01-24 20:43:28 UTC) #26
Saman Sami
PTAL https://codereview.chromium.org/2651843002/diff/80001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2651843002/diff/80001/services/ui/ws/frame_generator.cc#newcode35 services/ui/ws/frame_generator.cc:35: device_scale_factor_ = device_scale_factor; On 2017/01/24 20:43:28, Fady Samuel ...
3 years, 11 months ago (2017-01-24 21:13:12 UTC) #31
Fady Samuel
LGTM
3 years, 11 months ago (2017-01-24 21:15:55 UTC) #32
Fady Samuel
LGTM
3 years, 11 months ago (2017-01-24 21:15:55 UTC) #33
Saman Sami
sky: Please review services/ danakj: Please review cc/
3 years, 11 months ago (2017-01-24 21:25:11 UTC) #37
sky
LGTM https://codereview.chromium.org/2651843002/diff/160001/services/ui/ws/display.h File services/ui/ws/display.h (right): https://codereview.chromium.org/2651843002/diff/160001/services/ui/ws/display.h#newcode147 services/ui/ws/display.h:147: ServerWindow* GetActiveRootWindow(); Style guide says declaration and definition ...
3 years, 11 months ago (2017-01-24 22:29:59 UTC) #46
danakj
cc LGTM https://codereview.chromium.org/2651843002/diff/160001/cc/surfaces/surface_factory_unittest.cc File cc/surfaces/surface_factory_unittest.cc (right): https://codereview.chromium.org/2651843002/diff/160001/cc/surfaces/surface_factory_unittest.cc#newcode680 cc/surfaces/surface_factory_unittest.cc:680: render_pass->SetNew(1, gfx::Rect(0, 0, 5, 6), gfx::Rect(), gfx::Transform()); ...
3 years, 11 months ago (2017-01-24 22:37:19 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/2651843002/180001
3 years, 11 months ago (2017-01-24 22:52:59 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/335776)
3 years, 11 months ago (2017-01-24 23:26:32 UTC) #52
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/2651843002/180001
3 years, 11 months ago (2017-01-24 23:30:28 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/158052)
3 years, 11 months ago (2017-01-24 23:42:01 UTC) #56
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/2651843002/180001
3 years, 11 months ago (2017-01-25 00:57:49 UTC) #58
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 01:31:40 UTC) #61
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/401c5932118fb24071348b6a6ee5...

Powered by Google App Engine
This is Rietveld 408576698