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

Issue 1126253005: cc: Add LayerTreeHost::InitParams for LayerTreeHost creation. (Closed)

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

Description

cc: Add LayerTreeHost::InitParams for LayerTreeHost creation. Instead of passing in a number of things to the LayerTreeHost constructor, use a struct to simplify the code a bit, and make this more readable. This also makes it easy to maintain a development branch that adds new things. TBR=jam@ for API usage update in android_webview/, components/, and content/ BUG=436952 Committed: https://crrev.com/6780f3daea93a14cb81698025685c860b8f41db5 Cr-Commit-Position: refs/heads/master@{#329164}

Patch Set 1 #

Total comments: 4

Patch Set 2 : all #

Total comments: 12

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : moar-fixes #

Total comments: 5

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -176 lines) Patch
M android_webview/browser/hardware_renderer.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 chunks +19 lines, -15 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 1 1 chunk +10 lines, -6 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 chunks +9 lines, -4 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 chunks +16 lines, -6 lines 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 1 2 chunks +11 lines, -7 lines 0 comments Download
M cc/test/fake_layer_tree_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 2 2 chunks +8 lines, -5 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 3 chunks +12 lines, -21 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 3 chunks +29 lines, -19 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 2 chunks +26 lines, -39 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 8 chunks +43 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_no_message_loop.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 1 chunk +8 lines, -3 lines 0 comments Download
M components/html_viewer/web_layer_tree_view_impl.cc View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 2 chunks +9 lines, -4 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 1 chunk +10 lines, -7 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
sadrul
Hi! This patch is incomplete; I still need to update the tests to use the ...
5 years, 7 months ago (2015-05-06 20:50:15 UTC) #2
danakj
https://codereview.chromium.org/1126253005/diff/1/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/1126253005/diff/1/cc/trees/layer_tree_host.cc#newcode59 cc/trees/layer_tree_host.cc:59: LayerTreeHost::InitParams::~InitParams() { whitespace https://codereview.chromium.org/1126253005/diff/1/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/1126253005/diff/1/cc/trees/layer_tree_host.h#newcode81 cc/trees/layer_tree_host.h:81: ...
5 years, 7 months ago (2015-05-06 21:00:48 UTC) #3
sadrul
https://codereview.chromium.org/1126253005/diff/1/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/1126253005/diff/1/cc/trees/layer_tree_host.cc#newcode59 cc/trees/layer_tree_host.cc:59: LayerTreeHost::InitParams::~InitParams() { On 2015/05/06 21:00:48, danakj wrote: > whitespace ...
5 years, 7 months ago (2015-05-06 23:35:43 UTC) #4
sadrul
Sidenote: I took this opportunity to replace some uses of base::MessageLoopProxy::current() in the affected code ...
5 years, 7 months ago (2015-05-06 23:39:01 UTC) #5
danakj
https://codereview.chromium.org/1126253005/diff/10005/cc/test/fake_layer_tree_host.cc File cc/test/fake_layer_tree_host.cc (right): https://codereview.chromium.org/1126253005/diff/10005/cc/test/fake_layer_tree_host.cc#newcode12 cc/test/fake_layer_tree_host.cc:12: host_impl_(params->settings ? *params->settings : LayerTreeSettings(), not a fan, this ...
5 years, 7 months ago (2015-05-07 00:59:56 UTC) #6
sadrul
https://codereview.chromium.org/1126253005/diff/10005/cc/test/fake_layer_tree_host.cc File cc/test/fake_layer_tree_host.cc (right): https://codereview.chromium.org/1126253005/diff/10005/cc/test/fake_layer_tree_host.cc#newcode12 cc/test/fake_layer_tree_host.cc:12: host_impl_(params->settings ? *params->settings : LayerTreeSettings(), On 2015/05/07 00:59:56, danakj ...
5 years, 7 months ago (2015-05-07 04:39:26 UTC) #7
danakj
LGTM https://codereview.chromium.org/1126253005/diff/70001/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/1126253005/diff/70001/cc/test/layer_tree_test.cc#newcode469 cc/test/layer_tree_test.cc:469: params.main_task_runner = main_task_runner; this is similar, we used ...
5 years, 7 months ago (2015-05-07 18:28:32 UTC) #8
sadrul
https://codereview.chromium.org/1126253005/diff/70001/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/1126253005/diff/70001/cc/test/layer_tree_test.cc#newcode469 cc/test/layer_tree_test.cc:469: params.main_task_runner = main_task_runner; On 2015/05/07 18:28:32, danakj wrote: > ...
5 years, 7 months ago (2015-05-07 22:47:43 UTC) #9
sadrul
+jam@ for changes in android_webview, components, and contents.
5 years, 7 months ago (2015-05-07 22:49:55 UTC) #11
danakj
LGTM https://codereview.chromium.org/1126253005/diff/90001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/1126253005/diff/90001/cc/trees/layer_tree_host.h#newcode333 cc/trees/layer_tree_host.h:333: SharedBitmapManager* shared_bitmap_manager() const { can you comment that ...
5 years, 7 months ago (2015-05-07 23:22:04 UTC) #12
sadrul
https://codereview.chromium.org/1126253005/diff/90001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/1126253005/diff/90001/cc/trees/layer_tree_host.h#newcode333 cc/trees/layer_tree_host.h:333: SharedBitmapManager* shared_bitmap_manager() const { On 2015/05/07 23:22:04, danakj wrote: ...
5 years, 7 months ago (2015-05-08 00:53:31 UTC) #13
jam
On 2015/05/07 22:49:55, sadrul wrote: > +jam@ for changes in android_webview, components, and contents. per ...
5 years, 7 months ago (2015-05-11 15:00:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126253005/110001
5 years, 7 months ago (2015-05-11 15:06:33 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 7 months ago (2015-05-11 17:02:01 UTC) #18
commit-bot: I haz the power
5 years, 7 months ago (2015-05-11 17:02:57 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6780f3daea93a14cb81698025685c860b8f41db5
Cr-Commit-Position: refs/heads/master@{#329164}

Powered by Google App Engine
This is Rietveld 408576698