OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
6 module mojo; | 6 module mojo; |
7 | 7 |
8 // A surface ID is composed of two parts, a local part and a namespace. The | 8 // A surface ID is composed of two parts, a local part and a namespace. The |
9 // local part is allocated by the client using any scheme that avoids | 9 // local part is allocated by the client using any scheme that avoids |
10 // duplicates. The namespace is allocated by the service and will be different | 10 // duplicates. The namespace is allocated by the service and will be different |
11 // for each client (aka each connection to mojo.Surface). | 11 // for each client (aka each connection to mojo.Surface). |
12 // | 12 // |
13 // The special id_namespace value 0 is equivalent to the namespace of the | 13 // The special id_namespace value 0 is equivalent to the namespace of the |
14 // client. This can be used to create, destroy and submit frames to | 14 // client. This can be used to create, destroy and submit frames to |
15 // surfaces before learning the namespace and to reference other surfaces | 15 // surfaces before learning the namespace and to reference other surfaces |
16 // owned by the same client. The actual id namespace must be used to pass | 16 // owned by the same client. The actual id namespace must be used to pass |
17 // surface ids to other clients for them to reference. | 17 // surface ids to other clients for them to reference. |
18 struct SurfaceId { | 18 struct SurfaceId { |
19 uint32 local; | 19 uint32 local; |
20 uint32 id_namespace; | 20 uint32 id_namespace; |
21 }; | 21 }; |
OLD | NEW |