Bug 1502638 - Make use of the position passed in to AndroidVelocityTracker::StartTracking(). r=kats a=jcristau
authorBotond Ballo <botond@mozilla.com>
Fri, 02 Nov 2018 17:54:47 +0000
changeset 501076 ab7f1db24dde0647fbe476237b6684a5201f07cb
parent 501075 02f3ab06c2eb5abc97b49c12d3702d50c439526f
child 501077 035ea5732599008612558e023ba5e84d43e43fd9
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats, jcristau
bugs1502638
milestone64.0
Bug 1502638 - Make use of the position passed in to AndroidVelocityTracker::StartTracking(). r=kats a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D10448
gfx/layers/apz/src/AndroidVelocityTracker.cpp
--- a/gfx/layers/apz/src/AndroidVelocityTracker.cpp
+++ b/gfx/layers/apz/src/AndroidVelocityTracker.cpp
@@ -36,16 +36,17 @@ AndroidVelocityTracker::AndroidVelocityT
   , mAdditionalDelta(0)
 {
 }
 
 void
 AndroidVelocityTracker::StartTracking(ParentLayerCoord aPos, uint32_t aTimestampMs)
 {
   Clear();
+  mHistory.AppendElement(std::make_pair(aTimestampMs, aPos));
   mLastEventTime = aTimestampMs;
 }
 
 Maybe<float>
 AndroidVelocityTracker::AddPosition(ParentLayerCoord aPos,
                                     uint32_t aTimestampMs,
                                     bool aIsAxisLocked)
 {