| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "cc/animation/animation_events.h" | 14 #include "cc/animation/animation_events.h" |
| 15 #include "cc/animation/animation_registrar.h" | 15 #include "cc/animation/animation_registrar.h" |
| 16 #include "cc/base/cc_export.h" | 16 #include "cc/base/cc_export.h" |
| 17 #include "cc/debug/latency_info.h" | |
| 18 #include "cc/input/input_handler.h" | 17 #include "cc/input/input_handler.h" |
| 19 #include "cc/input/layer_scroll_offset_delegate.h" | 18 #include "cc/input/layer_scroll_offset_delegate.h" |
| 20 #include "cc/input/top_controls_manager_client.h" | 19 #include "cc/input/top_controls_manager_client.h" |
| 21 #include "cc/layers/layer_lists.h" | 20 #include "cc/layers/layer_lists.h" |
| 22 #include "cc/layers/render_pass_sink.h" | 21 #include "cc/layers/render_pass_sink.h" |
| 23 #include "cc/output/output_surface_client.h" | 22 #include "cc/output/output_surface_client.h" |
| 24 #include "cc/output/renderer.h" | 23 #include "cc/output/renderer.h" |
| 25 #include "cc/quads/render_pass.h" | 24 #include "cc/quads/render_pass.h" |
| 26 #include "cc/resources/tile_manager.h" | 25 #include "cc/resources/tile_manager.h" |
| 27 #include "skia/ext/refptr.h" | 26 #include "skia/ext/refptr.h" |
| 28 #include "third_party/skia/include/core/SkColor.h" | 27 #include "third_party/skia/include/core/SkColor.h" |
| 29 #include "third_party/skia/include/core/SkPicture.h" | 28 #include "third_party/skia/include/core/SkPicture.h" |
| 29 #include "ui/base/latency_info.h" |
| 30 #include "ui/gfx/rect.h" | 30 #include "ui/gfx/rect.h" |
| 31 | 31 |
| 32 namespace cc { | 32 namespace cc { |
| 33 | 33 |
| 34 class CompletionEvent; | 34 class CompletionEvent; |
| 35 class CompositorFrameMetadata; | 35 class CompositorFrameMetadata; |
| 36 class DebugRectHistory; | 36 class DebugRectHistory; |
| 37 class FrameRateCounter; | 37 class FrameRateCounter; |
| 38 class LayerImpl; | 38 class LayerImpl; |
| 39 class LayerTreeHostImplTimeSourceAdapter; | 39 class LayerTreeHostImplTimeSourceAdapter; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 virtual ~FrameData(); | 139 virtual ~FrameData(); |
| 140 | 140 |
| 141 std::vector<gfx::Rect> occluding_screen_space_rects; | 141 std::vector<gfx::Rect> occluding_screen_space_rects; |
| 142 std::vector<gfx::Rect> non_occluding_screen_space_rects; | 142 std::vector<gfx::Rect> non_occluding_screen_space_rects; |
| 143 RenderPassList render_passes; | 143 RenderPassList render_passes; |
| 144 RenderPassIdHashMap render_passes_by_id; | 144 RenderPassIdHashMap render_passes_by_id; |
| 145 const LayerImplList* render_surface_layer_list; | 145 const LayerImplList* render_surface_layer_list; |
| 146 LayerImplList will_draw_layers; | 146 LayerImplList will_draw_layers; |
| 147 bool contains_incomplete_tile; | 147 bool contains_incomplete_tile; |
| 148 bool has_no_damage; | 148 bool has_no_damage; |
| 149 LatencyInfo latency_info; | 149 ui::LatencyInfo latency_info; |
| 150 | 150 |
| 151 // RenderPassSink implementation. | 151 // RenderPassSink implementation. |
| 152 virtual void AppendRenderPass(scoped_ptr<RenderPass> render_pass) OVERRIDE; | 152 virtual void AppendRenderPass(scoped_ptr<RenderPass> render_pass) OVERRIDE; |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 virtual void BeginCommit(); | 155 virtual void BeginCommit(); |
| 156 virtual void CommitComplete(); | 156 virtual void CommitComplete(); |
| 157 virtual void Animate(base::TimeTicks monotonic_time, | 157 virtual void Animate(base::TimeTicks monotonic_time, |
| 158 base::Time wall_clock_time); | 158 base::Time wall_clock_time); |
| 159 virtual void UpdateAnimationState(bool start_ready_animations); | 159 virtual void UpdateAnimationState(bool start_ready_animations); |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 scoped_ptr<AnimationRegistrar> animation_registrar_; | 506 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 507 | 507 |
| 508 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 508 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 509 | 509 |
| 510 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 510 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 511 }; | 511 }; |
| 512 | 512 |
| 513 } // namespace cc | 513 } // namespace cc |
| 514 | 514 |
| 515 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 515 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |