gralloc: Make all secure heaps and flags backward compatible
Make all content protection and secure display heaps and flags
backward compatible. Honor the different requirements for master
side and slave side content protection and secure display.
Change-Id: I21a5170f2ae7ffd9c447e8af795e3665e673248f
diff --git a/libgralloc/gpu.cpp b/libgralloc/gpu.cpp
index 53363bb..0697047 100644
--- a/libgralloc/gpu.cpp
+++ b/libgralloc/gpu.cpp
@@ -34,7 +34,7 @@
#define SZ_1M 0x100000
#define SZ_4K 0x1000
-#ifdef ION_FLAG_CP_PIXEL
+#ifdef MASTER_SIDE_CP
#define SECURE_ALIGN SZ_4K
#else
#define SECURE_ALIGN SZ_1M