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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 172 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
173 bool CommitRequested() const; | 173 bool CommitRequested() const; |
174 | 174 |
175 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 175 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
176 base::Time wall_clock_time); | 176 base::Time wall_clock_time); |
177 | 177 |
178 void SetRootLayer(scoped_refptr<Layer> root_layer); | 178 void SetRootLayer(scoped_refptr<Layer> root_layer); |
179 Layer* root_layer() { return root_layer_.get(); } | 179 Layer* root_layer() { return root_layer_.get(); } |
180 const Layer* root_layer() const { return root_layer_.get(); } | 180 const Layer* root_layer() const { return root_layer_.get(); } |
181 | 181 |
| 182 void RegisterPinchViewportLayers( |
| 183 scoped_refptr<Layer> inner_viewport_clip_layer, |
| 184 scoped_refptr<Layer> page_scale_layer, |
| 185 scoped_refptr<Layer> inner_viewport_scroll_layer, |
| 186 scoped_refptr<Layer> outer_viewport_scroll_layer, |
| 187 scoped_refptr<Layer> inner_viewport_horizontal_scrollbar_layer, |
| 188 scoped_refptr<Layer> inner_viewport_vertical_scrollbar_layer); |
| 189 |
182 const LayerTreeSettings& settings() const { return settings_; } | 190 const LayerTreeSettings& settings() const { return settings_; } |
183 | 191 |
184 void SetDebugState(const LayerTreeDebugState& debug_state); | 192 void SetDebugState(const LayerTreeDebugState& debug_state); |
185 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 193 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
186 | 194 |
187 void SetViewportSize(gfx::Size device_viewport_size); | 195 void SetViewportSize(gfx::Size device_viewport_size); |
188 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 196 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
189 | 197 |
190 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 198 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
191 float overdraw_bottom_height() const { return overdraw_bottom_height_; } | 199 float overdraw_bottom_height() const { return overdraw_bottom_height_; } |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 scoped_ptr<Proxy> proxy_; | 304 scoped_ptr<Proxy> proxy_; |
297 | 305 |
298 int commit_number_; | 306 int commit_number_; |
299 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; | 307 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; |
300 | 308 |
301 bool output_surface_can_be_initialized_; | 309 bool output_surface_can_be_initialized_; |
302 bool output_surface_lost_; | 310 bool output_surface_lost_; |
303 int num_failed_recreate_attempts_; | 311 int num_failed_recreate_attempts_; |
304 | 312 |
305 scoped_refptr<Layer> root_layer_; | 313 scoped_refptr<Layer> root_layer_; |
| 314 scoped_refptr<Layer> inner_viewport_clip_layer_; |
| 315 scoped_refptr<Layer> page_scale_layer_; |
| 316 scoped_refptr<Layer> inner_viewport_scroll_layer_; |
| 317 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
| 318 scoped_refptr<Layer> inner_viewport_horizontal_scrollbar_layer_; |
| 319 scoped_refptr<Layer> inner_viewport_vertical_scrollbar_layer_; |
306 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; | 320 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; |
307 | 321 |
308 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; | 322 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; |
309 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; | 323 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; |
310 | 324 |
311 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 325 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
312 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 326 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
313 | 327 |
314 LayerTreeSettings settings_; | 328 LayerTreeSettings settings_; |
315 LayerTreeDebugState debug_state_; | 329 LayerTreeDebugState debug_state_; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 int64 total_num_cc_layers_will_use_lcd_text; | 378 int64 total_num_cc_layers_will_use_lcd_text; |
365 }; | 379 }; |
366 LCDTextMetrics lcd_text_metrics_; | 380 LCDTextMetrics lcd_text_metrics_; |
367 | 381 |
368 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 382 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
369 }; | 383 }; |
370 | 384 |
371 } // namespace cc | 385 } // namespace cc |
372 | 386 |
373 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 387 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |