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

Issue 904633004: [cc]: Add a BeginMainFrameNotExpectedSoon signal and route it to the RendererScheduler. (Closed)

Created:
5 years, 10 months ago by rmcilroy
Modified:
5 years, 10 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, scheduler-bugs_chromium.org, sievers+watch_chromium.org, Ian Vollick, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[cc]: Add a BeginMainFrameNotExpectedSoon signal and route it to the RendererScheduler. In order to implement long idle times, the RendererScheduler needs to know when the compositor has stoped drawing frames. To enable this, add a BeginMainFrameNotExpectedSoon signal which is sent when the cc scheduler stops requesting BeginFrames from the Browser. Design Doc: https://docs.google.com/a/chromium.org/document/d/1yBlUdYW8VTIfB-DqhvQqUeP0kf-Ap1W4cao2yQq58Do/edit BUG=455713 TBR=danakj@chromium.org, torne@chromium.org, aa@chromium.org Committed: https://crrev.com/0a19362adbaa53af4fb7ccb5819f482b30ca75af Cr-Commit-Position: refs/heads/master@{#316804}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename to BeginMainFrameNotExpectedSoon #

Total comments: 7

Patch Set 3 : Add compositor_android_impl. #

Patch Set 4 : Sami's comments. #

Patch Set 5 : Fix mojo and webview. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -14 lines) Patch
M android_webview/browser/hardware_renderer.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 13 chunks +63 lines, -14 lines 0 comments Download
M cc/test/fake_layer_tree_host_client.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_client.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_no_message_loop.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/scheduler/null_renderer_scheduler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/scheduler/null_renderer_scheduler.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/scheduler/renderer_scheduler.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/test/fake_renderer_scheduler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/test/fake_renderer_scheduler.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/html_viewer/weblayertreeview_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/html_viewer/weblayertreeview_impl.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/compositor/compositor.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
rmcilroy
brianderson@ / skyostil@ please take a look. I originally involved the state machine in the ...
5 years, 10 months ago (2015-02-05 14:37:16 UTC) #2
brianderson
This looks really good. We can add optimizations later for the corner cases where the ...
5 years, 10 months ago (2015-02-11 01:58:11 UTC) #3
rmcilroy
Adding reviewers for OWNERS: danakj@: Please review changes in ui/compositor jochen@: Please review changes in ...
5 years, 10 months ago (2015-02-11 12:01:19 UTC) #5
Sami
Overall looks great. I've added a couple suggestions. https://codereview.chromium.org/904633004/diff/20001/cc/scheduler/scheduler.h File cc/scheduler/scheduler.h (right): https://codereview.chromium.org/904633004/diff/20001/cc/scheduler/scheduler.h#newcode52 cc/scheduler/scheduler.h:52: virtual ...
5 years, 10 months ago (2015-02-11 15:28:25 UTC) #7
jochen (gone - plz use gerrit)
content/renderer/gpu lgtm
5 years, 10 months ago (2015-02-12 08:33:08 UTC) #8
rmcilroy
Comments addressed from Sami - thanks for the review. https://codereview.chromium.org/904633004/diff/20001/cc/scheduler/scheduler.h File cc/scheduler/scheduler.h (right): https://codereview.chromium.org/904633004/diff/20001/cc/scheduler/scheduler.h#newcode52 cc/scheduler/scheduler.h:52: ...
5 years, 10 months ago (2015-02-13 16:32:46 UTC) #10
rmcilroy
Ping? skyostil@ / danakj@ any other comments?
5 years, 10 months ago (2015-02-17 16:16:44 UTC) #11
Sami
Sorry, missed this one. cc/ and content/renderer/scheduler lgtm.
5 years, 10 months ago (2015-02-17 16:33:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/904633004/60001
5 years, 10 months ago (2015-02-18 09:35:49 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/9347)
5 years, 10 months ago (2015-02-18 09:48:06 UTC) #16
rmcilroy
TBRing Aaron, Torne and Dana for nop implementations of BeginMainFrameNotExpectedSoon on Mojo HTML Viewer, Webview ...
5 years, 10 months ago (2015-02-18 10:12:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/904633004/80001
5 years, 10 months ago (2015-02-18 10:13:53 UTC) #21
Torne
android_webview LGTM
5 years, 10 months ago (2015-02-18 10:15:36 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-18 12:34:38 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 12:35:19 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0a19362adbaa53af4fb7ccb5819f482b30ca75af
Cr-Commit-Position: refs/heads/master@{#316804}

Powered by Google App Engine
This is Rietveld 408576698