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

Side by Side Diff: webkit/renderer/compositor_bindings/web_animation_impl.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | webkit/renderer/compositor_bindings/web_animation_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/public/platform/WebAnimation.h" 9 #include "third_party/WebKit/public/platform/WebAnimation.h"
10 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h" 10 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h"
(...skipping 18 matching lines...) Expand all
29 virtual TargetProperty targetProperty() const; 29 virtual TargetProperty targetProperty() const;
30 virtual int iterations() const; 30 virtual int iterations() const;
31 virtual void setIterations(int iterations); 31 virtual void setIterations(int iterations);
32 virtual double startTime() const; 32 virtual double startTime() const;
33 virtual void setStartTime(double monotonic_time); 33 virtual void setStartTime(double monotonic_time);
34 virtual double timeOffset() const; 34 virtual double timeOffset() const;
35 virtual void setTimeOffset(double monotonic_time); 35 virtual void setTimeOffset(double monotonic_time);
36 virtual bool alternatesDirection() const; 36 virtual bool alternatesDirection() const;
37 virtual void setAlternatesDirection(bool alternates); 37 virtual void setAlternatesDirection(bool alternates);
38 38
39 scoped_ptr<cc::Animation> CloneToAnimation(); 39 scoped_ptr<cc::Animation> PassAnimation();
40 40
41 private: 41 private:
42 scoped_ptr<cc::Animation> animation_; 42 scoped_ptr<cc::Animation> animation_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(WebAnimationImpl); 44 DISALLOW_COPY_AND_ASSIGN(WebAnimationImpl);
45 }; 45 };
46 46
47 } // namespace webkit 47 } // namespace webkit
48 48
49 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ 49 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/renderer/compositor_bindings/web_animation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698