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

Issue 12440005: Use gpu::Mailbox in IPCs instead of std::string (Closed)

Created:
7 years, 9 months ago by piman
Modified:
6 years, 8 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jonathan.backer, Ian Vollick, jam, penghuang+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, James Su
Visibility:
Public.

Description

Use gpu::Mailbox in IPCs instead of std::string gpu::Mailbox is safer since the size is checked in the deserializer. It's also overall less code. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186627

Patch Set 1 #

Total comments: 13

Patch Set 2 : rebase #

Patch Set 3 : Address review comments, fix mac build #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -128 lines) Patch
M cc/texture_layer_unittest.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M cc/texture_mailbox.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/texture_mailbox.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest_manager.h View 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/image_transport_factory.cc View 1 2 3 4 2 chunks +11 lines, -20 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 2 chunks +4 lines, -17 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 chunks +6 lines, -12 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 4 chunks +4 lines, -3 lines 0 comments Download
M content/common/gpu/texture_image_transport_surface.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/gpu/texture_image_transport_surface.cc View 1 2 7 chunks +15 lines, -20 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin_compositing_helper.h View 3 chunks +7 lines, -3 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_compositing_helper.cc View 1 2 3 4 4 chunks +7 lines, -9 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.h View 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/mailbox_manager.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/mailbox_manager.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ui/compositor/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M ui/compositor/compositor.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
piman
Alex: browser_plugin and cc/ Daniel: content/browser/renderer_host, content/common/gpu, ui/compositor Justin: IPC (same as before)
7 years, 9 months ago (2013-03-06 21:18:44 UTC) #1
alexst (slow to review)
BrowserPlugin and CC lgtm with a couple small nits. https://codereview.chromium.org/12440005/diff/1/content/browser/browser_plugin/browser_plugin_embedder.h File content/browser/browser_plugin/browser_plugin_embedder.h (right): https://codereview.chromium.org/12440005/diff/1/content/browser/browser_plugin/browser_plugin_embedder.h#newcode29 content/browser/browser_plugin/browser_plugin_embedder.h:29: ...
7 years, 9 months ago (2013-03-06 21:54:27 UTC) #2
no sievers
Nice! LGTM. Just a few nits/comments. https://codereview.chromium.org/12440005/diff/1/content/browser/renderer_host/image_transport_factory.cc File content/browser/renderer_host/image_transport_factory.cc (right): https://codereview.chromium.org/12440005/diff/1/content/browser/renderer_host/image_transport_factory.cc#newcode168 content/browser/renderer_host/image_transport_factory.cc:168: if (mailbox_name.IsZero()) I ...
7 years, 9 months ago (2013-03-06 23:19:23 UTC) #3
piman
https://codereview.chromium.org/12440005/diff/1/content/browser/renderer_host/image_transport_factory.cc File content/browser/renderer_host/image_transport_factory.cc (right): https://codereview.chromium.org/12440005/diff/1/content/browser/renderer_host/image_transport_factory.cc#newcode168 content/browser/renderer_host/image_transport_factory.cc:168: if (mailbox_name.IsZero()) On 2013/03/06 23:19:23, Daniel Sievers wrote: > ...
7 years, 9 months ago (2013-03-07 01:48:02 UTC) #4
jschuh
strings to a structured type. yay! rubberstamp lgtm.
7 years, 9 months ago (2013-03-07 03:24:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/12440005/17004
7 years, 9 months ago (2013-03-07 03:35:12 UTC) #6
commit-bot: I haz the power
7 years, 9 months ago (2013-03-07 05:33:43 UTC) #7
Message was sent while issue was closed.
Change committed as 186627

Powered by Google App Engine
This is Rietveld 408576698