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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 virtual bool haveTouchEventHandlersAt(const gfx::Point&) OVERRIDE; | 134 virtual bool haveTouchEventHandlersAt(const gfx::Point&) OVERRIDE; |
135 | 135 |
136 struct CC_EXPORT FrameData : public RenderPassSink { | 136 struct CC_EXPORT FrameData : public RenderPassSink { |
137 FrameData(); | 137 FrameData(); |
138 ~FrameData(); | 138 ~FrameData(); |
139 | 139 |
140 std::vector<gfx::Rect> occludingScreenSpaceRects; | 140 std::vector<gfx::Rect> occludingScreenSpaceRects; |
141 std::vector<gfx::Rect> nonOccludingScreenSpaceRects; | 141 std::vector<gfx::Rect> nonOccludingScreenSpaceRects; |
142 RenderPassList renderPasses; | 142 RenderPassList renderPasses; |
143 RenderPassIdHashMap renderPassesById; | 143 RenderPassIdHashMap renderPassesById; |
144 LayerList* renderSurfaceLayerList; | 144 const LayerList* renderSurfaceLayerList; |
145 LayerList willDrawLayers; | 145 LayerList willDrawLayers; |
146 | 146 |
147 // RenderPassSink implementation. | 147 // RenderPassSink implementation. |
148 virtual void appendRenderPass(scoped_ptr<RenderPass>) OVERRIDE; | 148 virtual void appendRenderPass(scoped_ptr<RenderPass>) OVERRIDE; |
149 }; | 149 }; |
150 | 150 |
151 // Virtual for testing. | 151 // Virtual for testing. |
152 virtual void beginCommit(); | 152 virtual void beginCommit(); |
153 virtual void commitComplete(); | 153 virtual void commitComplete(); |
154 virtual void animate(base::TimeTicks monotonicTime, base::Time wallClockTime
); | 154 virtual void animate(base::TimeTicks monotonicTime, base::Time wallClockTime
); |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 | 382 |
383 bool m_needsUpdateDrawProperties; | 383 bool m_needsUpdateDrawProperties; |
384 bool m_pinchGestureActive; | 384 bool m_pinchGestureActive; |
385 gfx::Point m_previousPinchAnchor; | 385 gfx::Point m_previousPinchAnchor; |
386 | 386 |
387 scoped_ptr<PageScaleAnimation> m_pageScaleAnimation; | 387 scoped_ptr<PageScaleAnimation> m_pageScaleAnimation; |
388 | 388 |
389 // This is used for ticking animations slowly when hidden. | 389 // This is used for ticking animations slowly when hidden. |
390 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> m_timeSourceClientAdapter; | 390 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> m_timeSourceClientAdapter; |
391 | 391 |
392 // List of visible layers for the most recently prepared frame. Used for | |
393 // rendering and input event hit testing. | |
394 LayerList m_renderSurfaceLayerList; | |
395 | |
396 PinchZoomViewport m_pinchZoomViewport; | 392 PinchZoomViewport m_pinchZoomViewport; |
397 | 393 |
398 scoped_ptr<FrameRateCounter> m_fpsCounter; | 394 scoped_ptr<FrameRateCounter> m_fpsCounter; |
399 scoped_ptr<DebugRectHistory> m_debugRectHistory; | 395 scoped_ptr<DebugRectHistory> m_debugRectHistory; |
400 | 396 |
401 int64 m_numImplThreadScrolls; | 397 int64 m_numImplThreadScrolls; |
402 int64 m_numMainThreadScrolls; | 398 int64 m_numMainThreadScrolls; |
403 | 399 |
404 int64 m_cumulativeNumLayersDrawn; | 400 int64 m_cumulativeNumLayersDrawn; |
405 | 401 |
406 int64 m_cumulativeNumMissingTiles; | 402 int64 m_cumulativeNumMissingTiles; |
407 | 403 |
408 size_t m_lastSentMemoryVisibleBytes; | 404 size_t m_lastSentMemoryVisibleBytes; |
409 size_t m_lastSentMemoryVisibleAndNearbyBytes; | 405 size_t m_lastSentMemoryVisibleAndNearbyBytes; |
410 size_t m_lastSentMemoryUseBytes; | 406 size_t m_lastSentMemoryUseBytes; |
411 | 407 |
412 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 408 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
413 | 409 |
414 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 410 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
415 }; | 411 }; |
416 | 412 |
417 } // namespace cc | 413 } // namespace cc |
418 | 414 |
419 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 415 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |