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

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

Issue 101623002: Drop "only composite opacity animations when already in compositing mode". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Seperate window.internals and window.testRunner Created 7 years 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(RenderObject*, CSSPropertyID, bool isRunni ngNow) const;
80 bool isRunningAcceleratableAnimationOnRenderer(RenderObject*, bool isOpacity Acceleratable) const; 80 bool isRunningAcceleratableAnimationOnRenderer(RenderObject*) const;
81 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, b ool isRunningNow) const; 81 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, b ool 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();
(...skipping 40 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
« no previous file with comments | « Source/core/frame/animation/AnimationController.cpp ('k') | Source/core/rendering/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698