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

Issue 1578423002: Added PlatformHandle thunks. (Closed)

Created:
4 years, 11 months ago by Forrest Reiling
Modified:
4 years, 9 months ago
Reviewers:
vtl, cdotstout, viettrungluu
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Added PlatformHandle thunks. Added thunks for exchanging PlatformHandles (file descriptors) between mojo services as MojoHandles. Basically a port of https://codereview.chromium.org/1113393002 plus some testing code. This is intended to be used to allow cross-process sharing of GPU buffers Change-Id: I5c77f0ed0381c0b03ce0280314f7fbef3551d895 BUG= R=viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/74b0cac9bdd351dc67c6fc99a7a8b64e85de2f5d

Patch Set 1 #

Total comments: 24

Patch Set 2 : Made @viettrungluu's suggested changes #

Patch Set 3 : made one last change I missed in the first pass #

Patch Set 4 : effed up the build changes, didnt catch it cause gn didnt run (I think) #

Total comments: 71

Patch Set 5 : Made @viettrunluu 's second round of suggested changes #

Patch Set 6 : Renamed platform_handle_apptests to platform_handle_private_apptests #

Total comments: 28

Patch Set 7 : made vtl's most recent suggestions #

Total comments: 4

Patch Set 8 : made nit changes #

Patch Set 9 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -0 lines) Patch
M mojo/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/platform/native/BUILD.gn View 1 2 3 4 5 2 chunks +49 lines, -0 lines 0 comments Download
A mojo/public/platform/native/platform_handle_private.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A mojo/public/platform/native/platform_handle_private_apptest.cc View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
A mojo/public/platform/native/platform_handle_private_thunks.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A mojo/public/platform/native/platform_handle_private_thunks.c View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M shell/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M shell/native_application_support.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
A shell/platform_handle_impl.cc View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
Forrest Reiling
4 years, 11 months ago (2016-01-19 21:23:08 UTC) #2
cdotstout
Deferring to vtl
4 years, 10 months ago (2016-02-01 16:33:35 UTC) #3
viettrungluu
Pro-tip (for freiling): If you send code reviews to viettrungluu@chromium.org, I'll be 98% more likely ...
4 years, 10 months ago (2016-02-01 23:54:55 UTC) #5
viettrungluu
https://codereview.chromium.org/1578423002/diff/1/mojo/platform_handle/platform_handle_apptest.cc File mojo/platform_handle/platform_handle_apptest.cc (right): https://codereview.chromium.org/1578423002/diff/1/mojo/platform_handle/platform_handle_apptest.cc#newcode6 mojo/platform_handle/platform_handle_apptest.cc:6: #include "mojo/public/cpp/application/application_impl.h" nit: blank line above. https://codereview.chromium.org/1578423002/diff/1/mojo/platform_handle/platform_handle_functions.h File mojo/platform_handle/platform_handle_functions.h ...
4 years, 10 months ago (2016-02-02 00:07:36 UTC) #6
Forrest Reiling
https://codereview.chromium.org/1578423002/diff/1/mojo/platform_handle/platform_handle_apptest.cc File mojo/platform_handle/platform_handle_apptest.cc (right): https://codereview.chromium.org/1578423002/diff/1/mojo/platform_handle/platform_handle_apptest.cc#newcode6 mojo/platform_handle/platform_handle_apptest.cc:6: #include "mojo/public/cpp/application/application_impl.h" On 2016/02/02 00:07:36, viettrungluu wrote: > nit: ...
4 years, 10 months ago (2016-02-10 20:16:09 UTC) #7
viettrungluu
https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/BUILD.gn File mojo/public/platform/native/BUILD.gn (right): https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/BUILD.gn#newcode6 mojo/public/platform/native/BUILD.gn:6: import("$mojo_root/mojo/public/mojo_application.gni") Just use a relative path, like the import ...
4 years, 10 months ago (2016-02-18 01:10:07 UTC) #8
viettrungluu
https://codereview.chromium.org/1578423002/diff/60001/shell/platform_handle_impl.cc File shell/platform_handle_impl.cc (right): https://codereview.chromium.org/1578423002/diff/60001/shell/platform_handle_impl.cc#newcode1 shell/platform_handle_impl.cc:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 10 months ago (2016-02-18 01:11:03 UTC) #9
Forrest Reiling
https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/BUILD.gn File mojo/public/platform/native/BUILD.gn (right): https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/BUILD.gn#newcode6 mojo/public/platform/native/BUILD.gn:6: import("$mojo_root/mojo/public/mojo_application.gni") On 2016/02/18 01:10:06, viettrungluu wrote: > Just use ...
4 years, 10 months ago (2016-02-23 23:48:45 UTC) #10
viettrungluu
https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/BUILD.gn File mojo/public/platform/native/BUILD.gn (right): https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/BUILD.gn#newcode156 mojo/public/platform/native/BUILD.gn:156: mojo_native_application("platform_handle_apptest") { On 2016/02/23 23:48:44, Forrest Reiling wrote: > ...
4 years, 10 months ago (2016-02-24 18:09:57 UTC) #11
Forrest Reiling
Second round of changes are up, PTAL https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/BUILD.gn File mojo/public/platform/native/BUILD.gn (right): https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/BUILD.gn#newcode156 mojo/public/platform/native/BUILD.gn:156: mojo_native_application("platform_handle_apptest") { ...
4 years, 10 months ago (2016-02-24 20:10:42 UTC) #12
viettrungluu
https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/platform_handle_apptest.cc File mojo/public/platform/native/platform_handle_apptest.cc (right): https://codereview.chromium.org/1578423002/diff/60001/mojo/public/platform/native/platform_handle_apptest.cc#newcode1 mojo/public/platform/native/platform_handle_apptest.cc:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 10 months ago (2016-02-24 21:59:57 UTC) #13
Forrest Reiling
Renamed platform_handle_apptests as per request by @viettrungluu. PTAL
4 years, 9 months ago (2016-02-25 19:50:12 UTC) #14
viettrungluu
https://codereview.chromium.org/1578423002/diff/100001/mojo/public/platform/native/platform_handle_private.h File mojo/public/platform/native/platform_handle_private.h (right): https://codereview.chromium.org/1578423002/diff/100001/mojo/public/platform/native/platform_handle_private.h#newcode5 mojo/public/platform/native/platform_handle_private.h:5: #ifndef MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_PRIVATE_H_ This include guard should be updated. https://codereview.chromium.org/1578423002/diff/100001/mojo/public/platform/native/platform_handle_private.h#newcode35 ...
4 years, 9 months ago (2016-02-26 00:14:22 UTC) #15
Forrest Reiling
PTAL https://codereview.chromium.org/1578423002/diff/100001/mojo/public/platform/native/platform_handle_private.h File mojo/public/platform/native/platform_handle_private.h (right): https://codereview.chromium.org/1578423002/diff/100001/mojo/public/platform/native/platform_handle_private.h#newcode5 mojo/public/platform/native/platform_handle_private.h:5: #ifndef MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_PRIVATE_H_ On 2016/02/26 00:14:21, viettrungluu wrote: > ...
4 years, 9 months ago (2016-03-02 23:18:40 UTC) #16
viettrungluu
lgtm w/nits https://codereview.chromium.org/1578423002/diff/120001/mojo/public/platform/native/platform_handle_private_apptest.cc File mojo/public/platform/native/platform_handle_private_apptest.cc (right): https://codereview.chromium.org/1578423002/diff/120001/mojo/public/platform/native/platform_handle_private_apptest.cc#newcode8 mojo/public/platform/native/platform_handle_private_apptest.cc:8: #include <string.h> nit: I don't think you ...
4 years, 9 months ago (2016-03-02 23:42:55 UTC) #17
Forrest Reiling
PTAL https://codereview.chromium.org/1578423002/diff/120001/mojo/public/platform/native/platform_handle_private_apptest.cc File mojo/public/platform/native/platform_handle_private_apptest.cc (right): https://codereview.chromium.org/1578423002/diff/120001/mojo/public/platform/native/platform_handle_private_apptest.cc#newcode8 mojo/public/platform/native/platform_handle_private_apptest.cc:8: #include <string.h> On 2016/03/02 23:42:55, viettrungluu wrote: > ...
4 years, 9 months ago (2016-03-03 00:13:08 UTC) #18
Forrest Reiling
4 years, 9 months ago (2016-03-03 00:21:27 UTC) #20
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
74b0cac9bdd351dc67c6fc99a7a8b64e85de2f5d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698