Bug 1288720 - Add use of MULTITOUCH_SENTINEL on gonk r=kats
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 22 Jul 2016 14:49:08 +0200
changeset 346267 f2d7789c100cd3b807ca0edbaa0d4bec859a0646
parent 346266 a31e5c25c77773e26017df7ed4bc8355cd80c2af
child 346268 5c3eda5a65a4ec1068d616df01fa1d704220e333
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1288720
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1288720 - Add use of MULTITOUCH_SENTINEL on gonk r=kats MozReview-Commit-ID: FS5zcFDr5E4
widget/gonk/GeckoTouchDispatcher.cpp
--- a/widget/gonk/GeckoTouchDispatcher.cpp
+++ b/widget/gonk/GeckoTouchDispatcher.cpp
@@ -339,16 +339,19 @@ GeckoTouchDispatcher::DispatchTouchEvent
         break;
       case MultiTouchInput::MULTITOUCH_MOVE:
         touchAction = "Touch_Event_Move";
         break;
       case MultiTouchInput::MULTITOUCH_END:
       case MultiTouchInput::MULTITOUCH_CANCEL:
         touchAction = "Touch_Event_Up";
         break;
+      case MultiTouchInput::MULTITOUCH_SENTINEL:
+        MOZ_ASSERT_UNREACHABLE("Invalid MultTouchInput.");
+        break;
     }
 
     const ScreenIntPoint& touchPoint = aMultiTouch.mTouches[0].mScreenPoint;
     TouchDataPayload* payload = new TouchDataPayload(touchPoint);
     PROFILER_MARKER_PAYLOAD(touchAction, payload);
   }
 }