gralloc: Fix AOSP Clang Compiler error
Re-arrange the order of constructor as clang
runs with -Wreorder-ctor but SDClang runs
with -Wnoreorder-ctor.
Change-Id: I27c6f2bd178325d159af2e0fd18ba18453663ca3
diff --git a/gralloc/QtiGrallocPriv.h b/gralloc/QtiGrallocPriv.h
index b20be66..2882413 100644
--- a/gralloc/QtiGrallocPriv.h
+++ b/gralloc/QtiGrallocPriv.h
@@ -182,9 +182,9 @@
base_metadata(0),
gpuaddr(0),
reserved_size(0),
+ custom_content_md_reserved_size(0),
linear_size(0),
- ubwcp_format(format),
- custom_content_md_reserved_size(0) {
+ ubwcp_format(format) {
version = static_cast<int>(sizeof(native_handle));
numInts = NumInts();
numFds = kNumFds;
diff --git a/gralloc/gr_priv_handle.h b/gralloc/gr_priv_handle.h
index be1441b..d2c7dda 100644
--- a/gralloc/gr_priv_handle.h
+++ b/gralloc/gr_priv_handle.h
@@ -132,9 +132,9 @@
base_metadata(0),
gpuaddr(0),
reserved_size(0),
+ custom_content_md_reserved_size(0),
linear_size(0),
- ubwcp_format(format),
- custom_content_md_reserved_size(0) {
+ ubwcp_format(format) {
version = static_cast<int>(sizeof(native_handle));
numInts = NumInts();
numFds = kNumFds;