Path: blob/main_old/src/common/fuchsia_egl/fuchsia_egl.h
1693 views
// Copyright 2019 The Fuchsia Authors. All rights reserved.1// Use of this source code is governed by a BSD-style license that can be2// found in the LICENSE file.34#ifndef FUCHSIA_EGL_H_5#define FUCHSIA_EGL_H_67#include <inttypes.h>8#include <zircon/types.h>910#ifdef __cplusplus11extern "C" {12#endif1314#if !defined(FUCHSIA_EGL_EXPORT)15# define FUCHSIA_EGL_EXPORT __attribute__((__visibility__("default")))16#endif1718typedef struct fuchsia_egl_window fuchsia_egl_window;1920FUCHSIA_EGL_EXPORT21fuchsia_egl_window *fuchsia_egl_window_create(zx_handle_t image_pipe_handle,22int32_t width,23int32_t height);2425FUCHSIA_EGL_EXPORT26void fuchsia_egl_window_destroy(fuchsia_egl_window *egl_window);2728FUCHSIA_EGL_EXPORT29void fuchsia_egl_window_resize(fuchsia_egl_window *egl_window, int32_t width, int32_t height);3031FUCHSIA_EGL_EXPORT32int32_t fuchsia_egl_window_get_width(fuchsia_egl_window *egl_window);3334FUCHSIA_EGL_EXPORT35int32_t fuchsia_egl_window_get_height(fuchsia_egl_window *egl_window);3637#ifdef __cplusplus38}39#endif4041#endif // FUCHSIA_EGL_H_424344