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 "cc/layer_tree_host.h" | 5 #include "cc/layer_tree_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 { | 145 { |
146 } | 146 } |
147 | 147 |
148 RendererCapabilities::RendererCapabilities() | 148 RendererCapabilities::RendererCapabilities() |
149 : bestTextureFormat(0) | 149 : bestTextureFormat(0) |
150 , usingPartialSwap(false) | 150 , usingPartialSwap(false) |
151 , usingAcceleratedPainting(false) | 151 , usingAcceleratedPainting(false) |
152 , usingSetVisibility(false) | 152 , usingSetVisibility(false) |
153 , usingSwapCompleteCallback(false) | 153 , usingSwapCompleteCallback(false) |
154 , usingGpuMemoryManager(false) | 154 , usingGpuMemoryManager(false) |
155 , usingDiscardFramebuffer(false) | 155 , usingDiscardBackbuffer(false) |
156 , usingEglImage(false) | 156 , usingEglImage(false) |
157 , allowPartialTextureUpdates(false) | 157 , allowPartialTextureUpdates(false) |
158 , maxTextureSize(0) | 158 , maxTextureSize(0) |
159 { | 159 { |
160 } | 160 } |
161 | 161 |
162 RendererCapabilities::~RendererCapabilities() | 162 RendererCapabilities::~RendererCapabilities() |
163 { | 163 { |
164 } | 164 } |
165 | 165 |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 | 975 |
976 void LayerTreeHost::UnregisterAnimationController(LayerAnimationController* cont
roller) { | 976 void LayerTreeHost::UnregisterAnimationController(LayerAnimationController* cont
roller) { |
977 #if !defined(NDEBUG) | 977 #if !defined(NDEBUG) |
978 if (ContainsKey(m_allAnimationControllers, controller)) | 978 if (ContainsKey(m_allAnimationControllers, controller)) |
979 m_allAnimationControllers.erase(controller); | 979 m_allAnimationControllers.erase(controller); |
980 #endif | 980 #endif |
981 DidDeactivateAnimationController(controller); | 981 DidDeactivateAnimationController(controller); |
982 } | 982 } |
983 | 983 |
984 } // namespace cc | 984 } // namespace cc |
OLD | NEW |