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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 class AnimationEvents; | 55 class AnimationEvents; |
56 class AnimationRegistrar; | 56 class AnimationRegistrar; |
57 class AnimationHost; | 57 class AnimationHost; |
58 class BeginFrameSource; | 58 class BeginFrameSource; |
59 class HeadsUpDisplayLayer; | 59 class HeadsUpDisplayLayer; |
60 class Layer; | 60 class Layer; |
61 class LayerTreeHostImpl; | 61 class LayerTreeHostImpl; |
62 class LayerTreeHostImplClient; | 62 class LayerTreeHostImplClient; |
63 class LayerTreeHostSingleThreadClient; | 63 class LayerTreeHostSingleThreadClient; |
| 64 class LayerTreeMutator; |
64 class PropertyTrees; | 65 class PropertyTrees; |
65 class Region; | 66 class Region; |
66 class RenderingStatsInstrumentation; | 67 class RenderingStatsInstrumentation; |
67 class ResourceProvider; | 68 class ResourceProvider; |
68 class ResourceUpdateQueue; | 69 class ResourceUpdateQueue; |
69 class SharedBitmapManager; | 70 class SharedBitmapManager; |
70 class TaskGraphRunner; | 71 class TaskGraphRunner; |
71 class TopControlsManager; | 72 class TopControlsManager; |
72 class UIResourceRequest; | 73 class UIResourceRequest; |
73 struct PendingPageScaleAnimation; | 74 struct PendingPageScaleAnimation; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 bool visible() const { return visible_; } | 242 bool visible() const { return visible_; } |
242 | 243 |
243 void SetThrottleFrameProduction(bool throttle); | 244 void SetThrottleFrameProduction(bool throttle); |
244 | 245 |
245 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 246 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
246 bool use_anchor, | 247 bool use_anchor, |
247 float scale, | 248 float scale, |
248 base::TimeDelta duration); | 249 base::TimeDelta duration); |
249 | 250 |
250 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 251 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 252 void ApplyMutations(LayerTreeMutations* mutations); |
251 void SetImplTransform(const gfx::Transform& transform); | 253 void SetImplTransform(const gfx::Transform& transform); |
252 | 254 |
253 void SetDeviceScaleFactor(float device_scale_factor); | 255 void SetDeviceScaleFactor(float device_scale_factor); |
254 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); | 256 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
255 | 257 |
256 float device_scale_factor() const { return device_scale_factor_; } | 258 float device_scale_factor() const { return device_scale_factor_; } |
257 | 259 |
258 void UpdateTopControlsState(TopControlsState constraints, | 260 void UpdateTopControlsState(TopControlsState constraints, |
259 TopControlsState current, | 261 TopControlsState current, |
260 bool animate); | 262 bool animate); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 324 |
323 PropertyTrees* property_trees() { return &property_trees_; } | 325 PropertyTrees* property_trees() { return &property_trees_; } |
324 bool needs_meta_info_recomputation() { | 326 bool needs_meta_info_recomputation() { |
325 return needs_meta_info_recomputation_; | 327 return needs_meta_info_recomputation_; |
326 } | 328 } |
327 | 329 |
328 void RecordFrameTimingEvents( | 330 void RecordFrameTimingEvents( |
329 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 331 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
330 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); | 332 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); |
331 | 333 |
| 334 void SetLayerTreeMutator(LayerTreeMutator* mutator); |
| 335 |
332 Layer* LayerById(int id) const; | 336 Layer* LayerById(int id) const; |
333 void RegisterLayer(Layer* layer); | 337 void RegisterLayer(Layer* layer); |
334 void UnregisterLayer(Layer* layer); | 338 void UnregisterLayer(Layer* layer); |
335 // LayerTreeMutatorsClient implementation. | 339 // LayerTreeMutatorsClient implementation. |
336 bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const override; | 340 bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const override; |
337 void SetMutatorsNeedCommit() override; | 341 void SetMutatorsNeedCommit() override; |
338 void SetMutatorsNeedRebuildPropertyTrees() override; | 342 void SetMutatorsNeedRebuildPropertyTrees() override; |
339 void SetLayerFilterMutated(int layer_id, | 343 void SetLayerFilterMutated(int layer_id, |
340 LayerTreeType tree_type, | 344 LayerTreeType tree_type, |
341 const FilterOperations& filters) override; | 345 const FilterOperations& filters) override; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 542 |
539 uint32_t surface_id_namespace_; | 543 uint32_t surface_id_namespace_; |
540 uint32_t next_surface_sequence_; | 544 uint32_t next_surface_sequence_; |
541 | 545 |
542 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 546 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
543 }; | 547 }; |
544 | 548 |
545 } // namespace cc | 549 } // namespace cc |
546 | 550 |
547 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 551 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |