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

Issue 334133002: cc: Support on demand raster with ganesh (Closed)

Created:
6 years, 6 months ago by boliu
Modified:
6 years, 6 months ago
Reviewers:
reveman
CC:
chromium-reviews, cc-bugs_chromium.org
Project:
chromium
Visibility:
Public.

Description

cc: Support on demand raster with gpu rasterization Normal gpu rasterization happens on compositor thread, so on-demand rasteration must also be on compositor thread. So if impl-side painting is off or if gpu rasterization is on, then directly raster on compositor thread. BUG=383379 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278887

Patch Set 1 #

Patch Set 2 : don't use TaskGraphRunner on compositor thread #

Patch Set 3 : tests #

Total comments: 5

Patch Set 4 : RunOnDemandRasterTask #

Total comments: 11

Patch Set 5 : review #

Total comments: 8

Patch Set 6 : review2 #

Total comments: 7

Patch Set 7 : review3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -38 lines) Patch
M cc/output/direct_renderer.h View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 1 chunk +0 lines, -27 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/renderer.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/output/software_renderer_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M cc/surfaces/display.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_renderer_client.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/pixel_test.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 chunks +34 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc View 1 2 3 4 3 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
boliu
Could you take a first pass please to see if this approach is reasoanble?
6 years, 6 months ago (2014-06-16 17:15:56 UTC) #1
reveman
I'm not sure this is good idea. The use of the task graph runner for ...
6 years, 6 months ago (2014-06-17 20:13:03 UTC) #2
boliu
On 2014/06/17 20:13:03, reveman wrote: > I'm not sure this is good idea. The use ...
6 years, 6 months ago (2014-06-17 20:25:52 UTC) #3
boliu
Uploaded PS2 which is much smaller. Haven't wrote any tests yet.
6 years, 6 months ago (2014-06-17 22:23:30 UTC) #4
boliu
Added one small test. PTAL
6 years, 6 months ago (2014-06-18 01:07:40 UTC) #5
reveman
https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h File cc/output/renderer.h (right): https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h#newcode43 cc/output/renderer.h:43: virtual bool UseTaskGraphRunnerForOnDemandRaster() = 0; Would it be better ...
6 years, 6 months ago (2014-06-18 01:18:28 UTC) #6
boliu
https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h File cc/output/renderer.h (right): https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h#newcode43 cc/output/renderer.h:43: virtual bool UseTaskGraphRunnerForOnDemandRaster() = 0; On 2014/06/18 01:18:28, reveman ...
6 years, 6 months ago (2014-06-18 02:02:36 UTC) #7
reveman
https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h File cc/output/renderer.h (right): https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h#newcode43 cc/output/renderer.h:43: virtual bool UseTaskGraphRunnerForOnDemandRaster() = 0; On 2014/06/18 02:02:36, boliu ...
6 years, 6 months ago (2014-06-18 04:17:25 UTC) #8
reveman
6 years, 6 months ago (2014-06-18 04:17:26 UTC) #9
boliu
https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h File cc/output/renderer.h (right): https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h#newcode43 cc/output/renderer.h:43: virtual bool UseTaskGraphRunnerForOnDemandRaster() = 0; On 2014/06/18 04:17:24, reveman ...
6 years, 6 months ago (2014-06-18 16:41:11 UTC) #10
boliu
friendly ping?
6 years, 6 months ago (2014-06-19 01:08:27 UTC) #11
reveman
https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h File cc/output/renderer.h (right): https://codereview.chromium.org/334133002/diff/40001/cc/output/renderer.h#newcode43 cc/output/renderer.h:43: virtual bool UseTaskGraphRunnerForOnDemandRaster() = 0; On 2014/06/18 16:41:11, boliu ...
6 years, 6 months ago (2014-06-19 04:23:28 UTC) #12
boliu
Reverted back to RunOnDemandRasterTask, getting a bit hairy and doesn't look like a clear win ...
6 years, 6 months ago (2014-06-19 18:24:15 UTC) #13
reveman
https://codereview.chromium.org/334133002/diff/60001/cc/output/direct_renderer.h File cc/output/direct_renderer.h (right): https://codereview.chromium.org/334133002/diff/60001/cc/output/direct_renderer.h#newcode94 cc/output/direct_renderer.h:94: void RunOnDemandRasterTask(Task* on_demand_raster_task); Do you still need this function ...
6 years, 6 months ago (2014-06-20 00:38:41 UTC) #14
boliu
https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc File cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc (right): https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc#newcode116 cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc:116: class LayerTreeHostOnDemandRasterPixelTestWithoutTaskGraphRunner On 2014/06/20 00:38:41, reveman wrote: > s/WithoutTaskGraphRunner/WithGpuRasterizationForced/ ...
6 years, 6 months ago (2014-06-20 00:43:40 UTC) #15
reveman
https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc File cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc (right): https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc#newcode116 cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc:116: class LayerTreeHostOnDemandRasterPixelTestWithoutTaskGraphRunner On 2014/06/20 00:43:39, boliu wrote: > On ...
6 years, 6 months ago (2014-06-20 01:01:39 UTC) #16
boliu
https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode2770 cc/trees/layer_tree_host_impl.cc:2770: if (use_gpu_rasterization_) { On 2014/06/20 00:38:41, reveman wrote: > ...
6 years, 6 months ago (2014-06-20 01:27:06 UTC) #17
boliu
https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode2792 cc/trees/layer_tree_host_impl.cc:2792: if (use_gpu_rasterization_) { Also this branch can't move to ...
6 years, 6 months ago (2014-06-20 01:28:16 UTC) #18
reveman
https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode2770 cc/trees/layer_tree_host_impl.cc:2770: if (use_gpu_rasterization_) { On 2014/06/20 01:27:06, boliu wrote: > ...
6 years, 6 months ago (2014-06-20 01:29:21 UTC) #19
reveman
https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/334133002/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode2792 cc/trees/layer_tree_host_impl.cc:2792: if (use_gpu_rasterization_) { On 2014/06/20 01:28:16, boliu wrote: > ...
6 years, 6 months ago (2014-06-20 01:32:38 UTC) #20
boliu
New patch up. All comments addressed I think. Thanks for answering all my questions :)
6 years, 6 months ago (2014-06-20 01:43:15 UTC) #21
reveman
https://codereview.chromium.org/334133002/diff/80001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/334133002/diff/80001/cc/resources/raster_worker_pool.cc#newcode50 cc/resources/raster_worker_pool.cc:50: // Use index 0 for origin thread. Please update ...
6 years, 6 months ago (2014-06-20 03:56:30 UTC) #22
boliu
All done https://codereview.chromium.org/334133002/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/334133002/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode1890 cc/trees/layer_tree_host_impl.cc:1890: synchronous_on_demand_task_graph_runner_.reset(new TaskGraphRunner); On 2014/06/20 03:56:30, reveman wrote: ...
6 years, 6 months ago (2014-06-20 04:21:06 UTC) #23
boliu
Ping?
6 years, 6 months ago (2014-06-20 18:38:47 UTC) #24
reveman
lgtm after fixing a few nits https://codereview.chromium.org/334133002/diff/100001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/334133002/diff/100001/cc/resources/raster_worker_pool.cc#newcode54 cc/resources/raster_worker_pool.cc:54: // Use index ...
6 years, 6 months ago (2014-06-20 18:44:20 UTC) #25
boliu
All done https://codereview.chromium.org/334133002/diff/100001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/334133002/diff/100001/cc/trees/layer_tree_host_impl.cc#newcode1887 cc/trees/layer_tree_host_impl.cc:1887: On 2014/06/20 18:44:19, reveman wrote: > nit: ...
6 years, 6 months ago (2014-06-20 19:02:19 UTC) #26
boliu
The CQ bit was checked by boliu@chromium.org
6 years, 6 months ago (2014-06-20 19:06:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/334133002/120001
6 years, 6 months ago (2014-06-20 19:10:21 UTC) #28
commit-bot: I haz the power
6 years, 6 months ago (2014-06-21 01:12:01 UTC) #29
Message was sent while issue was closed.
Change committed as 278887

Powered by Google App Engine
This is Rietveld 408576698