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_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 bool needsAnimateLayers() const { return m_needsAnimateLayers; } | 249 bool needsAnimateLayers() const { return m_needsAnimateLayers; } |
250 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } | 250 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } |
251 | 251 |
252 bool needsUpdateDrawProperties() const { return m_needsUpdateDrawProperties; } | 252 bool needsUpdateDrawProperties() const { return m_needsUpdateDrawProperties; } |
253 void setNeedsUpdateDrawProperties() { m_needsUpdateDrawProperties = true; } | 253 void setNeedsUpdateDrawProperties() { m_needsUpdateDrawProperties = true; } |
254 | 254 |
255 void setNeedsRedraw(); | 255 void setNeedsRedraw(); |
256 | 256 |
257 void renderingStats(RenderingStats*) const; | 257 void renderingStats(RenderingStats*) const; |
258 | 258 |
259 void updateRootScrollLayerImplTransform(); | 259 void updateDrawProperties(); |
danakj
2012/12/11 15:49:24
You shouldn't need to make this public, we already
| |
260 | 260 |
261 void sendManagedMemoryStats( | 261 void sendManagedMemoryStats( |
262 size_t memoryVisibleBytes, | 262 size_t memoryVisibleBytes, |
263 size_t memoryVisibleAndNearbyBytes, | 263 size_t memoryVisibleAndNearbyBytes, |
264 size_t memoryUseBytes); | 264 size_t memoryUseBytes); |
265 | 265 |
266 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } | 266 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } |
267 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; } | 267 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; } |
268 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; } | 268 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; } |
269 Proxy* proxy() const { return m_proxy; } | 269 Proxy* proxy() const { return m_proxy; } |
(...skipping 30 matching lines...) Expand all Loading... | |
300 | 300 |
301 template<typename RenderPassCuller> | 301 template<typename RenderPassCuller> |
302 static void removeRenderPasses(RenderPassCuller, FrameData&); | 302 static void removeRenderPasses(RenderPassCuller, FrameData&); |
303 | 303 |
304 protected: | 304 protected: |
305 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* ); | 305 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* ); |
306 | 306 |
307 void animatePageScale(base::TimeTicks monotonicTime); | 307 void animatePageScale(base::TimeTicks monotonicTime); |
308 void animateScrollbars(base::TimeTicks monotonicTime); | 308 void animateScrollbars(base::TimeTicks monotonicTime); |
309 | 309 |
310 void updateDrawProperties(); | |
311 | |
312 // Exposed for testing. | 310 // Exposed for testing. |
313 void calculateRenderSurfaceLayerList(LayerList&); | 311 void calculateRenderSurfaceLayerList(LayerList&); |
314 void resetNeedsUpdateDrawPropertiesForTesting() { m_needsUpdateDrawPropertie s = false; } | 312 void resetNeedsUpdateDrawPropertiesForTesting() { m_needsUpdateDrawPropertie s = false; } |
315 | 313 |
316 // Virtual for testing. | 314 // Virtual for testing. |
317 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime); | 315 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime); |
318 | 316 |
319 // Virtual for testing. | 317 // Virtual for testing. |
320 virtual base::TimeDelta lowFrequencyAnimationInterval() const; | 318 virtual base::TimeDelta lowFrequencyAnimationInterval() const; |
321 | 319 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
398 size_t m_lastSentMemoryVisibleBytes; | 396 size_t m_lastSentMemoryVisibleBytes; |
399 size_t m_lastSentMemoryVisibleAndNearbyBytes; | 397 size_t m_lastSentMemoryVisibleAndNearbyBytes; |
400 size_t m_lastSentMemoryUseBytes; | 398 size_t m_lastSentMemoryUseBytes; |
401 | 399 |
402 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 400 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
403 }; | 401 }; |
404 | 402 |
405 } // namespace cc | 403 } // namespace cc |
406 | 404 |
407 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 405 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |