| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 bool active_tree, | 326 bool active_tree, |
| 328 float opacity) override; | 327 float opacity) override; |
| 329 void SetLayerTransformMutated(int layer_id, | 328 void SetLayerTransformMutated(int layer_id, |
| 330 bool active_tree, | 329 bool active_tree, |
| 331 const gfx::Transform& transform) override; | 330 const gfx::Transform& transform) override; |
| 332 void SetLayerScrollOffsetMutated( | 331 void SetLayerScrollOffsetMutated( |
| 333 int layer_id, | 332 int layer_id, |
| 334 bool active_tree, | 333 bool active_tree, |
| 335 const gfx::ScrollOffset& scroll_offset) override; | 334 const gfx::ScrollOffset& scroll_offset) override; |
| 336 | 335 |
| 336 bool ScrollOffsetAnimationWasInterrupted(const Layer* layer) const; |
| 337 bool IsAnimatingFilterProperty(const Layer* layer) const; |
| 338 bool IsAnimatingOpacityProperty(const Layer* layer) const; |
| 339 bool IsAnimatingTransformProperty(const Layer* layer) const; |
| 340 bool HasPotentiallyRunningOpacityAnimation(const Layer* layer) const; |
| 341 bool HasPotentiallyRunningTransformAnimation(const Layer* layer) const; |
| 342 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; |
| 343 bool HasAnyAnimation(const Layer* layer) const; |
| 344 bool HasActiveAnimation(const Layer* layer) const; |
| 345 |
| 337 protected: | 346 protected: |
| 338 LayerTreeHost(LayerTreeHostClient* client, | 347 LayerTreeHost(LayerTreeHostClient* client, |
| 339 SharedBitmapManager* shared_bitmap_manager, | 348 SharedBitmapManager* shared_bitmap_manager, |
| 340 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 349 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 341 TaskGraphRunner* task_graph_runner, | 350 TaskGraphRunner* task_graph_runner, |
| 342 const LayerTreeSettings& settings); | 351 const LayerTreeSettings& settings); |
| 343 void InitializeThreaded( | 352 void InitializeThreaded( |
| 344 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 353 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 345 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 354 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
| 346 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 355 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 493 |
| 485 uint32_t surface_id_namespace_; | 494 uint32_t surface_id_namespace_; |
| 486 uint32_t next_surface_sequence_; | 495 uint32_t next_surface_sequence_; |
| 487 | 496 |
| 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 497 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 489 }; | 498 }; |
| 490 | 499 |
| 491 } // namespace cc | 500 } // namespace cc |
| 492 | 501 |
| 493 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 502 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |