Lines Matching refs:base
50 aBuffer base; member
57 aWindow base; member
113 static void cnw_inc_ref(aBase *base) { TRACE("buf %p ref++\n",base); } in cnw_inc_ref() argument
114 static void cnw_dec_ref(aBase *base) { TRACE("buf %p ref--\n",base); } in cnw_dec_ref() argument
116 static inline CNativeWindow *from_base(aWindow *base) { in from_base() argument
117 return (CNativeWindow *) base; in from_base()
120 static inline CNativeWindow *from_base_const(const aWindow *base) { in from_base_const() argument
121 return (CNativeWindow *) base; in from_base_const()
124 static int cnw_set_swap_interval(aWindow *base, int interval) { in cnw_set_swap_interval() argument
125 CNativeWindow *win = from_base(base); in cnw_set_swap_interval()
131 static int cnw_dequeue_buffer1(aWindow *base, aBuffer **buf, int *ffd) { in cnw_dequeue_buffer1() argument
132 CNativeWindow *win = from_base(base); in cnw_dequeue_buffer1()
142 *buf = &cnb->base; in cnw_dequeue_buffer1()
150 static int cnw_lock_buffer0(aWindow *base, aBuffer *buffer) { in cnw_lock_buffer0() argument
230 static int cnw_queue_buffer1(aWindow *base, aBuffer *buffer, int ffd) { in cnw_queue_buffer1() argument
231 CNativeWindow *win = from_base(base); in cnw_queue_buffer1()
252 static int cnw_cancel_buffer1(aWindow *base, aBuffer *buf, int ffd) { in cnw_cancel_buffer1() argument
253 CNativeWindow *win = from_base(base); in cnw_cancel_buffer1()
263 static int cnw_dequeue_buffer0(aWindow *base, aBuffer **buf) { in cnw_dequeue_buffer0() argument
266 r = cnw_dequeue_buffer1(base, buf, &ffd); in cnw_dequeue_buffer0()
272 static int cnw_queue_buffer0(aWindow *base, aBuffer *buf) { in cnw_queue_buffer0() argument
273 return cnw_queue_buffer1(base, buf, -1); in cnw_queue_buffer0()
276 static int cnw_cancel_buffer0(aWindow *base, aBuffer *buf) { in cnw_cancel_buffer0() argument
277 return cnw_cancel_buffer1(base, buf, -1); in cnw_cancel_buffer0()
280 static int cnw_query(const aWindow *base, int what, int *value) { in cnw_query() argument
281 CNativeWindow *win = from_base_const(base); in cnw_query()
313 static int cnw_perform(aWindow *base, int op, ...) { in cnw_perform() argument
314 CNativeWindow *win = from_base(base); in cnw_perform()
436 buf = &cnb->base; in cnw_alloc()
522 *((float*) &win->base.xdpi) = win->xdpi; in cnw_init()
523 *((float*) &win->base.ydpi) = win->ydpi; in cnw_init()
524 *((int*) &win->base.minSwapInterval) = 1; in cnw_init()
525 *((int*) &win->base.maxSwapInterval) = 1; in cnw_init()
527 win->base.common.magic = ANDROID_NATIVE_WINDOW_MAGIC; in cnw_init()
528 win->base.common.version = sizeof(aWindow); in cnw_init()
529 win->base.common.incRef = cnw_inc_ref; in cnw_init()
530 win->base.common.decRef = cnw_dec_ref; in cnw_init()
532 win->base.setSwapInterval = cnw_set_swap_interval; in cnw_init()
533 win->base.dequeueBuffer_DEPRECATED = cnw_dequeue_buffer0; in cnw_init()
534 win->base.lockBuffer_DEPRECATED = cnw_lock_buffer0; in cnw_init()
535 win->base.queueBuffer_DEPRECATED = cnw_queue_buffer0; in cnw_init()
536 win->base.query = cnw_query; in cnw_init()
537 win->base.perform = cnw_perform; in cnw_init()
538 win->base.cancelBuffer_DEPRECATED = cnw_cancel_buffer0; in cnw_init()
539 win->base.dequeueBuffer = cnw_dequeue_buffer1; in cnw_init()
540 win->base.queueBuffer = cnw_queue_buffer1; in cnw_init()
541 win->base.cancelBuffer = cnw_cancel_buffer1; in cnw_init()