summaryrefslogtreecommitdiff
path: root/libs/input/TouchVideoFrame.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2023-03-10 17:15:07 +0000
committer Harry Cutts <hcutts@google.com> 2023-03-13 11:47:54 +0000
commit82c791cdbb1101cf2c8b19be537368f28e2b1a0a (patch)
tree0a83163b32b1d0e6f79bd4ee7d0367d9766d3916 /libs/input/TouchVideoFrame.cpp
parent849d782248b8c24fb538c84defc5b5d8f2a48bac (diff)
libs/input: make parameter comment style consistent
The Google C++ style guide [0] suggests that parameter name comments should be of the form `/*paramName=*/value`. This potentially allows tooling to check that the parameter names are correct, too. [0]: https://google.github.io/styleguide/cppguide.html#Function_Argument_Comments Bug: 245989146 Test: atest inputflinger_tests Change-Id: Id5207b5a621c9a1ac0a46a8b2ff2bbf9aa43e726
Diffstat (limited to 'libs/input/TouchVideoFrame.cpp')
-rw-r--r--libs/input/TouchVideoFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/input/TouchVideoFrame.cpp b/libs/input/TouchVideoFrame.cpp
index c9393f4451..6d7d5614c6 100644
--- a/libs/input/TouchVideoFrame.cpp
+++ b/libs/input/TouchVideoFrame.cpp
@@ -43,13 +43,13 @@ const struct timeval& TouchVideoFrame::getTimestamp() const { return mTimestamp;
void TouchVideoFrame::rotate(ui::Rotation orientation) {
switch (orientation) {
case ui::ROTATION_90:
- rotateQuarterTurn(false /*clockwise*/);
+ rotateQuarterTurn(/*clockwise=*/false);
break;
case ui::ROTATION_180:
rotate180();
break;
case ui::ROTATION_270:
- rotateQuarterTurn(true /*clockwise*/);
+ rotateQuarterTurn(/*clockwise=*/true);
break;
case ui::ROTATION_0:
// No need to rotate if there's no rotation.