drm_hwcomposer: Remove unused cursor_{x,y}_ and layer_color_ variables
Make it clear that drm_hwcomposer doesn't handle these values.
Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
diff --git a/DrmHwcTwo.cpp b/DrmHwcTwo.cpp
index 65f6fac..e4c8b1f 100644
--- a/DrmHwcTwo.cpp
+++ b/DrmHwcTwo.cpp
@@ -1045,10 +1045,9 @@
#endif /* PLATFORM_SDK_VERSION > 27 */
-HWC2::Error DrmHwcTwo::HwcLayer::SetCursorPosition(int32_t x, int32_t y) {
+HWC2::Error DrmHwcTwo::HwcLayer::SetCursorPosition(int32_t /*x*/,
+ int32_t /*y*/) {
supported(__func__);
- cursor_x_ = x;
- cursor_y_ = y;
return HWC2::Error::None;
}
@@ -1084,10 +1083,9 @@
return HWC2::Error::None;
}
-HWC2::Error DrmHwcTwo::HwcLayer::SetLayerColor(hwc_color_t color) {
+HWC2::Error DrmHwcTwo::HwcLayer::SetLayerColor(hwc_color_t /*color*/) {
// TODO(nobody): Put to client composition here?
supported(__func__);
- layer_color_ = color;
return HWC2::Error::None;
}
diff --git a/DrmHwcTwo.h b/DrmHwcTwo.h
index bd45b96..2055b7b 100644
--- a/DrmHwcTwo.h
+++ b/DrmHwcTwo.h
@@ -102,10 +102,10 @@
}
// Layer hooks
- HWC2::Error SetCursorPosition(int32_t x, int32_t y);
+ HWC2::Error SetCursorPosition(int32_t /*x*/, int32_t /*y*/);
HWC2::Error SetLayerBlendMode(int32_t mode);
HWC2::Error SetLayerBuffer(buffer_handle_t buffer, int32_t acquire_fence);
- HWC2::Error SetLayerColor(hwc_color_t color);
+ HWC2::Error SetLayerColor(hwc_color_t /*color*/);
HWC2::Error SetLayerCompositionType(int32_t type);
HWC2::Error SetLayerDataspace(int32_t dataspace);
HWC2::Error SetLayerDisplayFrame(hwc_rect_t frame);
@@ -137,9 +137,6 @@
hwc_rect_t display_frame_;
float alpha_ = 1.0f;
hwc_frect_t source_crop_;
- int32_t cursor_x_;
- int32_t cursor_y_;
- hwc_color_t layer_color_;
DrmHwcTransform transform_ = DrmHwcTransform::kIdentity;
uint32_t z_order_ = 0;
DrmHwcBlending blending_ = DrmHwcBlending::kNone;