sdm: hwc2: Handle Tranform::None
Remove default and handle Transform::None in
SetLayerTransform
Change-Id: I69c23c61a3761b1475a4b56defb9b6da4b71c61a
Crs-fixed: 1026496
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp
index 83c9a16..b9f7a6e 100644
--- a/sdm/libs/hwc2/hwc_layers.cpp
+++ b/sdm/libs/hwc2/hwc_layers.cpp
@@ -229,8 +229,9 @@
layer_transform.rotation = 90.0f;
layer_transform.flip_vertical = true;
break;
- default:
- return HWC2::Error::BadParameter;
+ case HWC2::Transform::None:
+ // do nothing
+ break;
}
if (layer_->transform != layer_transform) {