blob: a3c6bc143055d29f1ec56b82d19497018a37386e [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_frame_id.mojom";
// A surface ID is composed of two parts: a FrameSinkID, and a LocalFrameId.
// 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 LocalFrameId are allocated by the client using any scheme
// that avoids duplicates and makes IDs unguessable respectively.
struct SurfaceId {
FrameSinkId frame_sink_id;
LocalFrameId local_frame_id;
};