Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-hwcomposer: Commit

hardware/intel/hwcomposer


Commit MetaInfo

Revisione501508da0dc18dc2d88a783da7038503e75ee58 (tree)
Time2013-05-16 21:30:31
AuthorMarius Predut <marius-ionut.predut@inte...>
CommiterMarius Predut

Log Message

hwcomposer: correct errors hadling stuff

-when the driver is open(hwc_device_open) set output data only when all potential

errors was passed.

-fix compiler warning messages.
-remove duplicated inclusion.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Change-Id: Ib7c1ad060a314f3235f7153ca112a5da58f760f3
Signed-off-by: Marius Predut <marius-ionut.predut@intel.com>

Change Summary

Incremental Difference

--- a/hwcomposer.cpp
+++ b/hwcomposer.cpp
@@ -32,7 +32,7 @@
3232
3333 #include <EGL/egl.h>
3434
35-#define HWC_REMOVE_DEPRECATED_VERSIONS 1
35+#define LOG_TAG "hwcomposer"
3636
3737 #include <Condition.h>
3838 #include <Mutex.h>
@@ -57,6 +57,8 @@ hwc_module_t HAL_MODULE_INFO_SYM = {
5757 name: "Intel hwcomposer module",
5858 author: "Intel",
5959 methods: &hwc_module_methods,
60+ dso: NULL,
61+ {0}
6062 }
6163 };
6264
@@ -251,10 +253,14 @@ static int hwc_device_open(const struct hw_module_t* module, const char* name,
251253 dev->device.registerProcs = hwc_register_procs;
252254 dev->device.eventControl = hwc_event_control;
253255
254- *device = &dev->device.common;
255-
256256 int err = hw_get_module(GRALLOC_HARDWARE_MODULE_ID,
257257 (const hw_module_t **)&dev->gralloc_module);
258+ if (err != 0) {
259+ ALOGE("hwc_device_open failed!\n");
260+ return -errno;
261+ }
262+
263+ *device = &dev->device.common;
258264
259265 dev->vsync_thread = new vsync_worker(*dev);
260266
Show on old repository browser