~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/egl/drivers/dri2/platform_android.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
static inline int
65
65
ANativeWindow_dequeueBuffer(struct ANativeWindow *window,
66
 
                            struct ANativeWindowBuffer **buffer,
67
 
                            int *fenceFd)
 
66
                            struct ANativeWindowBuffer **buffer, int *fenceFd)
68
67
{
69
68
   return window->dequeueBuffer(window, buffer, fenceFd);
70
69
}
71
70
 
72
71
static inline int
73
72
ANativeWindow_queueBuffer(struct ANativeWindow *window,
74
 
                          struct ANativeWindowBuffer *buffer,
75
 
                          int fenceFd)
 
73
                          struct ANativeWindowBuffer *buffer, int fenceFd)
76
74
{
77
75
   return window->queueBuffer(window, buffer, fenceFd);
78
76
}
79
77
 
80
78
static inline int
81
79
ANativeWindow_cancelBuffer(struct ANativeWindow *window,
82
 
                           struct ANativeWindowBuffer *buffer,
83
 
                           int fenceFd)
 
80
                           struct ANativeWindowBuffer *buffer, int fenceFd)
84
81
{
85
82
   return window->cancelBuffer(window, buffer, fenceFd);
86
83
}
106
103
 
107
104
static inline int
108
105
ANativeWindow_query(const struct ANativeWindow *window,
109
 
                    enum ANativeWindowQuery what,
110
 
                    int *value)
 
106
                    enum ANativeWindowQuery what, int *value)
111
107
{
112
108
   switch (what) {
113
109
   case ANATIVEWINDOW_QUERY_MIN_UNDEQUEUED_BUFFERS:
149
145
#else
150
146
static inline int
151
147
mapper_metadata_get_buffer_info(struct ANativeWindowBuffer *buf,
152
 
                                struct buffer_info *out_buf_info) {
 
148
                                struct buffer_info *out_buf_info)
 
149
{
153
150
   return -ENOTSUP;
154
151
}
155
152
#endif /* USE_IMAPPER4_METADATA_API */