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

Issue 2537343004: Add SurfaceReference class. (Closed)

Created:
4 years ago by kylechar
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, cc-bugs_chromium.org, chromium-reviews, darin (slow to review), Fady Samuel, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add SurfaceReference class. Add a simple class SurfaceReference that holds a parent and child SurfaceId. Also add Mojo struct and StructTraits for use over IPC. Update SurfaceId and LocalFrameId struct traits slightly to avoid unnecessary copies. This requires a friend declaration but it seems reasonable and is done elsewhere. BUG=659227 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/c142d1d1f52fd97e463944d0666702c920eb58b2 Cr-Commit-Position: refs/heads/master@{#436423}

Patch Set 1 #

Patch Set 2 : Reparent. #

Patch Set 3 : Add test and remove OS_IOS check. #

Patch Set 4 : Fix dep in wrong target. #

Total comments: 2

Patch Set 5 : Fix nit. #

Total comments: 4

Patch Set 6 : Fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -16 lines) Patch
M cc/ipc/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M cc/ipc/local_frame_id_struct_traits.h View 1 2 3 4 1 chunk +2 lines, -6 lines 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M cc/ipc/surface_id_struct_traits.h View 2 chunks +3 lines, -10 lines 0 comments Download
A cc/ipc/surface_reference.mojom View 1 chunk +12 lines, -0 lines 0 comments Download
A cc/ipc/surface_reference.typemap View 1 chunk +11 lines, -0 lines 0 comments Download
A cc/ipc/surface_reference_struct_traits.h View 1 chunk +34 lines, -0 lines 0 comments Download
M cc/ipc/traits_test_service.mojom View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M cc/ipc/typemaps.gni View 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A cc/surfaces/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/surfaces/local_frame_id.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M cc/surfaces/surface_id.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
A cc/surfaces/surface_reference.h View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
A cc/surfaces/surface_reference.cc View 1 chunk +27 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (15 generated)
kylechar
+vmpstr for general cc/OWNERS review +tsepez for security review +fsamuel FYI
4 years ago (2016-11-30 18:30:46 UTC) #11
Tom Sepez
lgtm https://codereview.chromium.org/2537343004/diff/60001/cc/ipc/local_frame_id_struct_traits.h File cc/ipc/local_frame_id_struct_traits.h (right): https://codereview.chromium.org/2537343004/diff/60001/cc/ipc/local_frame_id_struct_traits.h#newcode28 cc/ipc/local_frame_id_struct_traits.h:28: if (!data.ReadNonce(&out->nonce_)) nit: or just return data.ReadNonce(&out->nonce_);
4 years ago (2016-11-30 18:35:05 UTC) #12
kylechar
https://codereview.chromium.org/2537343004/diff/60001/cc/ipc/local_frame_id_struct_traits.h File cc/ipc/local_frame_id_struct_traits.h (right): https://codereview.chromium.org/2537343004/diff/60001/cc/ipc/local_frame_id_struct_traits.h#newcode28 cc/ipc/local_frame_id_struct_traits.h:28: if (!data.ReadNonce(&out->nonce_)) On 2016/11/30 18:35:05, Tom Sepez wrote: > ...
4 years ago (2016-11-30 22:44:59 UTC) #13
vmpstr
lgtm https://codereview.chromium.org/2537343004/diff/80001/cc/ipc/traits_test_service.mojom File cc/ipc/traits_test_service.mojom (right): https://codereview.chromium.org/2537343004/diff/80001/cc/ipc/traits_test_service.mojom#newcode61 cc/ipc/traits_test_service.mojom:61: EchoSurfaceReference(SurfaceReference s) => (SurfaceReference ref); What are the ...
4 years ago (2016-12-02 19:33:35 UTC) #14
kylechar
Thanks! +rockot for DEP on mojo/public/cpp/bindings/struct_traits.h https://codereview.chromium.org/2537343004/diff/80001/cc/ipc/traits_test_service.mojom File cc/ipc/traits_test_service.mojom (right): https://codereview.chromium.org/2537343004/diff/80001/cc/ipc/traits_test_service.mojom#newcode61 cc/ipc/traits_test_service.mojom:61: EchoSurfaceReference(SurfaceReference s) => ...
4 years ago (2016-12-02 20:16:23 UTC) #16
Ken Rockot(use gerrit already)
lgtm
4 years ago (2016-12-05 20:38:25 UTC) #17
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/2537343004/100001
4 years ago (2016-12-05 20:56:33 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-05 22:23:46 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-05 22:27:28 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c142d1d1f52fd97e463944d0666702c920eb58b2
Cr-Commit-Position: refs/heads/master@{#436423}

Powered by Google App Engine
This is Rietveld 408576698