forked from vsrinivas/fuchsia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframebuffer.fidl
23 lines (20 loc) · 897 Bytes
/
framebuffer.fidl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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(fxbug.dev/32803): 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);
};