hwc2: Do not treat color mode errors as fatal at init
CRs-Fixed: 2051917
Change-Id: I56926f320eb7719a22475793322d19244dd5d4d5
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp
index f3404a3..d78207b 100644
--- a/sdm/libs/hwc2/hwc_display_primary.cpp
+++ b/sdm/libs/hwc2/hwc_display_primary.cpp
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2014 - 2016, The Linux Foundation. All rights reserved.
+* Copyright (c) 2014 - 2017, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -112,8 +112,9 @@
return status;
}
color_mode_ = new HWCColorMode(display_intf_);
+ color_mode_->Init();
- return INT(color_mode_->Init());
+ return status;
}
void HWCDisplayPrimary::ProcessBootAnimCompleted() {