| // 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(resource struct { | |
| resource handle:RESOURCE; | |
| }) -> (struct { | |
| status status; | |
| format uint32; | |
| width uint32; | |
| height uint32; | |
| stride uint32; | |
| }); | |
| // 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(resource struct { | |
| resource handle:RESOURCE; | |
| vmo handle:VMO; | |
| len uint32; | |
| format uint32; | |
| width uint32; | |
| height uint32; | |
| stride uint32; | |
| }) -> (struct { | |
| status status; | |
| }); | |
| }; |