| 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 module cc.mojom; | 5 module cc.mojom; |
| 6 | 6 |
| 7 import "cc/ipc/frame_sink_id.mojom"; | 7 import "cc/ipc/frame_sink_id.mojom"; |
| 8 import "cc/ipc/local_frame_id.mojom"; | 8 import "cc/ipc/local_surface_id.mojom"; |
| 9 | 9 |
| 10 // A surface ID is composed of two parts: a FrameSinkID, and a LocalFrameId. | 10 // A surface ID is composed of two parts: a FrameSinkID, and a LocalSurfaceId. |
| 11 // The FrameSinkId uniquely identifies the FrameSink associated with the | 11 // The FrameSinkId uniquely identifies the FrameSink associated with the |
| 12 // surface. This corresponds to a SurfaceFactory in the display compositor | 12 // surface. This corresponds to a SurfaceFactory in the display compositor |
| 13 // service. The FrameSinkId is partially allocated by the display compositor | 13 // service. The FrameSinkId is partially allocated by the display compositor |
| 14 // and partially allocated by the frame source. | 14 // and partially allocated by the frame source. |
| 15 // The LocalFrameId are allocated by the client using any scheme | 15 // The LocalSurfaceId are allocated by the client using any scheme |
| 16 // that avoids duplicates and makes IDs unguessable respectively. | 16 // that avoids duplicates and makes IDs unguessable respectively. |
| 17 struct SurfaceId { | 17 struct SurfaceId { |
| 18 FrameSinkId frame_sink_id; | 18 FrameSinkId frame_sink_id; |
| 19 LocalFrameId local_frame_id; | 19 LocalSurfaceId local_surface_id; |
| 20 }; | 20 }; |
| OLD | NEW |