blob: 5f3ff5ecd827294498e7fb086c66948f6819f751 [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.
library zx;
[Transport = "Syscall"]
protocol framebuffer {
/// Rights: resource must have resource kind ZX_RSRC_KIND_ROOT.
framebuffer_get_info(handle<resource> resource)
-> (status status, uint32 format, uint32 width, uint32 height, uint32 stride);
// TODO(ZX-2967): vmo ZX_OBJ_TYPE_VMO; No rights required?
/// Rights: resource must have resource kind ZX_RSRC_KIND_ROOT.
framebuffer_set_range(handle<resource> resource,
handle<vmo> vmo,
uint32 len,
uint32 format,
uint32 width,
uint32 height,
uint32 stride)
-> (status status);
};