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

Side by Side Diff: Source/core/frame/animation/AnimationController.h

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void cancelAnimations(RenderObject*); 52 void cancelAnimations(RenderObject*);
53 PassRefPtr<RenderStyle> updateAnimations(RenderObject&, RenderStyle& newStyl e); 53 PassRefPtr<RenderStyle> updateAnimations(RenderObject&, RenderStyle& newStyl e);
54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); 54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*);
55 55
56 // This is called when an accelerated animation or transition has actually s tarted to animate. 56 // This is called when an accelerated animation or transition has actually s tarted to animate.
57 void notifyAnimationStarted(RenderObject*, double startTime); 57 void notifyAnimationStarted(RenderObject*, double startTime);
58 58
59 void pauseAnimationsForTesting(double t); 59 void pauseAnimationsForTesting(double t);
60 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t esting 60 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t esting
61 61
62 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni ngNow = true) const; 62 bool isRunningAnimationOnRenderer(const RenderObject*, CSSPropertyID, bool i sRunningNow = true) const;
63 bool isRunningAcceleratableAnimationOnRenderer(RenderObject*) const; 63 bool isRunningAcceleratableAnimationOnRenderer(const RenderObject*) const;
64 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, b ool isRunningNow = true) const; 64 bool isRunningAcceleratedAnimationOnRenderer(const RenderObject*, CSSPropert yID, bool isRunningNow = true) const;
65 65
66 void serviceAnimations(); 66 void serviceAnimations();
67 67
68 void beginAnimationUpdate(); 68 void beginAnimationUpdate();
69 void endAnimationUpdate(); 69 void endAnimationUpdate();
70 70
71 static bool supportsAcceleratedAnimationOfProperty(CSSPropertyID); 71 static bool supportsAcceleratedAnimationOfProperty(CSSPropertyID);
72 72
73 private: 73 private:
74 OwnPtr<AnimationControllerPrivate> m_data; 74 OwnPtr<AnimationControllerPrivate> m_data;
(...skipping 20 matching lines...) Expand all
95 if (m_animationController) 95 if (m_animationController)
96 m_animationController->endAnimationUpdate(); 96 m_animationController->endAnimationUpdate();
97 } 97 }
98 98
99 AnimationController* m_animationController; 99 AnimationController* m_animationController;
100 }; 100 };
101 101
102 } // namespace WebCore 102 } // namespace WebCore
103 103
104 #endif // AnimationController_h 104 #endif // AnimationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698