gitlab-ci: enable sanitizers for the meson builds
[mesa-waffle.git] / src / waffle / android / droid_display.h
blobce5df09103ed45b353c922234f9871ef1e4ff3f9
1 // SPDX-FileCopyrightText: Copyright 2012 Intel Corporation
2 // SPDX-License-Identifier: BSD-2-Clause
4 #pragma once
6 #include <stdbool.h>
7 #include <stdint.h>
9 #include "wegl_display.h"
11 struct droid_surfaceflinger_container;
13 struct droid_display {
14 /// Used by droid_surfaceflinger.cpp.
15 struct droid_surfaceflinger_container *pSFContainer;
16 struct wegl_display wegl;
19 static inline struct droid_display*
20 droid_display(struct wcore_display *wc_self)
22 if (wc_self) {
23 struct wegl_display *wegl_self = container_of(wc_self, struct wegl_display, wcore);
24 return container_of(wegl_self, struct droid_display, wegl);
26 else {
27 return NULL;
31 struct wcore_display*
32 droid_display_connect(struct wcore_platform *wc_plat,
33 const char *name);
35 bool
36 droid_display_disconnect(struct wcore_display *wc_self);