| OLD | NEW |
| 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 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCLayerTreeHost.h" | 7 #include "CCLayerTreeHost.h" |
| 8 | 8 |
| 9 #include "CCFontAtlas.h" | 9 #include "CCFontAtlas.h" |
| 10 #include "CCGraphicsContext.h" | 10 #include "CCGraphicsContext.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "TraceEvent.h" | 25 #include "TraceEvent.h" |
| 26 #include "TreeSynchronizer.h" | 26 #include "TreeSynchronizer.h" |
| 27 | 27 |
| 28 using namespace std; | 28 using namespace std; |
| 29 using WebKit::WebTransformationMatrix; | 29 using WebKit::WebTransformationMatrix; |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 static int numLayerTreeInstances; | 32 static int numLayerTreeInstances; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace cc { |
| 36 | 36 |
| 37 bool CCLayerTreeHost::s_needsFilterContext = false; | 37 bool CCLayerTreeHost::s_needsFilterContext = false; |
| 38 | 38 |
| 39 bool CCLayerTreeHost::anyLayerTreeHostInstanceExists() | 39 bool CCLayerTreeHost::anyLayerTreeHostInstanceExists() |
| 40 { | 40 { |
| 41 return numLayerTreeInstances > 0; | 41 return numLayerTreeInstances > 0; |
| 42 } | 42 } |
| 43 | 43 |
| 44 PassOwnPtr<CCLayerTreeHost> CCLayerTreeHost::create(CCLayerTreeHostClient* clien
t, const CCLayerTreeSettings& settings) | 44 PassOwnPtr<CCLayerTreeHost> CCLayerTreeHost::create(CCLayerTreeHostClient* clien
t, const CCLayerTreeSettings& settings) |
| 45 { | 45 { |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 layer->notifyAnimationStarted(events[eventIndex], wallClockTime)
; | 778 layer->notifyAnimationStarted(events[eventIndex], wallClockTime)
; |
| 779 else | 779 else |
| 780 layer->notifyAnimationFinished(wallClockTime); | 780 layer->notifyAnimationFinished(wallClockTime); |
| 781 } | 781 } |
| 782 } | 782 } |
| 783 | 783 |
| 784 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 784 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 785 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 785 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 786 } | 786 } |
| 787 | 787 |
| 788 } // namespace WebCore | 788 } // namespace cc |
| OLD | NEW |