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

Side by Side Diff: cc/layer_tree_host.h

Issue 11443004: Maintain global lists of animation controllers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_LAYER_TREE_HOST_H_ 5 #ifndef CC_LAYER_TREE_HOST_H_
6 #define CC_LAYER_TREE_HOST_H_ 6 #define CC_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void loseContext(int numTimes); 182 void loseContext(int numTimes);
183 183
184 void setNeedsAnimate(); 184 void setNeedsAnimate();
185 // virtual for testing 185 // virtual for testing
186 virtual void setNeedsCommit(); 186 virtual void setNeedsCommit();
187 virtual void setNeedsFullTreeSync(); 187 virtual void setNeedsFullTreeSync();
188 void setNeedsRedraw(); 188 void setNeedsRedraw();
189 bool commitRequested() const; 189 bool commitRequested() const;
190 190
191 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime); 191 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime);
192 virtual void didAddAnimation(); 192 virtual void didAddAnimation() { }
193 193
194 Layer* rootLayer() { return m_rootLayer.get(); } 194 Layer* rootLayer() { return m_rootLayer.get(); }
195 const Layer* rootLayer() const { return m_rootLayer.get(); } 195 const Layer* rootLayer() const { return m_rootLayer.get(); }
196 void setRootLayer(scoped_refptr<Layer>); 196 void setRootLayer(scoped_refptr<Layer>);
197 197
198 const LayerTreeSettings& settings() const { return m_settings; } 198 const LayerTreeSettings& settings() const { return m_settings; }
199 199
200 void setDebugState(const LayerTreeDebugState& debugState); 200 void setDebugState(const LayerTreeDebugState& debugState);
201 const LayerTreeDebugState& debugState() const { return m_debugState; } 201 const LayerTreeDebugState& debugState() const { return m_debugState; }
202 202
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 void prioritizeTextures(const LayerList&, OverdrawMetrics&); 261 void prioritizeTextures(const LayerList&, OverdrawMetrics&);
262 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); 262 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes);
263 void setPrioritiesForLayers(const LayerList&); 263 void setPrioritiesForLayers(const LayerList&);
264 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); 264 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList);
265 265
266 void animateLayers(base::TimeTicks monotonicTime); 266 void animateLayers(base::TimeTicks monotonicTime);
267 bool animateLayersRecursive(Layer* current, base::TimeTicks time); 267 bool animateLayersRecursive(Layer* current, base::TimeTicks time);
268 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base: :Time wallClockTime); 268 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base: :Time wallClockTime);
269 269
270 bool m_animating; 270 bool m_animating;
271 bool m_needsAnimateLayers;
272 bool m_needsFullTreeSync; 271 bool m_needsFullTreeSync;
273 272
274 base::CancelableClosure m_prepaintCallback; 273 base::CancelableClosure m_prepaintCallback;
275 274
276 LayerTreeHostClient* m_client; 275 LayerTreeHostClient* m_client;
277 scoped_ptr<Proxy> m_proxy; 276 scoped_ptr<Proxy> m_proxy;
278 277
279 int m_commitNumber; 278 int m_commitNumber;
280 RenderingStats m_renderingStats; 279 RenderingStats m_renderingStats;
281 280
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 size_t m_partialTextureUpdateRequests; 313 size_t m_partialTextureUpdateRequests;
315 314
316 static bool s_needsFilterContext; 315 static bool s_needsFilterContext;
317 316
318 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 317 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
319 }; 318 };
320 319
321 } // namespace cc 320 } // namespace cc
322 321
323 #endif // CC_LAYER_TREE_HOST_H_ 322 #endif // CC_LAYER_TREE_HOST_H_
OLDNEW
« cc/animation_registrar.h ('K') | « cc/layer_impl.cc ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698