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

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)

Created:
3 years, 9 months ago by xlai (Olivia)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, droger+watchlist_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, blundell+watchlist_chromium.org, nasko+codewatch_chromium.org, yzshen+watch_chromium.org, yusukes+watch_chromium.org, sdefresne+watchlist_chromium.org, jam, abarth-chromium, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, feature-media-reviews_chromium.org, dcheng, piman+watch_chromium.org, danakj+watch_chromium.org, shuchen+watch_chromium.org, Aaron Boodman, darin (slow to review), James Su
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move SharedBitmapManager implementation out of content/ HostSharedBitmapManager is shifted to components/display_compositor. ChildSharedBitmapManager is shifted to services/ui/public/cpp/bitmap. The Mojo messages used in allocating shared bitmap is decoupled from render_message_filter.h and moved to cc/ipc/shared_bitmap_manager.mojom. Note that the SharedBitmapManager is an associated mojo interface of RenderMessageFilter so as to maintain the existing FIFO order of mojo messages between the two SharedBitmap allocation functions and the rest of RenderMessageFilter functions. BUG=670162 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2717213004 Cr-Commit-Position: refs/heads/master@{#462979} Committed: https://chromium.googlesource.com/chromium/src/+/11ac780e68cd3fde64d7eac350f4ebf53ce75eea

Patch Set 1 #

Patch Set 2 : Cleaned the code #

Patch Set 3 : rebase #

Total comments: 11

Patch Set 4 : Redo #

Patch Set 5 : Android fix #

Patch Set 6 : Remove old ipc #

Patch Set 7 : rebase #

Patch Set 8 : fix compilation #

Patch Set 9 : rebase and make SharedBitmapManager an Associated Interface #

Patch Set 10 : test fix #

Patch Set 11 : code cleanup #

Patch Set 12 : fix compile #

Total comments: 2

Patch Set 13 : Add ipc task runner #

Total comments: 8

Patch Set 14 : feedback #

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -875 lines) Patch
M cc/ipc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A cc/ipc/shared_bitmap_manager.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +21 lines, -0 lines 0 comments Download
M components/display_compositor/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M components/display_compositor/DEPS View 2 chunks +2 lines, -0 lines 0 comments Download
A + components/display_compositor/host_shared_bitmap_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +21 lines, -11 lines 0 comments Download
A + components/display_compositor/host_shared_bitmap_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +24 lines, -8 lines 0 comments Download
A + components/display_compositor/host_shared_bitmap_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +6 lines, -6 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -7 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -16 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +9 lines, -6 lines 0 comments Download
M content/browser/renderer_host/renderer_frame_manager.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M content/child/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
D content/child/child_shared_bitmap_manager.h View 1 2 3 1 chunk +0 lines, -50 lines 0 comments Download
D content/child/child_shared_bitmap_manager.cc View 1 2 3 1 chunk +0 lines, -146 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -2 lines 0 comments Download
D content/common/host_shared_bitmap_manager.h View 1 chunk +0 lines, -111 lines 0 comments Download
D content/common/host_shared_bitmap_manager.cc View 1 2 3 4 5 6 1 chunk +0 lines, -248 lines 0 comments Download
D content/common/host_shared_bitmap_manager_unittest.cc View 1 chunk +0 lines, -165 lines 0 comments Download
M content/common/render_message_filter.mojom View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -10 lines 0 comments Download
M content/public/test/mock_render_thread.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -6 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_compositor_host.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_graphics_2d_host.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +3 lines, -9 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +8 lines, -17 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M ipc/ipc_channel_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -0 lines 0 comments Download
A services/ui/public/cpp/bitmap/BUILD.gn View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A + services/ui/public/cpp/bitmap/child_shared_bitmap_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -10 lines 0 comments Download
A + services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +41 lines, -22 lines 0 comments Download

Messages

Total messages: 91 (59 generated)
xlai (Olivia)
This is a refactoring patch that factors sharedbitmaps out of content/ as part of the ...
3 years, 9 months ago (2017-02-28 19:05:44 UTC) #6
danakj
https://codereview.chromium.org/2717213004/diff/40001/components/display_compositor/child/BUILD.gn File components/display_compositor/child/BUILD.gn (right): https://codereview.chromium.org/2717213004/diff/40001/components/display_compositor/child/BUILD.gn#newcode10 components/display_compositor/child/BUILD.gn:10: defines = [ "DISPLAY_COMPOSITOR_IMPLEMENTATION" ] separate components should have ...
3 years, 9 months ago (2017-02-28 20:34:57 UTC) #11
danakj
TBH the HostSharedBitmapManager looks like it could live in cc/surfaces/ too, it doesnt depend on ...
3 years, 9 months ago (2017-02-28 20:44:31 UTC) #13
xlai (Olivia)
Not changing the CL further whilst I'm waiting for more opinions about the better way ...
3 years, 9 months ago (2017-03-01 20:02:45 UTC) #14
jbauman
On 2017/02/28 20:44:31, danakj wrote: > TBH the HostSharedBitmapManager looks like it could live in ...
3 years, 9 months ago (2017-03-02 23:20:43 UTC) #15
danakj
fsamuel is also thinking about how to position client/service code with may or may not ...
3 years, 9 months ago (2017-03-03 19:21:55 UTC) #16
jbauman
On 2017/03/03 19:21:55, danakj wrote: > > I don't think either is the right final ...
3 years, 9 months ago (2017-03-03 22:21:33 UTC) #17
danakj
On Fri, Mar 3, 2017 at 5:21 PM, <jbauman@chromium.org> wrote: > On 2017/03/03 19:21:55, danakj ...
3 years, 9 months ago (2017-03-03 22:47:20 UTC) #18
xlai (Olivia)
On 2017/03/03 22:21:33, jbauman wrote: > On 2017/03/03 19:21:55, danakj wrote: > > > > ...
3 years, 9 months ago (2017-03-03 22:49:48 UTC) #19
danakj
On Fri, Mar 3, 2017 at 5:49 PM, <xlai@chromium.org> wrote: > On 2017/03/03 22:21:33, jbauman ...
3 years, 9 months ago (2017-03-03 23:41:58 UTC) #20
xlai (Olivia)
+fsamuel@ to reviewers. I followed danakj@'s suggestion to move ChildSharedBitmapManager to //services/ui/public/cpp/bitmap/ and the mojom ...
3 years, 9 months ago (2017-03-13 15:44:13 UTC) #43
xlai (Olivia)
I've resumed working on this CL. Basically, the previous problem I had was about the ...
3 years, 8 months ago (2017-04-05 15:33:52 UTC) #52
jbauman
https://codereview.chromium.org/2717213004/diff/240001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2717213004/diff/240001/content/renderer/render_thread_impl.cc#newcode635 content/renderer/render_thread_impl.cc:635: cc::mojom::ThreadSafeSharedBitmapManagerAssociatedPtr::Create( I'm not sure how this works, but I ...
3 years, 8 months ago (2017-04-05 21:37:28 UTC) #53
xlai (Olivia)
https://codereview.chromium.org/2717213004/diff/240001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2717213004/diff/240001/content/renderer/render_thread_impl.cc#newcode635 content/renderer/render_thread_impl.cc:635: cc::mojom::ThreadSafeSharedBitmapManagerAssociatedPtr::Create( On 2017/04/05 21:37:28, jbauman wrote: > I'm not ...
3 years, 8 months ago (2017-04-05 21:41:45 UTC) #54
jbauman
On 2017/04/05 21:41:45, xlai (Olivia) wrote: > https://codereview.chromium.org/2717213004/diff/240001/content/renderer/render_thread_impl.cc > File content/renderer/render_thread_impl.cc (right): > > https://codereview.chromium.org/2717213004/diff/240001/content/renderer/render_thread_impl.cc#newcode635 ...
3 years, 8 months ago (2017-04-05 21:54:20 UTC) #55
xlai (Olivia)
On 2017/04/05 21:54:20, jbauman wrote: > On 2017/04/05 21:41:45, xlai (Olivia) wrote: > > > ...
3 years, 8 months ago (2017-04-05 23:10:39 UTC) #59
xlai (Olivia)
This CL is ready to be reviewed, after rounds of discussion among reviewers to find ...
3 years, 8 months ago (2017-04-06 14:20:51 UTC) #63
danakj
LGTM https://codereview.chromium.org/2717213004/diff/260001/cc/ipc/shared_bitmap_manager.mojom File cc/ipc/shared_bitmap_manager.mojom (right): https://codereview.chromium.org/2717213004/diff/260001/cc/ipc/shared_bitmap_manager.mojom#newcode9 cc/ipc/shared_bitmap_manager.mojom:9: // This interface is used for allocating shared ...
3 years, 8 months ago (2017-04-06 15:00:51 UTC) #64
Fady Samuel
Thank you for following through on this, Olivia! This is great! LGTM
3 years, 8 months ago (2017-04-06 15:05:12 UTC) #65
Tom Sepez
LGTM. https://codereview.chromium.org/2717213004/diff/260001/cc/ipc/shared_bitmap_manager.mojom File cc/ipc/shared_bitmap_manager.mojom (right): https://codereview.chromium.org/2717213004/diff/260001/cc/ipc/shared_bitmap_manager.mojom#newcode18 cc/ipc/shared_bitmap_manager.mojom:18: AllocatedSharedBitmap(handle<shared_buffer> buffer, gpu.mojom.Mailbox id); nit: maybe call this ...
3 years, 8 months ago (2017-04-06 16:44:04 UTC) #66
xlai (Olivia)
As jam@ is OOO, add sky@ and piman@ as reviewers. sky@: Could you please review ...
3 years, 8 months ago (2017-04-06 17:03:48 UTC) #68
sky
https://codereview.chromium.org/2717213004/diff/260001/services/ui/public/cpp/BUILD.gn File services/ui/public/cpp/BUILD.gn (right): https://codereview.chromium.org/2717213004/diff/260001/services/ui/public/cpp/BUILD.gn#newcode24 services/ui/public/cpp/BUILD.gn:24: "//services/ui/public/cpp/bitmap", Do all users of services/ui/public need the bitmap ...
3 years, 8 months ago (2017-04-06 20:03:12 UTC) #69
sky
I'm wondering if the bitmap files you're moving to services/ui should be moved to cc?
3 years, 8 months ago (2017-04-06 20:03:46 UTC) #70
Fady Samuel
On 2017/04/06 20:03:46, sky wrote: > I'm wondering if the bitmap files you're moving to ...
3 years, 8 months ago (2017-04-06 20:04:43 UTC) #71
xlai (Olivia)
https://codereview.chromium.org/2717213004/diff/260001/cc/ipc/shared_bitmap_manager.mojom File cc/ipc/shared_bitmap_manager.mojom (right): https://codereview.chromium.org/2717213004/diff/260001/cc/ipc/shared_bitmap_manager.mojom#newcode9 cc/ipc/shared_bitmap_manager.mojom:9: // This interface is used for allocating shared bitmap ...
3 years, 8 months ago (2017-04-06 20:42:27 UTC) #72
piman
lgtm
3 years, 8 months ago (2017-04-06 21:01:33 UTC) #73
jbauman
lgtm
3 years, 8 months ago (2017-04-06 21:17:31 UTC) #74
sky
Is there a reason not to put them in viz now? On Thu, Apr 6, ...
3 years, 8 months ago (2017-04-06 21:47:08 UTC) #75
danakj
On Thu, Apr 6, 2017 at 5:47 PM, Scott Violet <sky@chromium.org> wrote: > Is there ...
3 years, 8 months ago (2017-04-07 15:02:11 UTC) #76
sky
Ok, LGTM
3 years, 8 months ago (2017-04-07 15:21:50 UTC) #77
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/2717213004/300001
3 years, 8 months ago (2017-04-07 20:04:23 UTC) #88
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 20:14:17 UTC) #91
Message was sent while issue was closed.
Committed patchset #15 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/11ac780e68cd3fde64d7eac350f4...

Powered by Google App Engine
This is Rietveld 408576698