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

Side by Side Diff: sky/engine/core/animation/ActiveAnimations.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | sky/engine/core/animation/ActiveAnimations.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool isEmpty() const { return m_defaultStack.isEmpty() && m_cssAnimations.is Empty() && m_players.isEmpty(); } 72 bool isEmpty() const { return m_defaultStack.isEmpty() && m_cssAnimations.is Empty() && m_players.isEmpty(); }
73 73
74 void cancelAnimationOnCompositor(); 74 void cancelAnimationOnCompositor();
75 75
76 void updateAnimationFlags(RenderStyle&); 76 void updateAnimationFlags(RenderStyle&);
77 void setAnimationStyleChange(bool animationStyleChange) { m_animationStyleCh ange = animationStyleChange; } 77 void setAnimationStyleChange(bool animationStyleChange) { m_animationStyleCh ange = animationStyleChange; }
78 78
79 void addAnimation(Animation* animation) { m_animations.append(animation); } 79 void addAnimation(Animation* animation) { m_animations.append(animation); }
80 void notifyAnimationDestroyed(Animation* animation) { m_animations.remove(m_ animations.find(animation)); } 80 void notifyAnimationDestroyed(Animation* animation) { m_animations.remove(m_ animations.find(animation)); }
81 81
82 void trace(Visitor*);
83
84 private: 82 private:
85 bool isAnimationStyleChange() const { return m_animationStyleChange; } 83 bool isAnimationStyleChange() const { return m_animationStyleChange; }
86 84
87 AnimationStack m_defaultStack; 85 AnimationStack m_defaultStack;
88 CSSAnimations m_cssAnimations; 86 CSSAnimations m_cssAnimations;
89 AnimationPlayerCountedSet m_players; 87 AnimationPlayerCountedSet m_players;
90 bool m_animationStyleChange; 88 bool m_animationStyleChange;
91 89
92 // This is to avoid a reference cycle that keeps Elements alive. 90 // This is to avoid a reference cycle that keeps Elements alive.
93 Vector<Animation*> m_animations; 91 Vector<Animation*> m_animations;
94 92
95 // CSSAnimations checks if a style change is due to animation. 93 // CSSAnimations checks if a style change is due to animation.
96 friend class CSSAnimations; 94 friend class CSSAnimations;
97 }; 95 };
98 96
99 } // namespace blink 97 } // namespace blink
100 98
101 #endif 99 #endif
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/animation/ActiveAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698