| 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 #ifndef CCLayerTreeHostImpl_h | 5 #ifndef CCLayerTreeHostImpl_h |
| 6 #define CCLayerTreeHostImpl_h | 6 #define CCLayerTreeHostImpl_h |
| 7 | 7 |
| 8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
| 9 #include "CCInputHandler.h" | 9 #include "CCInputHandler.h" |
| 10 #include "CCLayerSorter.h" | 10 #include "CCLayerSorter.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } | 163 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } |
| 164 | 164 |
| 165 bool hasTransparentBackground() const { return m_hasTransparentBackground; } | 165 bool hasTransparentBackground() const { return m_hasTransparentBackground; } |
| 166 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 166 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
| 167 | 167 |
| 168 bool needsAnimateLayers() const { return m_needsAnimateLayers; } | 168 bool needsAnimateLayers() const { return m_needsAnimateLayers; } |
| 169 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } | 169 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } |
| 170 | 170 |
| 171 void setNeedsRedraw(); | 171 void setNeedsRedraw(); |
| 172 | 172 |
| 173 void renderingStats(CCRenderingStats&) const; | 173 void renderingStats(CCRenderingStats*) const; |
| 174 | 174 |
| 175 CCFrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } | 175 CCFrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } |
| 176 CCDebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get
(); } | 176 CCDebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get
(); } |
| 177 CCResourceProvider* resourceProvider() const { return m_resourceProvider.get
(); } | 177 CCResourceProvider* resourceProvider() const { return m_resourceProvider.get
(); } |
| 178 | 178 |
| 179 class CullRenderPassesWithCachedTextures { | 179 class CullRenderPassesWithCachedTextures { |
| 180 public: | 180 public: |
| 181 bool shouldRemoveRenderPass(const CCRenderPassDrawQuad&, const FrameData
&) const; | 181 bool shouldRemoveRenderPass(const CCRenderPassDrawQuad&, const FrameData
&) const; |
| 182 | 182 |
| 183 // Iterates from the root first, in order to remove the surfaces closest | 183 // Iterates from the root first, in order to remove the surfaces closest |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // rendering and input event hit testing. | 291 // rendering and input event hit testing. |
| 292 CCLayerList m_renderSurfaceLayerList; | 292 CCLayerList m_renderSurfaceLayerList; |
| 293 | 293 |
| 294 OwnPtr<CCFrameRateCounter> m_fpsCounter; | 294 OwnPtr<CCFrameRateCounter> m_fpsCounter; |
| 295 OwnPtr<CCDebugRectHistory> m_debugRectHistory; | 295 OwnPtr<CCDebugRectHistory> m_debugRectHistory; |
| 296 }; | 296 }; |
| 297 | 297 |
| 298 }; | 298 }; |
| 299 | 299 |
| 300 #endif | 300 #endif |
| OLD | NEW |