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 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
8 #include "LayerChromium.h" | 8 #include "LayerChromium.h" |
9 | 9 |
10 #include "CCActiveAnimation.h" | 10 #include "CCActiveAnimation.h" |
11 #include "CCAnimationEvents.h" | 11 #include "CCAnimationEvents.h" |
12 #include "CCLayerAnimationController.h" | 12 #include "CCLayerAnimationController.h" |
13 #include "CCLayerImpl.h" | 13 #include "CCLayerImpl.h" |
14 #include "CCLayerTreeHost.h" | 14 #include "CCLayerTreeHost.h" |
15 #include "CCSettings.h" | 15 #include "CCSettings.h" |
16 #include <public/WebAnimationDelegate.h> | 16 #include <public/WebAnimationDelegate.h> |
17 #include <public/WebLayerScrollClient.h> | 17 #include <public/WebLayerScrollClient.h> |
18 #include <public/WebSize.h> | 18 #include <public/WebSize.h> |
19 | 19 |
20 using namespace std; | 20 using namespace std; |
21 using WebKit::WebTransformationMatrix; | 21 using WebKit::WebTransformationMatrix; |
22 | 22 |
23 namespace WebCore { | 23 namespace cc { |
24 | 24 |
25 static int s_nextLayerId = 1; | 25 static int s_nextLayerId = 1; |
26 | 26 |
27 PassRefPtr<LayerChromium> LayerChromium::create() | 27 PassRefPtr<LayerChromium> LayerChromium::create() |
28 { | 28 { |
29 return adoptRef(new LayerChromium()); | 29 return adoptRef(new LayerChromium()); |
30 } | 30 } |
31 | 31 |
32 LayerChromium::LayerChromium() | 32 LayerChromium::LayerChromium() |
33 : m_needsDisplay(false) | 33 : m_needsDisplay(false) |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 return Region(); | 721 return Region(); |
722 } | 722 } |
723 | 723 |
724 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr
omium> >::iterator, void*) | 724 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr
omium> >::iterator, void*) |
725 { | 725 { |
726 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort LayerChromiums. | 726 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort LayerChromiums. |
727 } | 727 } |
728 | 728 |
729 } | 729 } |
730 #endif // USE(ACCELERATED_COMPOSITING) | 730 #endif // USE(ACCELERATED_COMPOSITING) |
OLD | NEW |