#include <EGL/egl.h>
-#define HWC_REMOVE_DEPRECATED_VERSIONS 1
+#define LOG_TAG "hwcomposer"
#include <Condition.h>
#include <Mutex.h>
name: "Intel hwcomposer module",
author: "Intel",
methods: &hwc_module_methods,
+ dso: NULL,
+ {0}
}
};
dev->device.registerProcs = hwc_register_procs;
dev->device.eventControl = hwc_event_control;
- *device = &dev->device.common;
-
int err = hw_get_module(GRALLOC_HARDWARE_MODULE_ID,
(const hw_module_t **)&dev->gralloc_module);
+ if (err != 0) {
+ ALOGE("hwc_device_open failed!\n");
+ return -errno;
+ }
+
+ *device = &dev->device.common;
dev->vsync_thread = new vsync_worker(*dev);