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

Side by Side Diff: Source/core/frame/animation/AnimationControllerPrivate.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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 void updateStyleIfNeededDispatcherFired(Timer<AnimationControllerPrivate>*); 70 void updateStyleIfNeededDispatcherFired(Timer<AnimationControllerPrivate>*);
71 void startUpdateStyleIfNeededDispatcher(); 71 void startUpdateStyleIfNeededDispatcher();
72 void addEventToDispatch(PassRefPtr<Element> element, const AtomicString& eve ntType, const String& name, double elapsedTime); 72 void addEventToDispatch(PassRefPtr<Element> element, const AtomicString& eve ntType, const String& name, double elapsedTime);
73 void addNodeChangeToDispatch(PassRefPtr<Node>); 73 void addNodeChangeToDispatch(PassRefPtr<Node>);
74 74
75 bool hasAnimations() const { return !m_compositeAnimations.isEmpty(); } 75 bool hasAnimations() const { return !m_compositeAnimations.isEmpty(); }
76 76
77 void serviceAnimations(); 77 void serviceAnimations();
78 78
79 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni ngNow) const; 79 bool isRunningAnimationOnRenderer(const RenderObject*, CSSPropertyID, bool i sRunningNow) const;
80 bool isRunningAcceleratableAnimationOnRenderer(RenderObject*) const; 80 bool isRunningAcceleratableAnimationOnRenderer(const RenderObject*) const;
81 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, b ool isRunningNow) const; 81 bool isRunningAcceleratedAnimationOnRenderer(const RenderObject*, CSSPropert yID, bool isRunningNow) const;
82 82
83 void pauseAnimationsForTesting(double t); 83 void pauseAnimationsForTesting(double t);
84 unsigned numberOfActiveAnimations(Document*) const; 84 unsigned numberOfActiveAnimations(Document*) const;
85 85
86 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject* renderer); 86 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject* renderer);
87 87
88 double beginAnimationUpdateTime(); 88 double beginAnimationUpdateTime();
89 void setBeginAnimationUpdateTime(double t) { m_beginAnimationUpdateTime = t; } 89 void setBeginAnimationUpdateTime(double t) { m_beginAnimationUpdateTime = t; }
90 void endAnimationUpdate(); 90 void endAnimationUpdate();
91 void receivedStartTimeResponse(double); 91 void receivedStartTimeResponse(double);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 typedef HashSet<RefPtr<AnimationBase> > WaitingAnimationsSet; 132 typedef HashSet<RefPtr<AnimationBase> > WaitingAnimationsSet;
133 WaitingAnimationsSet m_animationsWaitingForStyle; 133 WaitingAnimationsSet m_animationsWaitingForStyle;
134 WaitingAnimationsSet m_animationsWaitingForStartTimeResponse; 134 WaitingAnimationsSet m_animationsWaitingForStartTimeResponse;
135 WaitingAnimationsSet m_animationsWaitingForAsyncStartNotification; 135 WaitingAnimationsSet m_animationsWaitingForAsyncStartNotification;
136 }; 136 };
137 137
138 } // namespace WebCore 138 } // namespace WebCore
139 139
140 #endif // AnimationControllerPrivate_h 140 #endif // AnimationControllerPrivate_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698