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

Issue 738983002: Move output surface fallback from cc to embedders (Closed)

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

Description

Move output surface fallback from cc to embedders Having this in cc means that all embedders get this logic and API, even though only RenderWidgetCompositor and ui::Compositor use it. This also means that cc no longer has to be robust to null SetOutputSurface, which makes the API to embedders a bit more clear. Committed: https://crrev.com/7f8fdded6b22322a245bf643454291a0c12079c8 Cr-Commit-Position: refs/heads/master@{#307767}

Patch Set 1 #

Patch Set 2 : Add back parameter to LTH #

Patch Set 3 : Add fallback to ui::Compositor #

Patch Set 4 : Rebase #

Total comments: 12

Patch Set 5 : sievers feedback #

Patch Set 6 : Request new output surface instead of setting null #

Patch Set 7 : Early out for missing host #

Patch Set 8 : Rebase #

Patch Set 9 : Fix mojo html viewer #

Patch Set 10 : Add message to static assert #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -255 lines) Patch
M android_webview/browser/hardware_renderer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/browser/hardware_renderer.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 1 2 3 4 5 6 7 5 chunks +20 lines, -35 lines 0 comments Download
M cc/output/delegating_renderer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A cc/test/failure_output_surface.h View 1 chunk +24 lines, -0 lines 0 comments Download
A cc/test/failure_output_surface.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_layer_tree_host_client.cc View 2 chunks +5 lines, -1 line 0 comments Download
M cc/test/layer_tree_pixel_test.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +28 lines, -37 lines 0 comments Download
M cc/trees/layer_tree_host_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +5 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 13 chunks +36 lines, -79 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_no_message_loop.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -6 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -16 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -6 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -3 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +30 lines, -5 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +211 lines, -1 line 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M mojo/services/html_viewer/weblayertreeview_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M mojo/services/html_viewer/weblayertreeview_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +11 lines, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 2 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 31 (6 generated)
enne (OOO)
6 years, 1 month ago (2014-11-18 20:28:59 UTC) #1
jbauman
I think this is still useful with ui::Compositor, in the rare case where the OutputSurface ...
6 years, 1 month ago (2014-11-18 21:55:25 UTC) #3
danakj
On Tue, Nov 18, 2014 at 4:55 PM, <jbauman@chromium.org> wrote: > I think this is ...
6 years, 1 month ago (2014-11-18 21:56:52 UTC) #4
jbauman
Currently the Compositor is what does BindToClient, so it's the only one that knows that ...
6 years, 1 month ago (2014-11-18 22:08:19 UTC) #5
danakj
On Tue, Nov 18, 2014 at 5:07 PM, John Bauman <jbauman@chromium.org> wrote: > Currently the ...
6 years, 1 month ago (2014-11-18 22:11:24 UTC) #6
chromium-reviews
Yeah, definitely. Otherwise creating the compositor could fail completely if that happens. On Tue, Nov ...
6 years, 1 month ago (2014-11-18 22:22:10 UTC) #7
enne (OOO)
(What is GPTF? When will that happen?) Alternatively, I could also move the fallback mechanism ...
6 years, 1 month ago (2014-11-18 22:28:11 UTC) #8
danakj
On Tue, Nov 18, 2014 at 5:28 PM, <enne@chromium.org> wrote: > (What is GPTF? When ...
6 years, 1 month ago (2014-11-19 16:19:15 UTC) #9
enne (OOO)
Ok. Also added fallback logic to ui::Compositor and added back to the software_fallback to the ...
6 years, 1 month ago (2014-11-20 01:48:24 UTC) #10
enne (OOO)
...ping?
6 years ago (2014-12-02 00:53:19 UTC) #11
jbauman
lgtm
6 years ago (2014-12-02 00:58:23 UTC) #12
enne (OOO)
sievers: content/ OWNERS mkosiba: android_webview/ OWNERS danakj: ui/compositor/ OWNERS
6 years ago (2014-12-02 19:45:30 UTC) #14
no sievers
lgtm w/some nits. So the idea is that eventually we'll be able to remove handling ...
6 years ago (2014-12-02 20:38:07 UTC) #15
enne (OOO)
On 2014/12/02 at 20:38:07, sievers wrote: > So the idea is that eventually we'll be ...
6 years ago (2014-12-02 21:09:34 UTC) #16
no sievers
On 2014/12/02 21:09:34, enne wrote: > On 2014/12/02 at 20:38:07, sievers wrote: > > So ...
6 years ago (2014-12-02 21:59:38 UTC) #17
enne (OOO)
On 2014/12/02 at 21:59:38, sievers wrote: > Oh then you need to change CompositorImpl::CreateOutputSurface() for ...
6 years ago (2014-12-02 23:23:00 UTC) #18
mkosiba (inactive)
android_webview/ LGTM
6 years ago (2014-12-03 16:07:07 UTC) #19
danakj
On 2014/12/03 16:07:07, mkosiba wrote: > android_webview/ LGTM Ui lgtm
6 years ago (2014-12-03 16:38:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738983002/140001
6 years ago (2014-12-09 20:52:44 UTC) #22
enne (OOO)
jamesr: mojo/ OWNERS
6 years ago (2014-12-09 21:07:27 UTC) #24
enne (OOO)
Alternatively, ben: mojo/ OWNERS?
6 years ago (2014-12-10 20:24:58 UTC) #26
jamesr
Sorry, was out sick yesterday. lgtm fyi, aa@ has OWNERS for mojo/services/html_viewer/ as well (but ...
6 years ago (2014-12-10 20:30:45 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738983002/200001
6 years ago (2014-12-10 20:34:57 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:200001)
6 years ago (2014-12-10 21:32:29 UTC) #30
commit-bot: I haz the power
6 years ago (2014-12-10 21:33:17 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/7f8fdded6b22322a245bf643454291a0c12079c8
Cr-Commit-Position: refs/heads/master@{#307767}

Powered by Google App Engine
This is Rietveld 408576698