diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2013-02-18 12:35:42 +0200 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2013-02-18 12:40:19 +0200 |
commit | 25d22516a6eb0991e1b1ec25d25785daf7100eff (patch) | |
tree | 06771d1f100ddc0a6be90899e0894aa730fc160e | |
parent | 63c42637e4fc2b6a5691197b62ee15708c20761e (diff) | |
download | external_drm_gralloc-25d22516a6eb0991e1b1ec25d25785daf7100eff.zip external_drm_gralloc-25d22516a6eb0991e1b1ec25d25785daf7100eff.tar.gz external_drm_gralloc-25d22516a6eb0991e1b1ec25d25785daf7100eff.tar.bz2 |
move drm_module_t to a hal private header
this way it can be accessed by hwcomposer module, which will
be required to implement jellybean mr1 hooks.
Change-Id: I68872243c30aee2d0eb76f38fe54efdea4862a66
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r-- | Android.mk | 4 | ||||
-rw-r--r-- | gralloc.c | 8 | ||||
-rw-r--r-- | gralloc_drm_priv.h | 7 |
3 files changed, 12 insertions, 7 deletions
@@ -151,6 +151,10 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := \ gralloc.c \ +LOCAL_C_INCLUDES := \ + external/drm \ + external/drm/include/drm \ + LOCAL_SHARED_LIBRARIES := \ libgralloc_drm \ liblog \ @@ -30,13 +30,7 @@ #include <errno.h> #include "gralloc_drm.h" - -struct drm_module_t { - gralloc_module_t base; - - pthread_mutex_t mutex; - struct gralloc_drm_t *drm; -}; +#include "gralloc_drm_priv.h" /* * Initialize the DRM device object, optionally with KMS. diff --git a/gralloc_drm_priv.h b/gralloc_drm_priv.h index eb2450d..66c6dbd 100644 --- a/gralloc_drm_priv.h +++ b/gralloc_drm_priv.h @@ -96,6 +96,13 @@ struct gralloc_drm_t { struct gralloc_drm_plane_t *planes; }; +struct drm_module_t { + gralloc_module_t base; + + pthread_mutex_t mutex; + struct gralloc_drm_t *drm; +}; + struct gralloc_drm_drv_t { /* destroy the driver */ void (*destroy)(struct gralloc_drm_drv_t *drv); |