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

Issue 1995753002: [mojo-edk] Expose portable API for platform handle wrapping (Closed)

Created:
4 years, 7 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[mojo-edk] Expose portable API for platform handle wrapping Introduces a public C API allowing embedders and apps to exchange Mojo handles for generic platform handles or platform shared memory handles. BUG= R=amistry@chromium.org TBR=ben@chromium.org Committed: https://crrev.com/28a287e8850ffd41da04ef0fe8f41e7a5dfb888c Cr-Commit-Position: refs/heads/master@{#395521}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 26

Patch Set 5 : #

Total comments: 6

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+967 lines, -391 lines) Patch
M components/filesystem/directory_impl.cc View 1 2 3 2 chunks +2 lines, -10 lines 0 comments Download
M components/filesystem/file_impl.cc View 1 2 3 2 chunks +3 lines, -10 lines 0 comments Download
M components/filesystem/file_impl_unittest.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M components/font_service/font_service_app.cc View 1 2 3 2 chunks +2 lines, -11 lines 0 comments Download
M components/font_service/public/cpp/font_service_thread.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M components/leveldb/leveldb_mojo_proxy.cc View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M components/mus/gles2/command_buffer_local.cc View 1 2 3 2 chunks +4 lines, -15 lines 0 comments Download
M components/mus/gpu/gpu_type_converters.cc View 1 2 3 5 chunks +17 lines, -26 lines 0 comments Download
M mojo/edk/embedder/entrypoints.cc View 1 2 3 2 chunks +29 lines, -0 lines 0 comments Download
M mojo/edk/embedder/platform_handle.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/edk/system/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/system/core.h View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M mojo/edk/system/core.cc View 1 2 3 4 3 chunks +180 lines, -5 lines 0 comments Download
A mojo/edk/system/platform_wrapper_unittest.cc View 1 2 3 4 1 chunk +212 lines, -0 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.cc View 1 2 3 2 chunks +2 lines, -10 lines 0 comments Download
M mojo/mojo_edk_tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M mojo/mojo_platform_handle.gyp View 1 2 3 1 chunk +1 line, -16 lines 0 comments Download
M mojo/mojo_public.gyp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/platform_handle/BUILD.gn View 1 2 3 1 chunk +6 lines, -65 lines 0 comments Download
D mojo/platform_handle/platform_handle.h View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
D mojo/platform_handle/platform_handle_exports.h View 1 2 3 1 chunk +0 lines, -33 lines 0 comments Download
D mojo/platform_handle/platform_handle_functions.h View 1 2 3 1 chunk +0 lines, -27 lines 0 comments Download
D mojo/platform_handle/platform_handle_functions.cc View 1 2 3 1 chunk +0 lines, -35 lines 0 comments Download
D mojo/platform_handle/platform_handle_private_thunks.h View 1 2 3 1 chunk +0 lines, -31 lines 0 comments Download
D mojo/platform_handle/platform_handle_private_thunks.cc View 1 2 3 1 chunk +0 lines, -39 lines 0 comments Download
M mojo/public/c/system/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/c/system/core.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/c/system/platform_handle.h View 1 2 3 4 5 1 chunk +184 lines, -0 lines 0 comments Download
M mojo/public/cpp/system/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A mojo/public/cpp/system/platform_handle.h View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
A mojo/public/cpp/system/platform_handle.cc View 1 2 3 4 1 chunk +129 lines, -0 lines 0 comments Download
M mojo/public/platform/native/system_thunks.h View 1 2 3 2 chunks +21 lines, -1 line 0 comments Download
M mojo/public/platform/native/system_thunks.cc View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M services/catalog/public/cpp/resource_loader.cc View 1 2 3 1 chunk +9 lines, -6 lines 0 comments Download
M services/shell/runner/host/native_application_support.cc View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (16 generated)
Ken Rockot(use gerrit already)
As discussed previously, since this is going to start blocking other peoples' work. One question ...
4 years, 7 months ago (2016-05-18 20:05:21 UTC) #1
Anand Mistry (off Chromium)
I'm happy using the "Handle" naming instead of "File". I think using file is misleading ...
4 years, 7 months ago (2016-05-20 06:25:40 UTC) #2
Ken Rockot(use gerrit already)
I reworked things a bit (see inline comments). I also didn't want to end up ...
4 years, 7 months ago (2016-05-20 22:19:43 UTC) #4
Anand Mistry (off Chromium)
https://codereview.chromium.org/1995753002/diff/220001/mojo/edk/system/core.cc File mojo/edk/system/core.cc (right): https://codereview.chromium.org/1995753002/diff/220001/mojo/edk/system/core.cc#newcode64 mojo/edk/system/core.cc:64: ScopedPlatformHandle* out_handle) { indenting https://codereview.chromium.org/1995753002/diff/220001/mojo/edk/system/core.cc#newcode68 mojo/edk/system/core.cc:68: if (platform_handle->type == ...
4 years, 7 months ago (2016-05-23 07:16:53 UTC) #12
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1995753002/diff/220001/mojo/edk/system/core.cc File mojo/edk/system/core.cc (right): https://codereview.chromium.org/1995753002/diff/220001/mojo/edk/system/core.cc#newcode64 mojo/edk/system/core.cc:64: ScopedPlatformHandle* out_handle) { On 2016/05/23 at 07:16:52, Anand Mistry ...
4 years, 7 months ago (2016-05-23 17:17:54 UTC) #13
Anand Mistry (off Chromium)
LGTM with a couple of minor nits. https://codereview.chromium.org/1995753002/diff/240001/mojo/public/c/system/platform_handle.h File mojo/public/c/system/platform_handle.h (right): https://codereview.chromium.org/1995753002/diff/240001/mojo/public/c/system/platform_handle.h#newcode128 mojo/public/c/system/platform_handle.h:128: // |num_bytes|: ...
4 years, 7 months ago (2016-05-24 00:36:45 UTC) #14
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1995753002/diff/240001/mojo/public/c/system/platform_handle.h File mojo/public/c/system/platform_handle.h (right): https://codereview.chromium.org/1995753002/diff/240001/mojo/public/c/system/platform_handle.h#newcode128 mojo/public/c/system/platform_handle.h:128: // |num_bytes|: The size of the shared buffer in ...
4 years, 7 months ago (2016-05-24 00:53:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995753002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995753002/260001
4 years, 7 months ago (2016-05-24 00:54:12 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/188541)
4 years, 7 months ago (2016-05-24 01:03:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995753002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995753002/260001
4 years, 7 months ago (2016-05-24 01:06:45 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:260001)
4 years, 7 months ago (2016-05-24 02:51:49 UTC) #26
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 02:53:36 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/28a287e8850ffd41da04ef0fe8f41e7a5dfb888c
Cr-Commit-Position: refs/heads/master@{#395521}

Powered by Google App Engine
This is Rietveld 408576698