diff options
author | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-07 09:36:49 +0000 |
---|---|---|
committer | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-07 09:36:49 +0000 |
commit | e197af305cff172d061e6fa30cb41a353c43d703 (patch) | |
tree | a47d1a89ac03b444133902e947217ccdb3a92dac /cc/test/fake_layer_tree_host_client.h | |
parent | 3efc08f261c871a255d87bd126e390427333f4c7 (diff) | |
download | chromium_src-e197af305cff172d061e6fa30cb41a353c43d703.zip chromium_src-e197af305cff172d061e6fa30cb41a353c43d703.tar.gz chromium_src-e197af305cff172d061e6fa30cb41a353c43d703.tar.bz2 |
Make LayerTreeHostClient::Animate take TimeTicks instead of double
This makes LayerTreeHostClient::Animate take a TimeTicks instead of a
double, moving the conversion to double from the caller of Animate to
wherever doubles are actually needed.
This avoids precision loss caused by converting from TimeTicks to
double and back again when TimeTicks are actually needed (as in
LayerTreeHostClientForTesting::Animate) fixing the suspected cause
of flakiness in LayerTreeHostAnimationTestFrozenAnimationTickTime.
R=danakj,jamesr
TBR=sky
BUG=341517
Review URL: https://codereview.chromium.org/153633006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_layer_tree_host_client.h')
-rw-r--r-- | cc/test/fake_layer_tree_host_client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/test/fake_layer_tree_host_client.h b/cc/test/fake_layer_tree_host_client.h index c497b26..65ca019 100644 --- a/cc/test/fake_layer_tree_host_client.h +++ b/cc/test/fake_layer_tree_host_client.h @@ -29,7 +29,7 @@ class FakeLayerTreeHostClient : public LayerTreeHostClient, // LayerTreeHostClient implementation. virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} virtual void DidBeginMainFrame() OVERRIDE {} - virtual void Animate(double frame_begin_time) OVERRIDE {} + virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE {} virtual void Layout() OVERRIDE {} virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, float page_scale) OVERRIDE {} |