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

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed)

Created:
6 years, 3 months ago by jamesr
Modified:
6 years, 3 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Convert view manager to surfaces with uploading shim in client lib This converts the view manager protocol over to specify view contents via surfaces instead of shuffling a bitmap. To ease the transition, this provides a wrapper in the client library that accepts an SkBitmap and uploads it into a texture wrapped in a surface so existing code still works. Next I'll port the clients over to providing surfaces themselves and remove this shim. BUG= Committed: https://crrev.com/529c759bf153b8eec2178244ddd3e87e5790b7c4 Cr-Commit-Position: refs/heads/master@{#294501}

Patch Set 1 #

Patch Set 2 : #

Total comments: 26

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : add mojo_surfaces_lib->skia dep #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : link fixes for mac #

Patch Set 11 : remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+672 lines, -1029 lines) Patch
M cc/surfaces/surface_factory.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M cc/surfaces/surface_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M mojo/examples/compositor_app/compositor_app.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/examples/pepper_container_app/pepper_container_app.cc View 1 2 3 chunks +6 lines, -7 lines 0 comments Download
M mojo/examples/pepper_container_app/type_converters.h View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M mojo/examples/sample_app/sample_app.cc View 1 2 2 chunks +6 lines, -11 lines 0 comments Download
M mojo/examples/surfaces_app/surfaces_app.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M mojo/mojo_services.gypi View 1 2 3 4 5 6 7 8 9 9 chunks +24 lines, -18 lines 0 comments Download
M mojo/services/native_viewport/native_viewport_impl.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/services/native_viewport/native_viewport_impl.cc View 1 2 3 4 5 4 chunks +9 lines, -8 lines 0 comments Download
M mojo/services/native_viewport/viewport_surface.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M mojo/services/native_viewport/viewport_surface.cc View 1 2 3 4 5 5 chunks +18 lines, -27 lines 0 comments Download
M mojo/services/public/cpp/surfaces/BUILD.gn View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M mojo/services/public/cpp/surfaces/DEPS View 1 1 chunk +2 lines, -0 lines 0 comments Download
A mojo/services/public/cpp/surfaces/lib/surfaces_utils.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
A mojo/services/public/cpp/surfaces/surfaces_utils.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
M mojo/services/public/cpp/view_manager/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -1 line 0 comments Download
M mojo/services/public/cpp/view_manager/lib/DEPS View 1 chunk +5 lines, -0 lines 0 comments Download
A mojo/services/public/cpp/view_manager/lib/bitmap_uploader.h View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A mojo/services/public/cpp/view_manager/lib/bitmap_uploader.cc View 1 2 1 chunk +189 lines, -0 lines 0 comments Download
M mojo/services/public/cpp/view_manager/lib/view.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc View 1 2 3 3 chunks +34 lines, -18 lines 0 comments Download
M mojo/services/public/cpp/view_manager/view.h View 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/services/public/interfaces/native_viewport/native_viewport.mojom View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/public/interfaces/view_manager/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/public/interfaces/view_manager/view_manager.mojom View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M mojo/services/surfaces/surfaces_service_application.h View 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/services/surfaces/surfaces_service_application.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M mojo/services/view_manager/BUILD.gn View 1 2 4 chunks +4 lines, -19 lines 0 comments Download
M mojo/services/view_manager/DEPS View 1 chunk +0 lines, -2 lines 0 comments Download
M mojo/services/view_manager/access_policy.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/connection_manager.h View 1 2 3 4 chunks +1 line, -11 lines 0 comments Download
M mojo/services/view_manager/connection_manager.cc View 1 2 3 3 chunks +2 lines, -13 lines 0 comments Download
D mojo/services/view_manager/context_factory_impl.h View 1 2 1 chunk +0 lines, -57 lines 0 comments Download
D mojo/services/view_manager/context_factory_impl.cc View 1 2 1 chunk +0 lines, -78 lines 0 comments Download
M mojo/services/view_manager/default_access_policy.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/default_access_policy.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/services/view_manager/display_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +34 lines, -31 lines 0 comments Download
M mojo/services/view_manager/display_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +109 lines, -173 lines 0 comments Download
D mojo/services/view_manager/display_manager_delegate.h View 1 chunk +0 lines, -25 lines 0 comments Download
D mojo/services/view_manager/screen_impl.h View 1 chunk +0 lines, -56 lines 0 comments Download
D mojo/services/view_manager/screen_impl.cc View 1 chunk +0 lines, -78 lines 0 comments Download
M mojo/services/view_manager/server_view.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M mojo/services/view_manager/server_view.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/view_manager/server_view_delegate.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/view_manager_init_service_context.h View 1 2 3 chunks +6 lines, -21 lines 0 comments Download
M mojo/services/view_manager/view_manager_init_service_context.cc View 4 chunks +4 lines, -27 lines 0 comments Download
M mojo/services/view_manager/view_manager_service_impl.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M mojo/services/view_manager/view_manager_service_impl.cc View 1 2 3 2 chunks +6 lines, -19 lines 0 comments Download
M mojo/services/view_manager/window_manager_access_policy.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/window_manager_access_policy.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D mojo/services/view_manager/window_tree_host_impl.h View 1 chunk +0 lines, -81 lines 0 comments Download
D mojo/services/view_manager/window_tree_host_impl.cc View 1 chunk +0 lines, -202 lines 0 comments Download
M mojo/shell/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M mojo/shell/desktop/mojo_main.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
jamesr
This converts the view manager service completely over to using surfaces for rendering and adds ...
6 years, 3 months ago (2014-09-03 22:06:56 UTC) #2
sky
https://codereview.chromium.org/534843002/diff/20001/mojo/mojo_services.gypi File mojo/mojo_services.gypi (right): https://codereview.chromium.org/534843002/diff/20001/mojo/mojo_services.gypi#newcode721 mojo/mojo_services.gypi:721: '../ui/aura/aura.gyp:aura', You should be able to remove some of ...
6 years, 3 months ago (2014-09-03 22:45:29 UTC) #3
jamesr
Will try to fix up the bounds a bit, but it's weird since the initial ...
6 years, 3 months ago (2014-09-03 23:32:48 UTC) #4
sky
LGTM - I didn't review the view_manager_lib changes. I assumed you added Ben for those. ...
6 years, 3 months ago (2014-09-03 23:36:18 UTC) #5
jamesr
OK, comments addressed. This also fixes the red<->blue color channel shifting so web contents don't ...
6 years, 3 months ago (2014-09-05 00:03:14 UTC) #6
Ben Goodger (Google)
On 2014/09/05 00:03:14, jamesr wrote: > OK, comments addressed. This also fixes the red<->blue color ...
6 years, 3 months ago (2014-09-08 18:15:06 UTC) #7
Ben Goodger (Google)
lgtm ! https://codereview.chromium.org/534843002/diff/40001/mojo/services/public/interfaces/native_viewport/native_viewport.mojom File mojo/services/public/interfaces/native_viewport/native_viewport.mojom (right): https://codereview.chromium.org/534843002/diff/40001/mojo/services/public/interfaces/native_viewport/native_viewport.mojom#newcode14 mojo/services/public/interfaces/native_viewport/native_viewport.mojom:14: Create(Size bounds); rename bounds -> size https://codereview.chromium.org/534843002/diff/40001/mojo/services/public/interfaces/native_viewport/native_viewport.mojom#newcode18 ...
6 years, 3 months ago (2014-09-08 18:26:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/534843002/80002
6 years, 3 months ago (2014-09-10 23:18:22 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/3587)
6 years, 3 months ago (2014-09-11 00:13:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/534843002/110001
6 years, 3 months ago (2014-09-11 17:40:37 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/65692) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/54767) win_gpu ...
6 years, 3 months ago (2014-09-11 18:21:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/534843002/130001
6 years, 3 months ago (2014-09-11 18:33:09 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/65728) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/54795) win_gpu ...
6 years, 3 months ago (2014-09-11 18:45:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/534843002/150001
6 years, 3 months ago (2014-09-11 19:33:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/534843002/170001
6 years, 3 months ago (2014-09-11 20:07:45 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/15439) win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/14752) win_chromium_rel_swarming ...
6 years, 3 months ago (2014-09-11 21:00:43 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/534843002/190001
6 years, 3 months ago (2014-09-11 22:23:47 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:190001) as 787491611a1ed9f29e5e2eb3fc1d74f6b511a45b
6 years, 3 months ago (2014-09-12 00:20:23 UTC) #29
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 00:23:38 UTC) #30
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/529c759bf153b8eec2178244ddd3e87e5790b7c4
Cr-Commit-Position: refs/heads/master@{#294501}

Powered by Google App Engine
This is Rietveld 408576698