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

Unified Diff: webkit/renderer/compositor_bindings/web_animation_impl.cc

Issue 24165003: Don't clone WebAnimation in WebLayerImpl::addAnimation(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL to land Created 7 years, 2 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/renderer/compositor_bindings/web_animation_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_animation_impl.cc b/webkit/renderer/compositor_bindings/web_animation_impl.cc
index 9671f914972c5a318dc8ed87bac3354a70918c26..06a1468c2152a86d3ad93ab9a11cbce3a35719a5 100644
--- a/webkit/renderer/compositor_bindings/web_animation_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_animation_impl.cc
@@ -96,11 +96,9 @@ void WebAnimationImpl::setAlternatesDirection(bool alternates) {
animation_->set_alternates_direction(alternates);
}
-scoped_ptr<cc::Animation> WebAnimationImpl::CloneToAnimation() {
- scoped_ptr<cc::Animation> to_return(
- animation_->Clone(cc::Animation::NonControllingInstance));
- to_return->set_needs_synchronized_start_time(true);
- return to_return.Pass();
+scoped_ptr<cc::Animation> WebAnimationImpl::PassAnimation() {
+ animation_->set_needs_synchronized_start_time(true);
+ return animation_.Pass();
}
#define COMPILE_ASSERT_MATCHING_ENUMS(webkit_name, cc_name) \
« no previous file with comments | « webkit/renderer/compositor_bindings/web_animation_impl.h ('k') | webkit/renderer/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698