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

Issue 2317753002: cc: Abstract the LayerTreeHost. (Closed)

Created:
4 years, 3 months ago by Khushal
Modified:
4 years, 3 months ago
CC:
chromium-reviews, sievers+watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, jam, gcasto+watch-blimp_chromium.org, jbauman+watch_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, lethalantidote+watch-blimp_chromium.org, kalyank, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, khushalsagar+watch-blimp_chromium.org, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, Ian Vollick, danakj+watch_chromium.org, dtrainor+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Abstract the LayerTreeHost. Add a LayerTreeHostInterface which is implemented by the LayerTreeHost. This change moves the public methods on the LayerTreeHost used by the embedder to an interface, in preparation for restricting the use of the current LayerTreeHost implementation to the case where the compositor thread componenets run in the same process (a.k.a single threaded and threaded compositor), and a different implementation can be used where these are seperated by a network boundary. Currently only the use of the threaded compositor has been hidden behind the interface. Subsequent changes will move the single threaded compositor and the cc_unittests to use the interface as well. BUG=625283 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/cebe49473f9ef76541d437833878eaae6dad268f Cr-Commit-Position: refs/heads/master@{#417114}

Patch Set 1 #

Patch Set 2 : missed a test file #

Patch Set 3 : test files #

Patch Set 4 : compile fix #

Patch Set 5 : export for windows, keep the remote server test #

Total comments: 2

Patch Set 6 : addressed comments #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+563 lines, -354 lines) Patch
M blimp/client/app/compositor/browser_compositor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M blimp/client/app/compositor/browser_compositor.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_unittest.cc View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M cc/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/heads_up_display_layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer.cc View 4 chunks +7 lines, -8 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_image_layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_layer.cc View 4 chunks +7 lines, -8 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M cc/layers/surface_layer_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 7 chunks +11 lines, -10 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 5 chunks +11 lines, -9 lines 0 comments Download
M cc/trees/latency_info_swap_promise_monitor.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/latency_info_swap_promise_monitor.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree.h View 3 chunks +4 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host.h View 11 chunks +64 lines, -76 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 13 chunks +47 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
A cc/trees/layer_tree_host_interface.h View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_readback.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 45 chunks +52 lines, -51 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 17 chunks +21 lines, -21 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 11 chunks +12 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 15 chunks +15 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_picture.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_proxy.cc View 2 chunks +2 lines, -2 lines 0 comments Download
D cc/trees/layer_tree_host_unittest_remote_server.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 16 chunks +17 lines, -17 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/proxy_impl.cc View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
M cc/trees/proxy_main.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 5 chunks +13 lines, -15 lines 0 comments Download
M cc/trees/swap_promise_monitor.h View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/swap_promise_monitor.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 8 chunks +9 lines, -9 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 3 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 7 chunks +11 lines, -11 lines 0 comments Download
M ui/compositor/compositor.cc View 1 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 41 (29 generated)
Khushal
+vmpstr for cc, piman for content/ and ui/. Pretty mechanical change to turn the LayerTreeHost ...
4 years, 3 months ago (2016-09-06 22:45:42 UTC) #21
piman
LGTM for content/ and ui/compositor
4 years, 3 months ago (2016-09-06 22:55:27 UTC) #22
Khushal
Also, dtrainor for blimp/
4 years, 3 months ago (2016-09-06 22:56:42 UTC) #24
David Trainor- moved to gerrit
blimp/ lgtm
4 years, 3 months ago (2016-09-07 05:07:18 UTC) #27
vmpstr
This looks fine for what it's doing. However, I'm a bit hesitant about the names... ...
4 years, 3 months ago (2016-09-07 18:26:11 UTC) #28
Khushal
I was planning on doing one rename patch that changed LayerTreeHostInterface->LayerTreeHost and LayerTreeHost->LayerTreeHostInProcess. Do you ...
4 years, 3 months ago (2016-09-07 21:25:50 UTC) #29
vmpstr
On 2016/09/07 21:25:50, Khushal wrote: > I was planning on doing one rename patch that ...
4 years, 3 months ago (2016-09-07 21:29:41 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317753002/100001
4 years, 3 months ago (2016-09-07 21:37:11 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/65274) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-07 21:41:16 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317753002/120001
4 years, 3 months ago (2016-09-07 22:08:04 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-07 23:27:32 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 23:29:42 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cebe49473f9ef76541d437833878eaae6dad268f
Cr-Commit-Position: refs/heads/master@{#417114}

Powered by Google App Engine
This is Rietveld 408576698