blob: c276b81279bb7d998ad3babd2ae639364bafba0a [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@available(added=7, deprecated=13)
library fuchsia.ui.scenic.internal;
using fuchsia.mem;
// A snapshot result contains a buffer containing the snapshotted
// data as well as a boolean to check whether the snapshot of that
// compositor was successful or not.
type SnapshotResult = resource struct {
success bool;
buffer fuchsia.mem.Buffer;
};
/// Defines an internal interface to take snapshots of the entire scene graph. This
/// is only to be used by trusted clients.
@discoverable
closed protocol Snapshot {
/// Takes a snapshot of the entire scene-graph, starting with the first
/// compositor found. A separate buffer is returned for each compositor,
/// with an empty array being returned if no compositors were found at all.
strict TakeSnapshot() -> (resource struct {
snapshots vector<SnapshotResult>;
});
};