OLD | NEW |
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 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "cc/layer.h" | 7 #include "cc/layer.h" |
8 | 8 |
9 #include "cc/active_animation.h" | 9 #include "cc/active_animation.h" |
10 #include "cc/animation_events.h" | 10 #include "cc/animation_events.h" |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 | 823 |
824 void Layer::notifyAnimationFinished(double wallClockTime) | 824 void Layer::notifyAnimationFinished(double wallClockTime) |
825 { | 825 { |
826 if (m_layerAnimationDelegate) | 826 if (m_layerAnimationDelegate) |
827 m_layerAnimationDelegate->notifyAnimationFinished(wallClockTime); | 827 m_layerAnimationDelegate->notifyAnimationFinished(wallClockTime); |
828 } | 828 } |
829 | 829 |
830 Region Layer::visibleContentOpaqueRegion() const | 830 Region Layer::visibleContentOpaqueRegion() const |
831 { | 831 { |
832 if (contentsOpaque()) | 832 if (contentsOpaque()) |
833 return cc::IntRect(visibleContentRect()); | 833 return visibleContentRect(); |
834 return Region(); | 834 return Region(); |
835 } | 835 } |
836 | 836 |
837 ScrollbarLayer* Layer::toScrollbarLayer() | 837 ScrollbarLayer* Layer::toScrollbarLayer() |
838 { | 838 { |
839 return 0; | 839 return 0; |
840 } | 840 } |
841 | 841 |
842 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*) | 842 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*) |
843 { | 843 { |
844 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort Layers. | 844 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort Layers. |
845 } | 845 } |
846 | 846 |
847 } | 847 } |
OLD | NEW |