Home | History | Annotate | Download | only in libgralloc

Lines Matching refs:device

52     framebuffer_device_t  device;
400 hw_device_t** device)
418 dev->device.common.tag = HARDWARE_DEVICE_TAG;
419 dev->device.common.version = 0;
420 dev->device.common.module = const_cast<hw_module_t*>(module);
421 dev->device.common.close = fb_close;
422 dev->device.setSwapInterval = fb_setSwapInterval;
423 dev->device.post = fb_post;
424 dev->device.setUpdateRect = 0;
425 dev->device.compositionComplete = fb_compositionComplete;
428 private_module_t* m = (private_module_t*)dev->device.common.module;
431 const_cast<uint32_t&>(dev->device.flags) = 0;
432 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
433 const_cast<uint32_t&>(dev->device.height) = m->info.yres;
434 const_cast<int&>(dev->device.stride) = stride;
435 const_cast<int&>(dev->device.format) = m->fbFormat;
436 const_cast<float&>(dev->device.xdpi) = m->xdpi;
437 const_cast<float&>(dev->device.ydpi) = m->ydpi;
438 const_cast<float&>(dev->device.fps) = m->fps;
439 const_cast<int&>(dev->device.minSwapInterval) =
441 const_cast<int&>(dev->device.maxSwapInterval) =
443 const_cast<int&>(dev->device.numFramebuffers) = m->numBuffers;
444 dev->device.setUpdateRect = 0;
446 *device = &dev->device.common;