diff options
Diffstat (limited to 'msm8909/libgralloc/alloc_controller.h')
-rw-r--r-- | msm8909/libgralloc/alloc_controller.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/msm8909/libgralloc/alloc_controller.h b/msm8909/libgralloc/alloc_controller.h index f0b8ed9a..45977e2b 100644 --- a/msm8909/libgralloc/alloc_controller.h +++ b/msm8909/libgralloc/alloc_controller.h @@ -29,6 +29,17 @@ #ifndef GRALLOC_ALLOCCONTROLLER_H #define GRALLOC_ALLOCCONTROLLER_H +#define SZ_2M 0x200000 +#define SZ_1M 0x100000 +#define SZ_4K 0x1000 + +/* TODO: Move this to the common makefile */ +#ifdef MASTER_SIDE_CP +#define SECURE_ALIGN SZ_4K +#else +#define SECURE_ALIGN SZ_1M +#endif + namespace gralloc { struct alloc_data; @@ -45,6 +56,8 @@ class IAllocController { virtual IMemAlloc* getAllocator(int flags) = 0; + virtual bool isDisableUBWCForEncoder() = 0; + virtual ~IAllocController() {}; static IAllocController* getInstance(void); @@ -61,10 +74,15 @@ class IonController : public IAllocController { virtual IMemAlloc* getAllocator(int flags); + virtual bool isDisableUBWCForEncoder() { + return mDisableUBWCForEncode; + } + IonController(); private: IonAlloc* mIonAlloc; + bool mDisableUBWCForEncode; void allocateIonMem(); }; |