qcom/display: Update HALs
- Update the display HAL from Code Aurora Forum
- Add updated overlay library
- Enable HWC with basic video going through overlay
- Cleanup some files
Change-Id: I65c687c51be458cee71213c79e03eeda962d9086
diff --git a/libgralloc/memalloc.h b/libgralloc/memalloc.h
index 13a54e7..349078d 100644
--- a/libgralloc/memalloc.h
+++ b/libgralloc/memalloc.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
+ * Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -35,50 +35,50 @@
namespace gralloc {
- struct alloc_data {
- void *base;
- int fd;
- int offset;
- size_t size;
- size_t align;
- unsigned int pHandle;
- bool uncached;
- unsigned int flags;
- int allocType;
+struct alloc_data {
+ void *base;
+ int fd;
+ int offset;
+ size_t size;
+ size_t align;
+ unsigned int pHandle;
+ bool uncached;
+ unsigned int flags;
+ int allocType;
+};
+
+class IMemAlloc : public android::RefBase {
+
+ public:
+ // Allocate buffer - fill in the alloc_data
+ // structure and pass it in. Mapped address
+ // and fd are returned in the alloc_data struct
+ virtual int alloc_buffer(alloc_data& data) = 0;
+
+ // Free buffer
+ virtual int free_buffer(void *base, size_t size,
+ int offset, int fd) = 0;
+
+ // Map buffer
+ virtual int map_buffer(void **pBase, size_t size,
+ int offset, int fd) = 0;
+
+ // Unmap buffer
+ virtual int unmap_buffer(void *base, size_t size,
+ int offset) = 0;
+
+ // Clean and invalidate
+ virtual int clean_buffer(void *base, size_t size,
+ int offset, int fd) = 0;
+
+ // Destructor
+ virtual ~IMemAlloc() {};
+
+ enum {
+ FD_INIT = -1,
};
- class IMemAlloc : public android::RefBase {
-
- public:
- // Allocate buffer - fill in the alloc_data
- // structure and pass it in. Mapped address
- // and fd are returned in the alloc_data struct
- virtual int alloc_buffer(alloc_data& data) = 0;
-
- // Free buffer
- virtual int free_buffer(void *base, size_t size,
- int offset, int fd) = 0;
-
- // Map buffer
- virtual int map_buffer(void **pBase, size_t size,
- int offset, int fd) = 0;
-
- // Unmap buffer
- virtual int unmap_buffer(void *base, size_t size,
- int offset) = 0;
-
- // Clean and invalidate
- virtual int clean_buffer(void *base, size_t size,
- int offset, int fd) = 0;
-
- // Destructor
- virtual ~IMemAlloc() {};
-
- enum {
- FD_INIT = -1,
- };
-
- };
+};
} // end gralloc namespace
#endif // GRALLOC_MEMALLOC_H