| 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 |
| 11 #include <limits> | 11 #include <limits> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/cancelable_callback.h" | 16 #include "base/cancelable_callback.h" |
| 17 #include "base/containers/hash_tables.h" | 17 #include "base/containers/hash_tables.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
| 22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
| 23 #include "cc/animation/animation_events.h" | 23 #include "cc/animation/animation.h" |
| 24 #include "cc/base/cc_export.h" | 24 #include "cc/base/cc_export.h" |
| 25 #include "cc/debug/frame_timing_tracker.h" | 25 #include "cc/debug/frame_timing_tracker.h" |
| 26 #include "cc/debug/micro_benchmark.h" | 26 #include "cc/debug/micro_benchmark.h" |
| 27 #include "cc/debug/micro_benchmark_controller.h" | 27 #include "cc/debug/micro_benchmark_controller.h" |
| 28 #include "cc/input/input_handler.h" | 28 #include "cc/input/input_handler.h" |
| 29 #include "cc/input/layer_selection_bound.h" | 29 #include "cc/input/layer_selection_bound.h" |
| 30 #include "cc/input/scrollbar.h" | 30 #include "cc/input/scrollbar.h" |
| 31 #include "cc/input/top_controls_state.h" | 31 #include "cc/input/top_controls_state.h" |
| 32 #include "cc/layers/layer_lists.h" | 32 #include "cc/layers/layer_lists.h" |
| 33 #include "cc/output/output_surface.h" | 33 #include "cc/output/output_surface.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 44 #include "cc/trees/proxy.h" | 44 #include "cc/trees/proxy.h" |
| 45 #include "cc/trees/swap_promise_monitor.h" | 45 #include "cc/trees/swap_promise_monitor.h" |
| 46 #include "third_party/skia/include/core/SkColor.h" | 46 #include "third_party/skia/include/core/SkColor.h" |
| 47 #include "ui/gfx/geometry/rect.h" | 47 #include "ui/gfx/geometry/rect.h" |
| 48 | 48 |
| 49 namespace gpu { | 49 namespace gpu { |
| 50 class GpuMemoryBufferManager; | 50 class GpuMemoryBufferManager; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace cc { | 53 namespace cc { |
| 54 |
| 55 class AnimationEvents; |
| 54 class AnimationRegistrar; | 56 class AnimationRegistrar; |
| 55 class AnimationHost; | 57 class AnimationHost; |
| 56 class BeginFrameSource; | 58 class BeginFrameSource; |
| 57 class HeadsUpDisplayLayer; | 59 class HeadsUpDisplayLayer; |
| 58 class Layer; | 60 class Layer; |
| 59 class LayerTreeHostImpl; | 61 class LayerTreeHostImpl; |
| 60 class LayerTreeHostImplClient; | 62 class LayerTreeHostImplClient; |
| 61 class LayerTreeHostSingleThreadClient; | 63 class LayerTreeHostSingleThreadClient; |
| 62 class PropertyTrees; | 64 class PropertyTrees; |
| 63 class Region; | 65 class Region; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 bool needs_meta_info_recomputation); | 174 bool needs_meta_info_recomputation); |
| 173 void SetNeedsRedraw(); | 175 void SetNeedsRedraw(); |
| 174 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); | 176 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); |
| 175 bool CommitRequested() const; | 177 bool CommitRequested() const; |
| 176 bool BeginMainFrameRequested() const; | 178 bool BeginMainFrameRequested() const; |
| 177 | 179 |
| 178 void SetNextCommitWaitsForActivation(); | 180 void SetNextCommitWaitsForActivation(); |
| 179 | 181 |
| 180 void SetNextCommitForcesRedraw(); | 182 void SetNextCommitForcesRedraw(); |
| 181 | 183 |
| 182 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events); | 184 void SetAnimationEvents(scoped_ptr<AnimationEvents> events); |
| 183 | 185 |
| 184 void SetRootLayer(scoped_refptr<Layer> root_layer); | 186 void SetRootLayer(scoped_refptr<Layer> root_layer); |
| 185 Layer* root_layer() { return root_layer_.get(); } | 187 Layer* root_layer() { return root_layer_.get(); } |
| 186 const Layer* root_layer() const { return root_layer_.get(); } | 188 const Layer* root_layer() const { return root_layer_.get(); } |
| 187 const Layer* overscroll_elasticity_layer() const { | 189 const Layer* overscroll_elasticity_layer() const { |
| 188 return overscroll_elasticity_layer_.get(); | 190 return overscroll_elasticity_layer_.get(); |
| 189 } | 191 } |
| 190 const Layer* page_scale_layer() const { return page_scale_layer_.get(); } | 192 const Layer* page_scale_layer() const { return page_scale_layer_.get(); } |
| 191 void RegisterViewportLayers(scoped_refptr<Layer> overscroll_elasticity_layer, | 193 void RegisterViewportLayers(scoped_refptr<Layer> overscroll_elasticity_layer, |
| 192 scoped_refptr<Layer> page_scale_layer, | 194 scoped_refptr<Layer> page_scale_layer, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 | 522 |
| 521 uint32_t surface_id_namespace_; | 523 uint32_t surface_id_namespace_; |
| 522 uint32_t next_surface_sequence_; | 524 uint32_t next_surface_sequence_; |
| 523 | 525 |
| 524 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 526 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 525 }; | 527 }; |
| 526 | 528 |
| 527 } // namespace cc | 529 } // namespace cc |
| 528 | 530 |
| 529 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 531 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |