Bug 1129210. Always enable vsync when touch events occur. r=kats
authorMason Chang <mchang@mozilla.com>
Wed, 04 Feb 2015 22:10:56 -0800
changeset 227542 ab5183734da9394a61be4ff9dd8f47df184b8646
parent 227541 107b2a3a1655e74105c0a50131f844d7c983288d
child 227543 fe716556ae356986a93ffcb113c10470efb5f5c9
push id28233
push usercbook@mozilla.com
push dateThu, 05 Feb 2015 13:22:30 +0000
treeherdermozilla-central@d2df44094059 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1129210
milestone38.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 1129210. Always enable vsync when touch events occur. r=kats
widget/gonk/GeckoTouchDispatcher.cpp
--- a/widget/gonk/GeckoTouchDispatcher.cpp
+++ b/widget/gonk/GeckoTouchDispatcher.cpp
@@ -148,17 +148,17 @@ GeckoTouchDispatcher::NotifyVsync(TimeSt
 
   return haveTouchData;
 }
 
 // Touch data timestamps are in milliseconds, aEventTime is in nanoseconds
 void
 GeckoTouchDispatcher::NotifyTouch(MultiTouchInput& aTouch, TimeStamp aEventTime)
 {
-  if (aTouch.mType == MultiTouchInput::MULTITOUCH_START && mCompositorVsyncObserver) {
+  if (mCompositorVsyncObserver) {
     mCompositorVsyncObserver->SetNeedsComposite(true);
   }
 
   if (aTouch.mType == MultiTouchInput::MULTITOUCH_MOVE) {
     MutexAutoLock lock(mTouchQueueLock);
     if (mResamplingEnabled) {
       mTouchMoveEvents.push_back(aTouch);
       return;