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" |
11 #include "cc/animation_events.h" | 11 #include "cc/animation_events.h" |
12 #include "cc/cc_export.h" | 12 #include "cc/cc_export.h" |
13 #include "cc/input_handler.h" | 13 #include "cc/input_handler.h" |
14 #include "cc/layer_sorter.h" | |
15 #include "cc/render_pass.h" | 14 #include "cc/render_pass.h" |
16 #include "cc/render_pass_sink.h" | 15 #include "cc/render_pass_sink.h" |
17 #include "cc/renderer.h" | 16 #include "cc/renderer.h" |
18 #include "cc/tile_manager.h" | 17 #include "cc/tile_manager.h" |
19 #include "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
20 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
21 #include <public/WebCompositorOutputSurfaceClient.h> | 20 #include <public/WebCompositorOutputSurfaceClient.h> |
22 | 21 |
23 namespace cc { | 22 namespace cc { |
24 | 23 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // If this is true, it is necessary to traverse the layer tree ticking the a
nimators. | 357 // If this is true, it is necessary to traverse the layer tree ticking the a
nimators. |
359 bool m_needsAnimateLayers; | 358 bool m_needsAnimateLayers; |
360 bool m_pinchGestureActive; | 359 bool m_pinchGestureActive; |
361 gfx::Point m_previousPinchAnchor; | 360 gfx::Point m_previousPinchAnchor; |
362 | 361 |
363 scoped_ptr<PageScaleAnimation> m_pageScaleAnimation; | 362 scoped_ptr<PageScaleAnimation> m_pageScaleAnimation; |
364 | 363 |
365 // This is used for ticking animations slowly when hidden. | 364 // This is used for ticking animations slowly when hidden. |
366 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> m_timeSourceClientAdapter; | 365 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> m_timeSourceClientAdapter; |
367 | 366 |
368 LayerSorter m_layerSorter; | |
369 | |
370 // List of visible layers for the most recently prepared frame. Used for | 367 // List of visible layers for the most recently prepared frame. Used for |
371 // rendering and input event hit testing. | 368 // rendering and input event hit testing. |
372 LayerList m_renderSurfaceLayerList; | 369 LayerList m_renderSurfaceLayerList; |
373 | 370 |
374 PinchZoomViewport m_pinchZoomViewport; | 371 PinchZoomViewport m_pinchZoomViewport; |
375 | 372 |
376 scoped_ptr<FrameRateCounter> m_fpsCounter; | 373 scoped_ptr<FrameRateCounter> m_fpsCounter; |
377 scoped_ptr<DebugRectHistory> m_debugRectHistory; | 374 scoped_ptr<DebugRectHistory> m_debugRectHistory; |
378 | 375 |
379 size_t m_numImplThreadScrolls; | 376 size_t m_numImplThreadScrolls; |
380 size_t m_numMainThreadScrolls; | 377 size_t m_numMainThreadScrolls; |
381 | 378 |
382 size_t m_cumulativeNumLayersDrawn; | 379 size_t m_cumulativeNumLayersDrawn; |
383 | 380 |
384 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 381 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
385 }; | 382 }; |
386 | 383 |
387 } // namespace cc | 384 } // namespace cc |
388 | 385 |
389 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 386 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |