gralloc: Use getpagesize() in place of PAGE_SIZE.

- Use getpagesize() function from unistd.h to get page size
  in place of PAGE_SIZE macro.
- Make isDisableUBWCForEncoder declaration pure virtual.

Change-Id: I89405e999e4683874f4daa32188181e688a19812
CRs-Fixed: 1069351
diff --git a/libgralloc/gralloc_priv.h b/libgralloc/gralloc_priv.h
index 0c02355..732367d 100644
--- a/libgralloc/gralloc_priv.h
+++ b/libgralloc/gralloc_priv.h
@@ -30,8 +30,8 @@
 
 #include <cutils/log.h>
 
-#define ROUND_UP_PAGESIZE(x) ( (((unsigned long)(x)) + PAGE_SIZE-1)  & \
-                               (~(PAGE_SIZE-1)) )
+#define ROUND_UP_PAGESIZE(x) (unsigned int)( ((x) + getpagesize()-1)  & \
+                                             (~(getpagesize()-1)) )
 
 /* Gralloc usage bits indicating the type of allocation that should be used */
 /* SYSTEM heap comes from kernel vmalloc (ION_SYSTEM_HEAP_ID)