| Index: webkit/compositor_bindings/web_layer_tree_view_impl.cc
|
| diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.cc b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
|
| index dec9c015414a7eb62bca02c926d0113a4ebca6be..cca8a0431e87e0c320f201236e4f292b49b5d626 100644
|
| --- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc
|
| +++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
|
| @@ -151,13 +151,6 @@ void WebLayerTreeViewImpl::composite()
|
| m_layerTreeHost->composite();
|
| }
|
|
|
| -// TODO(ajuma): Remove this after WebKit bug 106594 (which switches to using the 2-argument version) lands.
|
| -void WebLayerTreeViewImpl::updateAnimations(double frameBeginTimeSeconds)
|
| -{
|
| - base::TimeTicks frameBeginTime = base::TimeTicks::FromInternalValue(frameBeginTimeSeconds * base::Time::kMicrosecondsPerSecond);
|
| - m_layerTreeHost->updateAnimations(frameBeginTime, base::Time::Now());
|
| -}
|
| -
|
| void WebLayerTreeViewImpl::updateAnimations(double monotonicFrameBeginTimeSeconds, double wallClockFrameBeginTimeSeconds)
|
| {
|
| base::TimeTicks monotonicFrameBeginTime = base::TimeTicks::FromInternalValue(monotonicFrameBeginTimeSeconds * base::Time::kMicrosecondsPerSecond);
|
| @@ -185,6 +178,12 @@ void WebLayerTreeViewImpl::setDeferCommits(bool deferCommits)
|
| m_layerTreeHost->setDeferCommits(deferCommits);
|
| }
|
|
|
| +void WebLayerTreeViewImpl::registerForAnimations(WebLayer* layer)
|
| +{
|
| + cc::Layer* ccLayer = static_cast<WebLayerImpl*>(layer)->layer();
|
| + ccLayer->layerAnimationController()->setAnimationRegistrar(m_layerTreeHost->animationRegistrar());
|
| +}
|
| +
|
| void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const
|
| {
|
| m_layerTreeHost->renderingStats(
|
|
|