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

Issue 999173004: cc: Move worker threads to content. (Closed)

Created:
5 years, 9 months ago by reveman
Modified:
5 years, 9 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Move worker threads to RenderThreadImpl. This allows us to Join the threads when RenderThreadImpl is shutdown. BUG=468785 TEST=cc_unittests Committed: https://crrev.com/34b7a15218828edc105d4c408556b05c52994840 Cr-Commit-Position: refs/heads/master@{#321836}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : fix cc_perftests #

Patch Set 6 : some cleanup #

Total comments: 2

Patch Set 7 : move ui raster thread to ContextFactory #

Patch Set 8 : only create raster thread if IsUIImplSidePaintingEnabled returns true #

Patch Set 9 : #

Patch Set 10 : build fix #

Total comments: 7

Patch Set 11 : comment and webview fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+554 lines, -380 lines) Patch
M android_webview/browser/hardware_renderer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M cc/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/animation/scrollbar_animation_controller_linear_fade_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M cc/animation/scrollbar_animation_controller_thinning_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M cc/cc_tests.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/debug/micro_benchmark_controller_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/input/top_controls_manager_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 2 3 9 chunks +16 lines, -6 lines 0 comments Download
M cc/layers/layer_perftest.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/layer_position_constraint_unittest.cc View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 5 chunks +10 lines, -16 lines 0 comments Download
M cc/layers/layer_utils_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer_impl_unittest.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/picture_layer_impl_perftest.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 4 chunks +10 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M cc/layers/solid_color_layer_impl_unittest.cc View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 4 5 4 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/tiled_layer_impl_unittest.cc View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M cc/resources/display_list_recording_source.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/display_list_recording_source.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M cc/resources/picture_pile.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/picture_pile.cc View 1 2 3 4 chunks +6 lines, -8 lines 0 comments Download
M cc/resources/recording_source.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M cc/resources/tile_task_worker_pool.h View 1 2 3 2 chunks +0 lines, -15 lines 0 comments Download
M cc/resources/tile_task_worker_pool.cc View 1 2 3 3 chunks +0 lines, -66 lines 0 comments Download
M cc/resources/tile_task_worker_pool_unittest.cc View 1 2 3 4 5 3 chunks +13 lines, -12 lines 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M cc/test/fake_ui_resource_layer_tree_host_impl.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M cc/test/layer_tree_json_parser_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/layer_tree_pixel_resource_test.cc View 1 2 5 chunks +7 lines, -9 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 9 chunks +35 lines, -26 lines 0 comments Download
A cc/test/test_task_graph_runner.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A cc/test/test_task_graph_runner.cc View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 5 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 6 chunks +13 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 19 chunks +19 lines, -17 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 8 chunks +12 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 10 chunks +20 lines, -27 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 5 chunks +13 lines, -33 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_no_message_loop.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 4 5 1 chunk +4 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/occlusion_tracker_perftest.cc View 1 2 4 5 1 chunk +3 lines, -7 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 2 4 5 3 chunks +6 lines, -21 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.h View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 5 chunks +34 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 4 chunks +28 lines, -7 lines 0 comments Download
M content/renderer/gpu/compositor_dependencies.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 5 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 6 chunks +59 lines, -11 lines 0 comments Download
M content/test/fake_compositor_dependencies.h View 1 2 3 4 chunks +5 lines, -0 lines 0 comments Download
M content/test/fake_compositor_dependencies.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.cc View 1 1 chunk +2 lines, -7 lines 0 comments Download
M mojo/services/html_viewer/weblayertreeview_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 2 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
reveman
5 years, 9 months ago (2015-03-20 06:00:40 UTC) #2
piman
https://codereview.chromium.org/999173004/diff/100001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/999173004/diff/100001/ui/compositor/compositor.cc#newcode96 ui/compositor/compositor.cc:96: raster_thread_(new RasterThread(task_graph_runner_.get())), We wouldn't want one raster thread per ...
5 years, 9 months ago (2015-03-20 06:28:35 UTC) #3
reveman
PTAL https://codereview.chromium.org/999173004/diff/100001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/999173004/diff/100001/ui/compositor/compositor.cc#newcode96 ui/compositor/compositor.cc:96: raster_thread_(new RasterThread(task_graph_runner_.get())), On 2015/03/20 at 06:28:35, piman (Very ...
5 years, 9 months ago (2015-03-20 07:42:03 UTC) #4
danakj
https://codereview.chromium.org/999173004/diff/180001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/999173004/diff/180001/cc/layers/picture_layer.cc#newcode98 cc/layers/picture_layer.cc:98: recording_source_->SetGatherPixelRefs(host->settings().gather_pixel_refs); is this related to this CL? https://codereview.chromium.org/999173004/diff/180001/cc/resources/display_list_recording_source.cc File ...
5 years, 9 months ago (2015-03-20 17:10:26 UTC) #6
danakj
https://codereview.chromium.org/999173004/diff/180001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (left): https://codereview.chromium.org/999173004/diff/180001/cc/resources/picture_pile.cc#oldcode546 cc/resources/picture_pile.cc:546: bool gather_pixel_refs = TileTaskWorkerPool::GetNumWorkerThreads() > 1; Ah.. ok I ...
5 years, 9 months ago (2015-03-20 17:15:36 UTC) #7
reveman
https://codereview.chromium.org/999173004/diff/180001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/999173004/diff/180001/cc/layers/picture_layer.cc#newcode98 cc/layers/picture_layer.cc:98: recording_source_->SetGatherPixelRefs(host->settings().gather_pixel_refs); On 2015/03/20 at 17:10:26, danakj wrote: > is ...
5 years, 9 months ago (2015-03-20 17:18:52 UTC) #8
reveman
https://codereview.chromium.org/999173004/diff/180001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (left): https://codereview.chromium.org/999173004/diff/180001/cc/resources/picture_pile.cc#oldcode546 cc/resources/picture_pile.cc:546: bool gather_pixel_refs = TileTaskWorkerPool::GetNumWorkerThreads() > 1; On 2015/03/20 17:15:36, ...
5 years, 9 months ago (2015-03-20 17:56:30 UTC) #9
danakj
LGTM % piman
5 years, 9 months ago (2015-03-20 18:07:07 UTC) #10
reveman
+boliu for android_webview/ +jamesr for mojo/
5 years, 9 months ago (2015-03-20 18:18:17 UTC) #12
boliu
On 2015/03/20 18:18:17, reveman wrote: > +boliu for android_webview/ rs lgtm > +jamesr for mojo/
5 years, 9 months ago (2015-03-20 18:20:26 UTC) #13
piman
lgtm
5 years, 9 months ago (2015-03-20 19:32:18 UTC) #14
reveman
+ben for mojo/
5 years, 9 months ago (2015-03-20 21:31:43 UTC) #16
jamesr
lgtm w/ a question https://codereview.chromium.org/999173004/diff/200001/mojo/services/html_viewer/weblayertreeview_impl.cc File mojo/services/html_viewer/weblayertreeview_impl.cc (right): https://codereview.chromium.org/999173004/diff/200001/mojo/services/html_viewer/weblayertreeview_impl.cc#newcode39 mojo/services/html_viewer/weblayertreeview_impl.cc:39: cc::TaskGraphRunner* task_graph_runner = NULL; these ...
5 years, 9 months ago (2015-03-23 17:55:36 UTC) #17
reveman
https://codereview.chromium.org/999173004/diff/200001/mojo/services/html_viewer/weblayertreeview_impl.cc File mojo/services/html_viewer/weblayertreeview_impl.cc (right): https://codereview.chromium.org/999173004/diff/200001/mojo/services/html_viewer/weblayertreeview_impl.cc#newcode39 mojo/services/html_viewer/weblayertreeview_impl.cc:39: cc::TaskGraphRunner* task_graph_runner = NULL; On 2015/03/23 17:55:36, jamesr wrote: ...
5 years, 9 months ago (2015-03-23 18:39:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/999173004/200001
5 years, 9 months ago (2015-03-23 18:42:14 UTC) #20
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 9 months ago (2015-03-23 20:28:19 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 20:29:19 UTC) #22
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/34b7a15218828edc105d4c408556b05c52994840
Cr-Commit-Position: refs/heads/master@{#321836}

Powered by Google App Engine
This is Rietveld 408576698