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_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // TopControlsManagerClient implementation. | 128 // TopControlsManagerClient implementation. |
129 virtual void DidChangeTopControlsPosition() OVERRIDE; | 129 virtual void DidChangeTopControlsPosition() OVERRIDE; |
130 virtual bool HaveRootScrollLayer() const OVERRIDE; | 130 virtual bool HaveRootScrollLayer() const OVERRIDE; |
131 | 131 |
132 void StartScrollbarAnimation(); | 132 void StartScrollbarAnimation(); |
133 | 133 |
134 struct CC_EXPORT FrameData : public RenderPassSink { | 134 struct CC_EXPORT FrameData : public RenderPassSink { |
135 FrameData(); | 135 FrameData(); |
136 virtual ~FrameData(); | 136 virtual ~FrameData(); |
| 137 scoped_ptr<base::Value> AsValue() const; |
137 | 138 |
138 std::vector<gfx::Rect> occluding_screen_space_rects; | 139 std::vector<gfx::Rect> occluding_screen_space_rects; |
139 std::vector<gfx::Rect> non_occluding_screen_space_rects; | 140 std::vector<gfx::Rect> non_occluding_screen_space_rects; |
140 RenderPassList render_passes; | 141 RenderPassList render_passes; |
141 RenderPassIdHashMap render_passes_by_id; | 142 RenderPassIdHashMap render_passes_by_id; |
142 const LayerImplList* render_surface_layer_list; | 143 const LayerImplList* render_surface_layer_list; |
143 LayerImplList will_draw_layers; | 144 LayerImplList will_draw_layers; |
144 bool contains_incomplete_tile; | 145 bool contains_incomplete_tile; |
145 bool has_no_damage; | 146 bool has_no_damage; |
146 | 147 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 361 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
361 | 362 |
362 void SetTreePriority(TreePriority priority); | 363 void SetTreePriority(TreePriority priority); |
363 | 364 |
364 void ResetCurrentFrameTimeForNextFrame(); | 365 void ResetCurrentFrameTimeForNextFrame(); |
365 base::TimeTicks CurrentFrameTimeTicks(); | 366 base::TimeTicks CurrentFrameTimeTicks(); |
366 base::Time CurrentFrameTime(); | 367 base::Time CurrentFrameTime(); |
367 | 368 |
368 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; | 369 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; |
369 | 370 |
370 scoped_ptr<base::Value> AsValue() const; | 371 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } |
| 372 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; |
371 scoped_ptr<base::Value> ActivationStateAsValue() const; | 373 scoped_ptr<base::Value> ActivationStateAsValue() const; |
372 | 374 |
373 bool page_scale_animation_active() const { return !!page_scale_animation_; } | 375 bool page_scale_animation_active() const { return !!page_scale_animation_; } |
374 | 376 |
375 protected: | 377 protected: |
376 LayerTreeHostImpl( | 378 LayerTreeHostImpl( |
377 const LayerTreeSettings& settings, | 379 const LayerTreeSettings& settings, |
378 LayerTreeHostImplClient* client, | 380 LayerTreeHostImplClient* client, |
379 Proxy* proxy, | 381 Proxy* proxy, |
380 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 382 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 540 |
539 // Optional callback to notify of new tree activations. | 541 // Optional callback to notify of new tree activations. |
540 base::Closure tree_activation_callback_; | 542 base::Closure tree_activation_callback_; |
541 | 543 |
542 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 544 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
543 }; | 545 }; |
544 | 546 |
545 } // namespace cc | 547 } // namespace cc |
546 | 548 |
547 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 549 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |