blob: 70240903330ca4449aec9474e0d8bb707cac2c1e [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module cc.mojom;
import "cc/ipc/frame_sink_id.mojom";
import "cc/ipc/local_surface_id.mojom";
// A surface ID is composed of two parts: a FrameSinkID, and a LocalSurfaceId.
// The FrameSinkId uniquely identifies the FrameSink associated with the
// surface. This corresponds to a SurfaceFactory in the display compositor
// service. The FrameSinkId is partially allocated by the display compositor
// and partially allocated by the frame source.
// The LocalSurfaceId are allocated by the client using any scheme
// that avoids duplicates and makes IDs unguessable respectively.
struct SurfaceId {
FrameSinkId frame_sink_id;
LocalSurfaceId local_surface_id;
};