Files
lizheng 9fb90ad243 support gpu & updata hdi
Change-Id: I3fa23f1e4089543d115df2b683cd34d1bbef9ff7
Signed-off-by: lizheng <lizheng2@huawei.com>
2021-11-27 10:46:56 +08:00

60 lines
2.3 KiB
C

/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef LIBWESTON_TDE_RENDER_PART_H
#define LIBWESTON_TDE_RENDER_PART_H
#ifdef __cplusplus
extern "C" {
#endif
#include "pixman-renderer-protected.h"
// hook return 0: success, other: failure
int tde_renderer_alloc_hook(struct pixman_renderer *renderer, struct weston_compositor *ec);
int tde_renderer_free_hook(struct pixman_renderer *renderer);
int tde_output_state_alloc_hook(struct pixman_output_state *state);
int tde_output_state_init_hook(struct pixman_output_state *state);
int tde_output_state_free_hook(struct pixman_output_state *state);
int tde_surface_state_alloc_hook(struct pixman_surface_state *state);
int tde_surface_state_free_hook(struct pixman_surface_state *state);
int tde_render_attach_hook(struct weston_surface *es, struct weston_buffer *buffer);
int tde_repaint_region_hook(struct weston_view *ev, struct weston_output *output,
pixman_region32_t *buffer_region,
pixman_region32_t *repaint_output);
void tde_repaint_finish_hook(struct weston_output *output);
int tde_unref_image_hook(struct pixman_surface_state *ps);
#ifdef __cplusplus
}
#endif
#endif // LIBWESTON_TDE_RENDER_PART_H