| 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 CC_LAYER_TREE_HOST_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
| 6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // RateLimitClient implementation | 210 // RateLimitClient implementation |
| 211 virtual void rateLimit() OVERRIDE; | 211 virtual void rateLimit() OVERRIDE; |
| 212 | 212 |
| 213 bool bufferedUpdates(); | 213 bool bufferedUpdates(); |
| 214 bool requestPartialTextureUpdate(); | 214 bool requestPartialTextureUpdate(); |
| 215 | 215 |
| 216 void setDeviceScaleFactor(float); | 216 void setDeviceScaleFactor(float); |
| 217 float deviceScaleFactor() const { return m_deviceScaleFactor; } | 217 float deviceScaleFactor() const { return m_deviceScaleFactor; } |
| 218 | 218 |
| 219 void setShowFPSCounter(bool show); | 219 void setShowFPSCounter(bool show); |
| 220 void setFontAtlas(scoped_ptr<FontAtlas>); | |
| 221 | 220 |
| 222 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } | 221 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } |
| 223 | 222 |
| 224 Proxy* proxy() const { return m_proxy.get(); } | 223 Proxy* proxy() const { return m_proxy.get(); } |
| 225 | 224 |
| 226 protected: | 225 protected: |
| 227 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); | 226 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); |
| 228 bool initialize(scoped_ptr<Thread> implThread); | 227 bool initialize(scoped_ptr<Thread> implThread); |
| 229 | 228 |
| 230 private: | 229 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 242 void prioritizeTextures(const LayerList&, OverdrawMetrics&); | 241 void prioritizeTextures(const LayerList&, OverdrawMetrics&); |
| 243 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); | 242 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); |
| 244 void setPrioritiesForLayers(const LayerList&); | 243 void setPrioritiesForLayers(const LayerList&); |
| 245 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); | 244 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); |
| 246 | 245 |
| 247 void animateLayers(base::TimeTicks monotonicTime); | 246 void animateLayers(base::TimeTicks monotonicTime); |
| 248 bool animateLayersRecursive(Layer* current, base::TimeTicks time); | 247 bool animateLayersRecursive(Layer* current, base::TimeTicks time); |
| 249 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base:
:Time wallClockTime); | 248 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base:
:Time wallClockTime); |
| 250 | 249 |
| 251 void createHUDLayerIfNeeded(); | 250 void createHUDLayerIfNeeded(); |
| 251 void createFontAtlasIfNeeded(); |
| 252 | 252 |
| 253 bool m_animating; | 253 bool m_animating; |
| 254 bool m_needsAnimateLayers; | 254 bool m_needsAnimateLayers; |
| 255 | 255 |
| 256 base::CancelableClosure m_prepaintCallback; | 256 base::CancelableClosure m_prepaintCallback; |
| 257 | 257 |
| 258 LayerTreeHostClient* m_client; | 258 LayerTreeHostClient* m_client; |
| 259 scoped_ptr<Proxy> m_proxy; | 259 scoped_ptr<Proxy> m_proxy; |
| 260 | 260 |
| 261 int m_commitNumber; | 261 int m_commitNumber; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 size_t m_partialTextureUpdateRequests; | 295 size_t m_partialTextureUpdateRequests; |
| 296 | 296 |
| 297 static bool s_needsFilterContext; | 297 static bool s_needsFilterContext; |
| 298 | 298 |
| 299 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 299 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 300 }; | 300 }; |
| 301 | 301 |
| 302 } // namespace cc | 302 } // namespace cc |
| 303 | 303 |
| 304 #endif // CC_LAYER_TREE_HOST_H_ | 304 #endif // CC_LAYER_TREE_HOST_H_ |
| OLD | NEW |