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

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)

Created:
4 years, 1 month ago by Jay Civelli
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replacing the AllocateBitmap related IPC messages with new mojo methods in the RenderMessageFilter interface (it has to be part of the associated interface for now because of ordering issue with other CC messages). As part of that, unified the bitmap allocation behavior in ChildSharedBitmapManager on all platforms, by allocating shared memory with the generic shared memory allocation code path and then registering it as a bitmap. Also moved ChildSharedBitmapManager from the ChildThreadImpl to RenderThreadImpl as it is not common to all child processes. BUG=612500 TEST=content_shell should run normally with the --dissable-gpu flag. Committed: https://crrev.com/97235f8be07b5fe9200fe76901d27833325a5996 Cr-Commit-Position: refs/heads/master@{#436095}

Patch Set 1 #

Patch Set 2 : Clean-up #

Total comments: 1

Patch Set 3 : More clean-ups #

Total comments: 6

Patch Set 4 : More work. #

Patch Set 5 : Using the thread safe interface ptr #

Patch Set 6 : Synced #

Patch Set 7 : Clean-up #

Total comments: 2

Patch Set 8 : Addressed @rockot's comment (+ formatting) #

Total comments: 2

Patch Set 9 : Addressed @jbauman comment #

Patch Set 10 : Fix for pixel test failures. #

Patch Set 11 : Synced #

Patch Set 12 : Removing now unused IPC messages. #

Patch Set 13 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -155 lines) Patch
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +10 lines, -38 lines 0 comments Download
M content/child/child_shared_bitmap_manager.h View 1 2 3 4 5 3 chunks +10 lines, -5 lines 0 comments Download
M content/child/child_shared_bitmap_manager.cc View 1 2 3 4 5 6 7 8 6 chunks +55 lines, -57 lines 0 comments Download
M content/child/child_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +0 lines, -7 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -4 lines 0 comments Download
M content/common/child_process_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -17 lines 0 comments Download
M content/common/render_message_filter.mojom View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M content/public/test/mock_render_thread.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_compositor_host.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -6 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 55 (31 generated)
Jay Civelli
https://codereview.chromium.org/2488913003/diff/20001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/2488913003/diff/20001/content/child/child_shared_bitmap_manager.cc#newcode188 content/child/child_shared_bitmap_manager.cc:188: true /* read_only */); @jbauman Existing code does not ...
4 years, 1 month ago (2016-11-09 21:47:11 UTC) #3
jbauman
https://codereview.chromium.org/2488913003/diff/40001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/2488913003/diff/40001/content/child/child_shared_bitmap_manager.cc#newcode28 content/child/child_shared_bitmap_manager.cc:28: scoped_refptr<ThreadSafeSender> sender, This sender could be removed. https://codereview.chromium.org/2488913003/diff/40001/content/child/child_shared_bitmap_manager.cc#newcode50 content/child/child_shared_bitmap_manager.cc:50: ...
4 years, 1 month ago (2016-11-09 22:26:31 UTC) #6
Jay Civelli
Ready for review again, now that the Mojo thread safe interface ptr code has landed. ...
4 years ago (2016-11-29 16:43:10 UTC) #10
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2488913003/diff/120001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/2488913003/diff/120001/content/child/child_shared_bitmap_manager.cc#newcode150 content/child/child_shared_bitmap_manager.cc:150: base::SharedMemoryHandle handle_to_send = memory->handle(); This seems to correctly mirror ...
4 years ago (2016-11-29 17:43:11 UTC) #15
Jay Civelli
https://codereview.chromium.org/2488913003/diff/120001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/2488913003/diff/120001/content/child/child_shared_bitmap_manager.cc#newcode150 content/child/child_shared_bitmap_manager.cc:150: base::SharedMemoryHandle handle_to_send = memory->handle(); On 2016/11/29 17:43:11, Ken Rockot ...
4 years ago (2016-11-29 18:01:48 UTC) #16
Ken Rockot(use gerrit already)
lgtm
4 years ago (2016-11-29 18:11:12 UTC) #17
jbauman
https://codereview.chromium.org/2488913003/diff/140001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/2488913003/diff/140001/content/child/child_shared_bitmap_manager.cc#newcode126 content/child/child_shared_bitmap_manager.cc:126: std::move(memory), id); On POSIX we also want to close ...
4 years ago (2016-11-29 22:42:09 UTC) #18
jbauman
On 2016/11/29 22:42:09, jbauman wrote: > https://codereview.chromium.org/2488913003/diff/140001/content/child/child_shared_bitmap_manager.cc > File content/child/child_shared_bitmap_manager.cc (right): > > https://codereview.chromium.org/2488913003/diff/140001/content/child/child_shared_bitmap_manager.cc#newcode126 > ...
4 years ago (2016-11-29 22:42:57 UTC) #19
Jay Civelli
https://codereview.chromium.org/2488913003/diff/140001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/2488913003/diff/140001/content/child/child_shared_bitmap_manager.cc#newcode126 content/child/child_shared_bitmap_manager.cc:126: std::move(memory), id); On 2016/11/29 22:42:09, jbauman wrote: > On ...
4 years ago (2016-11-30 01:46:19 UTC) #20
jbauman
lgtm
4 years ago (2016-11-30 01:48:36 UTC) #21
Jay Civelli
Adding @kinuko for content/ OWNER review. Thanks.
4 years ago (2016-11-30 01:59:05 UTC) #23
kinuko
rs'ish lgtm
4 years ago (2016-11-30 05:00:23 UTC) #24
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/2488913003/160001
4 years ago (2016-11-30 05:19:38 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/344813)
4 years ago (2016-11-30 06:08:37 UTC) #29
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/2488913003/200001
4 years ago (2016-12-02 00:15:32 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/316932)
4 years ago (2016-12-02 00:24:05 UTC) #34
Jay Civelli
Adding @tsepez for OWNER review of: content/common/child_process_messages.h content/common/render_message_filter.mojom Thanks
4 years ago (2016-12-02 00:45:54 UTC) #36
Tom Sepez
OWNERS LGTM
4 years ago (2016-12-02 17:36:08 UTC) #41
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/2488913003/220001
4 years ago (2016-12-02 20:52:46 UTC) #44
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_message_filter.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-02 21:31:38 UTC) #46
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/2488913003/240001
4 years ago (2016-12-02 22:28:44 UTC) #49
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years ago (2016-12-03 00:22:31 UTC) #52
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/97235f8be07b5fe9200fe76901d27833325a5996 Cr-Commit-Position: refs/heads/master@{#436095}
4 years ago (2016-12-03 00:26:01 UTC) #54
Jay Civelli
4 years ago (2016-12-06 16:44:51 UTC) #55
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:240001) has been created in
https://codereview.chromium.org/2552913003/ by jcivelli@chromium.org.

The reason for reverting is: Might be causing a crasher on Windows.
http://crbug.com/671459.

Powered by Google App Engine
This is Rietveld 408576698