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

Issue 667793004: Support single-threaded impl-side painting (Closed)

Created:
6 years, 1 month ago by enne (OOO)
Modified:
6 years, 1 month ago
Reviewers:
danakj, reveman, vmpstr
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Support single-threaded impl-side painting This makes the synchronous composite path support impl-side painting. This initial version is intended for converting layout tests, as a real version for the browser would commit to the active tree directly. This path is currently not used anywhere (it DCHECKed) and the only consumer after this patch is a unittest to verify that it works. Depends on https://codereview.chromium.org/672673003/ so that WaitForTasksRunningToComplete includes all visible tiles. Depends on https://codereview.chromium.org/668123003/ for correctness, as zero copy and masks aren't supported quite yet. R=danakj@chromium.org,reveman@chromium.org,vmpstr@chromium.org BUG=381919 Committed: https://crrev.com/69277cb70300d50ef288cebb9f1383fe9c94121a Cr-Commit-Position: refs/heads/master@{#301966}

Patch Set 1 #

Patch Set 2 : Add missing file #

Patch Set 3 : Use numeric limits for raster task limit #

Total comments: 5

Patch Set 4 : Rebase #

Patch Set 5 : Now with less plumbing #

Total comments: 5

Patch Set 6 : Remove DCHECKs; make settings better #

Total comments: 1

Patch Set 7 : Rebase, add ContextCapabilities #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -14 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_test.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 4 5 6 1 chunk +14 lines, -1 line 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M cc/test/test_in_process_context_provider.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 2 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 chunks +30 lines, -9 lines 0 comments Download
A cc/trees/layer_tree_host_pixeltest_synchronous.cc View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
enne (OOO)
6 years, 1 month ago (2014-10-22 23:37:40 UTC) #1
danakj
I looked at cc/trees and content/ and that part LGTM. I think reveman/vmpstr should look ...
6 years, 1 month ago (2014-10-24 20:40:06 UTC) #2
enne (OOO)
This patch could land now and I could start converting non-mask tests to use impl-side ...
6 years, 1 month ago (2014-10-24 23:44:39 UTC) #3
vmpstr
lgtm
6 years, 1 month ago (2014-10-27 18:29:49 UTC) #4
enne (OOO)
jbauman: content/renderer/gpu/render_widget_compositor.cc OWNERS?
6 years, 1 month ago (2014-10-27 19:05:42 UTC) #6
reveman
sorry, not lgtm https://codereview.chromium.org/667793004/diff/40001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/667793004/diff/40001/cc/resources/gpu_raster_worker_pool.cc#newcode187 cc/resources/gpu_raster_worker_pool.cc:187: task_graph_runner_->WaitForTasksToFinishRunning(namespace_token_); This doesn't really make sense. ...
6 years, 1 month ago (2014-10-27 19:15:50 UTC) #7
enne (OOO)
https://codereview.chromium.org/667793004/diff/40001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/667793004/diff/40001/cc/resources/gpu_raster_worker_pool.cc#newcode187 cc/resources/gpu_raster_worker_pool.cc:187: task_graph_runner_->WaitForTasksToFinishRunning(namespace_token_); On 2014/10/27 19:15:49, reveman wrote: > This doesn't ...
6 years, 1 month ago (2014-10-27 20:23:24 UTC) #8
enne (OOO)
Thanks for all the feedback. Here's a patch with a lot less plumbing. It does ...
6 years, 1 month ago (2014-10-27 21:57:46 UTC) #9
reveman
lgtm with one nit and one suggestion https://codereview.chromium.org/667793004/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/667793004/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode1749 cc/trees/layer_tree_host_impl.cc:1749: DCHECK(!settings_.single_thread_proxy_scheduler); nit: ...
6 years, 1 month ago (2014-10-28 03:46:33 UTC) #10
enne (OOO)
https://codereview.chromium.org/667793004/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/667793004/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode1749 cc/trees/layer_tree_host_impl.cc:1749: DCHECK(!settings_.single_thread_proxy_scheduler); On 2014/10/28 03:46:33, reveman wrote: > nit: can ...
6 years, 1 month ago (2014-10-28 16:49:56 UTC) #11
reveman
https://codereview.chromium.org/667793004/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/667793004/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode1749 cc/trees/layer_tree_host_impl.cc:1749: DCHECK(!settings_.single_thread_proxy_scheduler); On 2014/10/28 16:49:56, enne wrote: > On 2014/10/28 ...
6 years, 1 month ago (2014-10-28 18:08:24 UTC) #12
enne (OOO)
I do feel like it's necessary to add a bool when removing the scoped_ptr. There's ...
6 years, 1 month ago (2014-10-28 18:24:04 UTC) #13
reveman
Not sure what you mean by "the right raster worker pool and task graph runner ...
6 years, 1 month ago (2014-10-28 18:53:09 UTC) #15
enne (OOO)
On 2014/10/28 at 18:53:09, reveman wrote: > Not sure what you mean by "the right ...
6 years, 1 month ago (2014-10-28 19:00:15 UTC) #16
reveman
On 2014/10/28 19:00:15, enne wrote: > On 2014/10/28 at 18:53:09, reveman wrote: > > Not ...
6 years, 1 month ago (2014-10-28 19:12:27 UTC) #17
enne (OOO)
https://codereview.chromium.org/667793004/diff/120001/cc/test/test_in_process_context_provider.cc File cc/test/test_in_process_context_provider.cc (right): https://codereview.chromium.org/667793004/diff/120001/cc/test/test_in_process_context_provider.cc#newcode130 cc/test/test_in_process_context_provider.cc:130: capabilities.gpu.image = true; reveman: This is one of the ...
6 years, 1 month ago (2014-10-29 21:30:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667793004/120001
6 years, 1 month ago (2014-10-29 21:33:29 UTC) #20
reveman
https://codereview.chromium.org/667793004/diff/120001/cc/test/test_in_process_context_provider.cc File cc/test/test_in_process_context_provider.cc (right): https://codereview.chromium.org/667793004/diff/120001/cc/test/test_in_process_context_provider.cc#newcode130 cc/test/test_in_process_context_provider.cc:130: capabilities.gpu.image = true; On 2014/10/29 21:30:08, enne wrote: > ...
6 years, 1 month ago (2014-10-29 22:22:20 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 1 month ago (2014-10-29 23:03:49 UTC) #22
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 23:04:34 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/69277cb70300d50ef288cebb9f1383fe9c94121a
Cr-Commit-Position: refs/heads/master@{#301966}

Powered by Google App Engine
This is Rietveld 408576698