1 // Copyright 2016 The Chromium Authors. All rights reserved.
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
3 // found in the LICENSE file.
4
4
5 module gpu.mojom;
5 module gpu.mojom;
6
6
7[Native]
7// See gpu/command_buffer/common/mailbox.h
8struct Mailbox;
8struct Mailbox {
9 array<int8, 64> name;
piman
2016/05/31 16:08:49
I'm not well versed in the mojo semantics - does t
I'm not well versed in the mojo semantics - does this means that the reader will
always expect 64 int8s, and that it will report failure if there aren't exactly
64?
Ken Rockot(use gerrit already)
2016/05/31 17:19:48
Yes. Receiving anything but an array with exactly
On 2016/05/31 at 16:08:49, piman OOO back 2016-5-31 wrote:
> I'm not well versed in the mojo semantics - does this means that the reader
will always expect 64 int8s, and that it will report failure if there aren't
exactly 64?
Yes. Receiving anything but an array with exactly 64 elements is equivalent to
receiving a malformed message. As such the bindings layer will reject the
message (i.e. never dispatch) and the message pipe will be closed.
Issue 2019833002: Implement StructTraits for various cc and gpu types
(Closed)
Created 4 years, 6 months ago by Fady Samuel
Modified 4 years, 6 months ago
Reviewers: Ben Goodger (Google), piman, Tom Sepez, Ken Rockot(use gerrit already), yzshen1
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 8