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

Side by Side Diff: cc/layer.h

Issue 11783037: Not for review: Enable accelerated animations for orphaned layers (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Wait for layout to complete before starting orphaned animations Created 7 years, 10 months 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 | cc/layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYER_H_
6 #define CC_LAYER_H_ 6 #define CC_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // Returns the index of the child or -1 if not found. 337 // Returns the index of the child or -1 if not found.
338 int indexOfChild(const Layer*); 338 int indexOfChild(const Layer*);
339 339
340 // This should only be called from removeFromParent. 340 // This should only be called from removeFromParent.
341 void removeChild(Layer*); 341 void removeChild(Layer*);
342 342
343 // LayerAnimationValueObserver implementation. 343 // LayerAnimationValueObserver implementation.
344 virtual void OnOpacityAnimated(float) OVERRIDE; 344 virtual void OnOpacityAnimated(float) OVERRIDE;
345 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE; 345 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE;
346 virtual bool IsActive() const OVERRIDE; 346 virtual bool IsActive() const OVERRIDE;
347 virtual bool IsOrphaned() const OVERRIDE;
347 348
348 LayerList m_children; 349 LayerList m_children;
349 Layer* m_parent; 350 Layer* m_parent;
350 351
351 // Layer instances have a weak pointer to their LayerTreeHost. 352 // Layer instances have a weak pointer to their LayerTreeHost.
352 // This pointer value is nil when a Layer is not in a tree and is 353 // This pointer value is nil when a Layer is not in a tree and is
353 // updated via setLayerTreeHost() if a layer moves between trees. 354 // updated via setLayerTreeHost() if a layer moves between trees.
354 LayerTreeHost* m_layerTreeHost; 355 LayerTreeHost* m_layerTreeHost;
355 356
356 ObserverList<LayerAnimationEventObserver> m_layerAnimationObservers; 357 ObserverList<LayerAnimationEventObserver> m_layerAnimationObservers;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 WebKit::WebLayerScrollClient* m_layerScrollClient; 405 WebKit::WebLayerScrollClient* m_layerScrollClient;
405 406
406 DrawProperties<Layer, RenderSurface> m_drawProperties; 407 DrawProperties<Layer, RenderSurface> m_drawProperties;
407 }; 408 };
408 409
409 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 410 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
410 411
411 } // namespace cc 412 } // namespace cc
412 413
413 #endif // CC_LAYER_H_ 414 #endif // CC_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698