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 <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void SetDebugState(const LayerTreeDebugState& debug_state); | 189 void SetDebugState(const LayerTreeDebugState& debug_state); |
190 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 190 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
191 | 191 |
192 bool has_gpu_rasterization_trigger() const { | 192 bool has_gpu_rasterization_trigger() const { |
193 return has_gpu_rasterization_trigger_; | 193 return has_gpu_rasterization_trigger_; |
194 } | 194 } |
195 void SetHasGpuRasterizationTrigger(bool has_trigger); | 195 void SetHasGpuRasterizationTrigger(bool has_trigger); |
196 bool UseGpuRasterization() const; | 196 bool UseGpuRasterization() const; |
197 | 197 |
198 void SetViewportSize(const gfx::Size& device_viewport_size); | 198 void SetViewportSize(const gfx::Size& device_viewport_size); |
199 void SetTopControlsLayoutHeight(float top_controls_layout_height); | 199 void SetTopControlsContentOffset(float offset); |
200 | 200 |
201 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 201 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
202 | 202 |
203 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 203 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
204 void SetPageScaleFactorAndLimits(float page_scale_factor, | 204 void SetPageScaleFactorAndLimits(float page_scale_factor, |
205 float min_page_scale_factor, | 205 float min_page_scale_factor, |
206 float max_page_scale_factor); | 206 float max_page_scale_factor); |
207 float page_scale_factor() const { return page_scale_factor_; } | 207 float page_scale_factor() const { return page_scale_factor_; } |
208 | 208 |
209 SkColor background_color() const { return background_color_; } | 209 SkColor background_color() const { return background_color_; } |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; | 380 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; |
381 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; | 381 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; |
382 | 382 |
383 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 383 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
384 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 384 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
385 | 385 |
386 const LayerTreeSettings settings_; | 386 const LayerTreeSettings settings_; |
387 LayerTreeDebugState debug_state_; | 387 LayerTreeDebugState debug_state_; |
388 | 388 |
389 gfx::Size device_viewport_size_; | 389 gfx::Size device_viewport_size_; |
390 float top_controls_layout_height_; | 390 float top_controls_content_offset_; |
391 float device_scale_factor_; | 391 float device_scale_factor_; |
392 | 392 |
393 bool visible_; | 393 bool visible_; |
394 | 394 |
395 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; | 395 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; |
396 | 396 |
397 float page_scale_factor_; | 397 float page_scale_factor_; |
398 float min_page_scale_factor_; | 398 float min_page_scale_factor_; |
399 float max_page_scale_factor_; | 399 float max_page_scale_factor_; |
400 gfx::Transform impl_transform_; | 400 gfx::Transform impl_transform_; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 453 |
454 ScopedPtrVector<SwapPromise> swap_promise_list_; | 454 ScopedPtrVector<SwapPromise> swap_promise_list_; |
455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
456 | 456 |
457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
458 }; | 458 }; |
459 | 459 |
460 } // namespace cc | 460 } // namespace cc |
461 | 461 |
462 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 462 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |