| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 void SetDeviceScaleFactor(float device_scale_factor); | 248 void SetDeviceScaleFactor(float device_scale_factor); |
| 249 float device_scale_factor() const { return device_scale_factor_; } | 249 float device_scale_factor() const { return device_scale_factor_; } |
| 250 | 250 |
| 251 void UpdateTopControlsState(TopControlsState constraints, | 251 void UpdateTopControlsState(TopControlsState constraints, |
| 252 TopControlsState current, | 252 TopControlsState current, |
| 253 bool animate); | 253 bool animate); |
| 254 | 254 |
| 255 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 255 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| 256 | 256 |
| 257 Proxy* proxy() const { return proxy_.get(); } | 257 Proxy* proxy() const { return proxy_.get(); } |
| 258 | |
| 259 AnimationRegistrar* animation_registrar() const { | 258 AnimationRegistrar* animation_registrar() const { |
| 260 return animation_registrar_.get(); | 259 return animation_registrar_.get(); |
| 261 } | 260 } |
| 262 AnimationHost* animation_host() const { return animation_host_.get(); } | 261 AnimationHost* animation_host() const { return animation_host_.get(); } |
| 263 | 262 |
| 264 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 263 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
| 265 | 264 |
| 266 // CreateUIResource creates a resource given a bitmap. The bitmap is | 265 // CreateUIResource creates a resource given a bitmap. The bitmap is |
| 267 // generated via an interface function, which is called when initializing the | 266 // generated via an interface function, which is called when initializing the |
| 268 // resource and when the resource has been lost (due to lost context). The | 267 // resource and when the resource has been lost (due to lost context). The |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 bool active_tree, | 324 bool active_tree, |
| 326 float opacity) override; | 325 float opacity) override; |
| 327 void SetLayerTransformMutated(int layer_id, | 326 void SetLayerTransformMutated(int layer_id, |
| 328 bool active_tree, | 327 bool active_tree, |
| 329 const gfx::Transform& transform) override; | 328 const gfx::Transform& transform) override; |
| 330 void SetLayerScrollOffsetMutated( | 329 void SetLayerScrollOffsetMutated( |
| 331 int layer_id, | 330 int layer_id, |
| 332 bool active_tree, | 331 bool active_tree, |
| 333 const gfx::ScrollOffset& scroll_offset) override; | 332 const gfx::ScrollOffset& scroll_offset) override; |
| 334 | 333 |
| 334 bool IsAnimatingFilterProperty(const Layer* layer) const; |
| 335 bool IsAnimatingOpacityProperty(const Layer* layer) const; |
| 336 bool IsAnimatingTransformProperty(const Layer* layer) const; |
| 337 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; |
| 338 bool HasAnyAnimation(const Layer* layer) const; |
| 339 bool HasActiveAnimation(const Layer* layer) const; |
| 340 |
| 335 protected: | 341 protected: |
| 336 LayerTreeHost(LayerTreeHostClient* client, | 342 LayerTreeHost(LayerTreeHostClient* client, |
| 337 SharedBitmapManager* shared_bitmap_manager, | 343 SharedBitmapManager* shared_bitmap_manager, |
| 338 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 344 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 339 TaskGraphRunner* task_graph_runner, | 345 TaskGraphRunner* task_graph_runner, |
| 340 const LayerTreeSettings& settings); | 346 const LayerTreeSettings& settings); |
| 341 void InitializeThreaded( | 347 void InitializeThreaded( |
| 342 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 348 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 343 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 349 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
| 344 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 350 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 487 |
| 482 uint32_t surface_id_namespace_; | 488 uint32_t surface_id_namespace_; |
| 483 uint32_t next_surface_sequence_; | 489 uint32_t next_surface_sequence_; |
| 484 | 490 |
| 485 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 491 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 486 }; | 492 }; |
| 487 | 493 |
| 488 } // namespace cc | 494 } // namespace cc |
| 489 | 495 |
| 490 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 496 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |