summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2023-08-17 09:10:02 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-09-20 15:58:40 +0000
commit601bf9e7f9328f8d455090a677d464ef5f96cfcf (patch)
tree3ad0984743e4f06cc47e64df08089381f62dc31c /src
parent72b72d9147203dec6efc2e5e15ef73dc1bde75d8 (diff)
downloadlibchrome-gestures-601bf9e7f9328f8d455090a677d464ef5f96cfcf.tar.gz
NonLinearityFilterInterpreter instrument event debug
BUG=b:286851905 TEST=USE="coverage" FEATURES="test noclean" emerge-brya chromeos-base/gesture Change-Id: Idec1bfca65e5966690b6ffdbdfa4151dda7e40a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/gestures/+/4789375 Reviewed-by: Harry Cutts <hcutts@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'src')
-rw-r--r--src/non_linearity_filter_interpreter.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/non_linearity_filter_interpreter.cc b/src/non_linearity_filter_interpreter.cc
index 658ba61..df0e765 100644
--- a/src/non_linearity_filter_interpreter.cc
+++ b/src/non_linearity_filter_interpreter.cc
@@ -112,6 +112,9 @@ abort_load:
void NonLinearityFilterInterpreter::SyncInterpretImpl(HardwareState& hwstate,
stime_t* timeout) {
+ const char name[] = "NonLinearityFilterInterpreter::SyncInterpretImpl";
+ LogHardwareStatePre(name, hwstate);
+
if (enabled_.val_ && err_.get() && hwstate.finger_cnt == 1) {
FingerState* finger = &(hwstate.fingers[0]);
if (finger) {
@@ -121,6 +124,7 @@ void NonLinearityFilterInterpreter::SyncInterpretImpl(HardwareState& hwstate,
finger->position_y -= error.y_error;
}
}
+ LogHardwareStatePost(name, hwstate);
next_->SyncInterpret(hwstate, timeout);
}