libgralloc: disable UBWC for video encoder usecase
check for target specific system property "video.disable.ubwc"
to disable UBWC for the targets where encoder doesn't
support UBWC color-format.
Change-Id: Ifd050c3b44768870fc74a16e941e8286e3ea0c13
diff --git a/libgralloc/alloc_controller.h b/libgralloc/alloc_controller.h
index 919e572..8216b0c 100644
--- a/libgralloc/alloc_controller.h
+++ b/libgralloc/alloc_controller.h
@@ -56,6 +56,8 @@
virtual IMemAlloc* getAllocator(int flags) = 0;
+ virtual bool isDisableUBWCForEncoder();
+
virtual ~IAllocController() {};
static IAllocController* getInstance(void);
@@ -72,10 +74,15 @@
virtual IMemAlloc* getAllocator(int flags);
+ virtual bool isDisableUBWCForEncoder() {
+ return mDisableUBWCForEncode;
+ }
+
IonController();
private:
IonAlloc* mIonAlloc;
+ bool mDisableUBWCForEncode;
void allocateIonMem();
};