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

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed)

Created:
8 years, 5 months ago by dmichael (off chromium)
Modified:
8 years, 3 months ago
Reviewers:
bradnelson, bbudge, brettw, bradn
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally This does a couple of things: - It defines a new wrapper for passing any kind of handle through the PPAPI proxy (SerializedHandle). - It updates nacl_ipc_adapter to have a more general way to pick apart messages based on their static types (which include the types of all the params). - It adds support for PPB_Graphics2D and PPB_Graphics3D to the NaCl IPC proxy (e.g., NaCl SDK examples pi_generator and tumbler work in the new proxy with this patch). The downside is it requires pulling parts of ppapi/shared_impl and ppapi/proxy in to the NaCl Win64 build. BUG=116317 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153531

Patch Set 1 #

Patch Set 2 : ImageData works on posix. WIP. Lots of debug printf. #

Patch Set 3 : It works! #

Patch Set 4 : ready for review? #

Total comments: 2

Patch Set 5 : Fix linux build? #

Patch Set 6 : Fix Windows static build #

Patch Set 7 : merge #

Patch Set 8 : Merge better #

Patch Set 9 : Build configuration bingo: Fix linux_clang? #

Total comments: 1

Patch Set 10 : Remove resource_message_params from ppapi_proxy (it's now in ppapi_ipc) #

Patch Set 11 : cleanup ppapi_shared_untrusted.gyp #

Patch Set 12 : Removed some proxy changes that aren't necessary now #

Total comments: 20

Patch Set 13 : Review comments. #

Patch Set 14 : Oops, add back ppapi_ipc_proxy_untrusted.gyp #

Patch Set 15 : Merge audio changes #

Patch Set 16 : re-add gyp files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+941 lines, -258 lines) Patch
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_renderer.gypi 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 chrome/nacl.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_ipc_adapter.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_ipc_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +192 lines, -77 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/content_ppapi_plugin.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/content_tests.gypi 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 gpu/command_buffer/common/command_buffer.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/gpu.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +30 lines, -0 lines 0 comments Download
M gpu/gpu_export.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M gpu/gpu_ipc.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
M gpu/gpu_untrusted.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/native_client/native_client.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +9 lines, -0 lines 0 comments Download
M ppapi/ppapi_host.gypi 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 ppapi/ppapi_internal.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +158 lines, -22 lines 0 comments Download
A ppapi/ppapi_ipc.gypi View 1 2 3 4 5 6 7 8 9 15 1 chunk +44 lines, -0 lines 0 comments Download
M ppapi/ppapi_ipc_proxy_untrusted.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
A + ppapi/ppapi_ipc_untrusted.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -12 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +0 lines, -15 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +11 lines, -1 line 0 comments Download
M ppapi/ppapi_shared_untrusted.gyp 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 ppapi/proxy/DEPS 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 ppapi/proxy/plugin_array_buffer_var.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher_unittest.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 2 1 chunk +8 lines, -6 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +22 lines, -24 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.h View 1 2 3 4 chunks +12 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +57 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_export.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_audio_input_proxy.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_audio_input_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +35 lines, -15 lines 0 comments Download
M ppapi/proxy/ppb_audio_proxy.h View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M ppapi/proxy/ppb_audio_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +27 lines, -11 lines 0 comments Download
M ppapi/proxy/ppb_buffer_proxy.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_buffer_proxy.cc View 1 2 3 chunks +9 lines, -8 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.cc View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +11 lines, -8 lines 0 comments Download
M ppapi/proxy/serialized_structs.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +92 lines, -0 lines 0 comments Download
M ppapi/proxy/serialized_structs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +80 lines, -1 line 0 comments Download
M ppapi/proxy/serialized_var.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/host_resource.h View 1 2 3 2 chunks +3 lines, -11 lines 0 comments Download
A ppapi/shared_impl/host_resource.cc View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.h 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 ppapi/shared_impl/ppb_device_ref_shared.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppb_image_data_shared.cc View 1 2 3 2 chunks +14 lines, -8 lines 0 comments Download
M ppapi/shared_impl/ppb_input_event_shared.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M ppapi/shared_impl/ppb_network_list_private_shared.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/shared_impl/var.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
dmichael (off chromium)
This is probably ready for a first look. Audio and ImageData work. Graphics3D doesn't yet ...
8 years, 4 months ago (2012-07-28 17:58:11 UTC) #1
dmichael (off chromium)
I realized I probably ought to test this on Windows before you review, and there's ...
8 years, 4 months ago (2012-07-30 14:44:01 UTC) #2
bbudge
On 2012/07/30 14:44:01, dmichael wrote: > I realized I probably ought to test this on ...
8 years, 4 months ago (2012-07-30 17:07:34 UTC) #3
dmichael (off chromium)
On Mon, Jul 30, 2012 at 11:07 AM, <bbudge@chromium.org> wrote: > On 2012/07/30 14:44:01, dmichael ...
8 years, 4 months ago (2012-07-30 17:12:14 UTC) #4
dmichael (off chromium)
On Mon, Jul 30, 2012 at 11:07 AM, <bbudge@chromium.org> wrote: > On 2012/07/30 14:44:01, dmichael ...
8 years, 4 months ago (2012-07-30 17:12:16 UTC) #5
dmichael (off chromium)
bradnelson: General gyp review & advice (I'm sure there are ways to improve it) brettw: ...
8 years, 4 months ago (2012-08-16 21:23:17 UTC) #6
brettw
The template stuff seems nice but I'm worried about the gym file changes. I know ...
8 years, 4 months ago (2012-08-17 23:02:14 UTC) #7
bradn
One suggestion, but you don't need to take it. LGTM on the gyp http://codereview.chromium.org/10828023/diff/8006/gpu/gpu_untrusted.gyp File ...
8 years, 4 months ago (2012-08-17 23:19:44 UTC) #8
dmichael (off chromium)
On Fri, Aug 17, 2012 at 5:02 PM, <brettw@chromium.org> wrote: > The template stuff seems ...
8 years, 4 months ago (2012-08-17 23:24:59 UTC) #9
dmichael (off chromium)
On Fri, Aug 17, 2012 at 5:02 PM, <brettw@chromium.org> wrote: > The template stuff seems ...
8 years, 4 months ago (2012-08-17 23:25:00 UTC) #10
brettw
If the definition of ppapi_ipc is "under control" (I'm not quire sure what kind of ...
8 years, 4 months ago (2012-08-19 22:29:27 UTC) #11
brettw
If the definition of ppapi_ipc is "under control" (I'm not quire sure what kind of ...
8 years, 4 months ago (2012-08-19 22:29:28 UTC) #12
dmichael (off chromium)
This patch adds a ppapi_ipc target, which actually helped reduce dependencies a little bit in ...
8 years, 4 months ago (2012-08-21 21:59:53 UTC) #13
brettw
This looks a lot better http://codereview.chromium.org/10828023/diff/5064/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/10828023/diff/5064/chrome/nacl.gypi#newcode112 chrome/nacl.gypi:112: '../ppapi/ppapi_internal.gyp:ppapi_shared_win64', How much does ...
8 years, 4 months ago (2012-08-22 23:27:06 UTC) #14
dmichael (off chromium)
Comments addressed. http://codereview.chromium.org/10828023/diff/5064/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/10828023/diff/5064/chrome/nacl.gypi#newcode112 chrome/nacl.gypi:112: '../ppapi/ppapi_internal.gyp:ppapi_shared_win64', On 2012/08/22 23:27:06, brettw wrote: > ...
8 years, 4 months ago (2012-08-23 22:55:14 UTC) #15
bbudge
How did you get around the problem with ppapi/ppapi_proxy_untrusted.gyp, where the NaCl .gyp file with ...
8 years, 4 months ago (2012-08-23 23:26:42 UTC) #16
dmichael (off chromium)
On 2012/08/23 23:26:42, bbudge1 wrote: > How did you get around the problem with ppapi/ppapi_proxy_untrusted.gyp, ...
8 years, 4 months ago (2012-08-24 16:29:19 UTC) #17
brettw
lgtm
8 years, 4 months ago (2012-08-24 21:09:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/10828023/30005
8 years, 3 months ago (2012-08-27 17:40:29 UTC) #19
commit-bot: I haz the power
Try job failure for 10828023-30005 (retry) on mac_rel for step "runhooks". It's a second try, ...
8 years, 3 months ago (2012-08-27 17:53:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/10828023/31110
8 years, 3 months ago (2012-08-27 17:57:27 UTC) #21
commit-bot: I haz the power
8 years, 3 months ago (2012-08-27 20:28:20 UTC) #22
Change committed as 153531

Powered by Google App Engine
This is Rietveld 408576698