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

Issue 2029323004: Get rid of virtual Display::CreateScheduler. (Closed)

Created:
4 years, 6 months ago by danakj
Modified:
4 years, 6 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, Fady Samuel, jam, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, piman, rjkroege, sadrul, sievers+watch_chromium.org, Ian Vollick, brianderson
Base URL:
https://chromium.googlesource.com/chromium/src.git@onscreendisplayclient
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get rid of virtual Display::CreateScheduler. This method is virtual for tests to override the scheduler. Instead have tests pass a different scheduler to a constructor. In order to make this work, we must set up the scheduler in the Display's constructor. For us to do that, we need to pass the BeginFrameSource to the constructor also, which means the Display's OutputSurface does not give a BeginFrameSource to the Display during BindToClient. Instead, the code that makes the OutputSurface and the Display must figure out the BeginFrameSource and pass it to the Display (and maybe to the OutputSurface if it needs it). This is some cleanup followup work for https://codereview.chromium.org/2036563002/ R=enne@chromium.org, fsamuel@chromium.org, jbauman@chromium.org BUG=487471 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/8eb035c0f0b18c55ddd76dad607649e596035995 Cr-Commit-Position: refs/heads/master@{#400529}

Patch Set 1 #

Patch Set 2 : displaytest: androids #

Total comments: 4

Patch Set 3 : displaytest: rebase #

Patch Set 4 : displaytest: ownership-all-the-things #

Total comments: 4

Patch Set 5 : displaytest: rebase #

Patch Set 6 : displaytest: deadfunction #

Patch Set 7 : displaytest: disable_display_vsync #

Patch Set 8 : displaytest: nits #

Patch Set 9 : displaytest: dcheck #

Patch Set 10 : displaytest: androidvsync #

Patch Set 11 : displaytest: unusedvar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+666 lines, -710 lines) Patch
M android_webview/browser/hardware_renderer.cc View 1 2 3 2 chunks +13 lines, -2 lines 0 comments Download
M base/test/test_message_loop.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M cc/scheduler/begin_frame_source.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M cc/surfaces/display.h View 1 2 3 4 5 6 7 5 chunks +13 lines, -22 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 5 6 7 8 7 chunks +44 lines, -66 lines 0 comments Download
M cc/surfaces/display_scheduler.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M cc/surfaces/display_scheduler.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M cc/surfaces/display_scheduler_unittest.cc View 1 2 3 4 12 chunks +158 lines, -164 lines 0 comments Download
M cc/surfaces/display_unittest.cc View 1 2 3 4 5 6 7 18 chunks +186 lines, -213 lines 0 comments Download
M cc/surfaces/surface_display_output_surface_unittest.cc View 1 2 3 4 5 6 7 5 chunks +16 lines, -12 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M cc/test/pixel_test_delegating_output_surface.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M cc/test/pixel_test_delegating_output_surface.cc View 1 2 3 4 5 6 7 2 chunks +21 lines, -17 lines 0 comments Download
M cc/test/pixel_test_output_surface.h View 1 2 3 2 chunks +3 lines, -10 lines 0 comments Download
M cc/test/pixel_test_output_surface.cc View 1 2 3 3 chunks +4 lines, -22 lines 0 comments Download
M components/mus/surfaces/direct_output_surface.h View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M components/mus/surfaces/direct_output_surface.cc View 1 2 3 4 2 chunks +4 lines, -7 lines 0 comments Download
M components/mus/surfaces/direct_output_surface_ozone.h View 1 2 3 4 5 4 chunks +3 lines, -3 lines 0 comments Download
M components/mus/surfaces/direct_output_surface_ozone.cc View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download
M components/mus/surfaces/display_compositor.cc View 1 2 3 4 2 chunks +22 lines, -9 lines 0 comments Download
M content/browser/compositor/browser_compositor_output_surface.h View 1 2 3 3 chunks +5 lines, -9 lines 0 comments Download
M content/browser/compositor/browser_compositor_output_surface.cc View 1 2 3 4 5 chunks +7 lines, -13 lines 0 comments Download
M content/browser/compositor/gpu_browser_compositor_output_surface.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_browser_compositor_output_surface.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/compositor/gpu_output_surface_mac.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_output_surface_mac.mm View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 8 9 chunks +32 lines, -10 lines 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/compositor/reflector_impl_unittest.cc View 1 2 3 4 4 chunks +11 lines, -4 lines 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface_unittest.cc View 1 2 3 4 4 chunks +16 lines, -18 lines 0 comments Download
M content/browser/compositor/vulkan_browser_compositor_output_surface.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/vulkan_browser_compositor_output_surface.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +27 lines, -44 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.cc View 1 2 3 4 5 6 7 5 chunks +25 lines, -23 lines 0 comments Download

Messages

Total messages: 66 (27 generated)
danakj
4 years, 6 months ago (2016-06-02 01:54:00 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2029323004/20001
4 years, 6 months ago (2016-06-02 01:55:14 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/86686)
4 years, 6 months ago (2016-06-02 02:09:02 UTC) #8
Fady Samuel
mus lgtm
4 years, 6 months ago (2016-06-02 02:49:43 UTC) #9
enne (OOO)
https://codereview.chromium.org/2029323004/diff/20001/cc/surfaces/display.cc File cc/surfaces/display.cc (right): https://codereview.chromium.org/2029323004/diff/20001/cc/surfaces/display.cc#newcode61 cc/surfaces/display.cc:61: if (begin_frame_source) { I'm not sure I understand this ...
4 years, 6 months ago (2016-06-02 18:15:20 UTC) #10
danakj
https://codereview.chromium.org/2029323004/diff/20001/cc/surfaces/display.cc File cc/surfaces/display.cc (right): https://codereview.chromium.org/2029323004/diff/20001/cc/surfaces/display.cc#newcode61 cc/surfaces/display.cc:61: if (begin_frame_source) { On 2016/06/02 18:15:20, enne wrote: > ...
4 years, 6 months ago (2016-06-02 18:27:22 UTC) #11
enne (OOO)
lgtm in general https://codereview.chromium.org/2029323004/diff/20001/cc/surfaces/display.cc File cc/surfaces/display.cc (right): https://codereview.chromium.org/2029323004/diff/20001/cc/surfaces/display.cc#newcode61 cc/surfaces/display.cc:61: if (begin_frame_source) { On 2016/06/02 at ...
4 years, 6 months ago (2016-06-02 18:58:10 UTC) #12
boliu
rs lgtm
4 years, 6 months ago (2016-06-02 18:59:54 UTC) #13
danakj
PTAL enne, jbauman especially. https://codereview.chromium.org/2029323004/diff/20001/cc/surfaces/display.cc File cc/surfaces/display.cc (right): https://codereview.chromium.org/2029323004/diff/20001/cc/surfaces/display.cc#newcode61 cc/surfaces/display.cc:61: if (begin_frame_source) { On 2016/06/02 ...
4 years, 6 months ago (2016-06-03 01:28:35 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2029323004/60001
4 years, 6 months ago (2016-06-03 01:29:44 UTC) #16
Fady Samuel
I like this cleanup! mus lgtm
4 years, 6 months ago (2016-06-03 01:31:51 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/170523) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-06-03 01:42:33 UTC) #19
jbauman
This generally seems like it should work. https://codereview.chromium.org/2029323004/diff/60001/cc/surfaces/display.cc File cc/surfaces/display.cc (right): https://codereview.chromium.org/2029323004/diff/60001/cc/surfaces/display.cc#newcode73 cc/surfaces/display.cc:73: new BackToBackBeginFrameSource(task_runner)); ...
4 years, 6 months ago (2016-06-03 02:34:28 UTC) #20
boliu
a_w still lgtm
4 years, 6 months ago (2016-06-03 17:15:28 UTC) #21
danakj
https://codereview.chromium.org/2029323004/diff/60001/cc/surfaces/display.cc File cc/surfaces/display.cc (right): https://codereview.chromium.org/2029323004/diff/60001/cc/surfaces/display.cc#newcode73 cc/surfaces/display.cc:73: new BackToBackBeginFrameSource(task_runner)); On 2016/06/03 02:34:27, jbauman wrote: > Where ...
4 years, 6 months ago (2016-06-03 17:26:32 UTC) #22
enne (OOO)
https://codereview.chromium.org/2029323004/diff/60001/cc/surfaces/display.h File cc/surfaces/display.h (right): https://codereview.chromium.org/2029323004/diff/60001/cc/surfaces/display.h#newcode113 cc/surfaces/display.h:113: DisplayScheduler* SchedulerForTesting() { return scheduler_.get(); } Is this still ...
4 years, 6 months ago (2016-06-03 18:33:16 UTC) #23
danakj
So I BackToBack vs Synthetic BFS is kinda problematic. Right now OutputSurface owns a Synthetic ...
4 years, 6 months ago (2016-06-03 21:34:12 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/80001
4 years, 6 months ago (2016-06-15 21:48:07 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/153538) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-06-15 22:03:10 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/100001
4 years, 6 months ago (2016-06-16 19:04:28 UTC) #30
danakj
OK this patch now preserves using BackToBack when vsync is disabled, by making that BFS ...
4 years, 6 months ago (2016-06-16 21:38:45 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/160001
4 years, 6 months ago (2016-06-16 21:40:36 UTC) #34
jbauman
lgtm
4 years, 6 months ago (2016-06-16 22:00:17 UTC) #35
no sievers
android lgtm
4 years, 6 months ago (2016-06-16 22:02:09 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/187140)
4 years, 6 months ago (2016-06-16 22:05:10 UTC) #38
danakj
Oh, because I changed SurfaceDisplayOutputSurface::BindToClient, this patch has to change a little bit. I made ...
4 years, 6 months ago (2016-06-16 22:37:10 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/180001
4 years, 6 months ago (2016-06-16 22:38:11 UTC) #42
enne (OOO)
On 2016/06/16 at 22:37:10, danakj wrote: > So I moved the call to RegisterBeginFrameSource to ...
4 years, 6 months ago (2016-06-16 22:39:42 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/200001
4 years, 6 months ago (2016-06-16 22:40:18 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/200001
4 years, 6 months ago (2016-06-17 00:36:46 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/89194)
4 years, 6 months ago (2016-06-17 04:08:33 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/200001
4 years, 6 months ago (2016-06-17 18:20:00 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/89595)
4 years, 6 months ago (2016-06-17 20:16:05 UTC) #56
boliu
On 2016/06/17 20:16:05, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 6 months ago (2016-06-17 20:21:17 UTC) #57
danakj
On 2016/06/17 20:21:17, boliu wrote: > On 2016/06/17 20:16:05, commit-bot: I haz the power wrote: ...
4 years, 6 months ago (2016-06-17 20:35:31 UTC) #58
danakj
On Fri, Jun 17, 2016 at 1:21 PM, <boliu@chromium.org> wrote: > On 2016/06/17 20:16:05, commit-bot: ...
4 years, 6 months ago (2016-06-17 20:36:38 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029323004/240001
4 years, 6 months ago (2016-06-17 21:07:45 UTC) #62
commit-bot: I haz the power
Committed patchset #11 (id:240001)
4 years, 6 months ago (2016-06-17 22:41:49 UTC) #64
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 22:43:41 UTC) #66
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/8eb035c0f0b18c55ddd76dad607649e596035995
Cr-Commit-Position: refs/heads/master@{#400529}

Powered by Google App Engine
This is Rietveld 408576698