Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Unified Diff: webkit/compositor_bindings/web_layer_impl.cc

Issue 12517003: cc: Chromify the Animation and LayerAnimationController classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/compositor_bindings/web_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_layer_impl.cc b/webkit/compositor_bindings/web_layer_impl.cc
index c1c76663bbc72698f96384f16c8b72191342989d..fd436f9e01532e40dbcb4a898ab95701b7301603 100644
--- a/webkit/compositor_bindings/web_layer_impl.cc
+++ b/webkit/compositor_bindings/web_layer_impl.cc
@@ -178,25 +178,24 @@ void WebLayerImpl::setAnimationDelegate(WebAnimationDelegate* delegate) {
}
bool WebLayerImpl::addAnimation(WebAnimation* animation) {
- return layer_->addAnimation(static_cast<WebAnimationImpl*>(animation)
- ->cloneToAnimation());
+ return layer_->AddAnimation(
+ static_cast<WebAnimationImpl*>(animation)->cloneToAnimation());
}
void WebLayerImpl::removeAnimation(int animation_id) {
- layer_->removeAnimation(animation_id);
+ layer_->RemoveAnimation(animation_id);
}
void WebLayerImpl::removeAnimation(
int animation_id,
WebAnimation::TargetProperty target_property) {
- layer_->layerAnimationController()
- ->removeAnimation(
- animation_id,
- static_cast<Animation::TargetProperty>(target_property));
+ layer_->layerAnimationController()->RemoveAnimation(
+ animation_id,
+ static_cast<Animation::TargetProperty>(target_property));
}
void WebLayerImpl::pauseAnimation(int animation_id, double time_offset) {
- layer_->pauseAnimation(animation_id, time_offset);
+ layer_->PauseAnimation(animation_id, time_offset);
}
void WebLayerImpl::suspendAnimations(double monotonic_time) {

Powered by Google App Engine
This is Rietveld 408576698