| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "cc/animation/animation_events.h" | |
| 19 #include "cc/animation/animation_registrar.h" | 18 #include "cc/animation/animation_registrar.h" |
| 20 #include "cc/animation/scrollbar_animation_controller.h" | 19 #include "cc/animation/scrollbar_animation_controller.h" |
| 21 #include "cc/base/cc_export.h" | 20 #include "cc/base/cc_export.h" |
| 22 #include "cc/base/synced_property.h" | 21 #include "cc/base/synced_property.h" |
| 23 #include "cc/debug/frame_timing_tracker.h" | 22 #include "cc/debug/frame_timing_tracker.h" |
| 24 #include "cc/debug/micro_benchmark_controller_impl.h" | 23 #include "cc/debug/micro_benchmark_controller_impl.h" |
| 25 #include "cc/input/input_handler.h" | 24 #include "cc/input/input_handler.h" |
| 26 #include "cc/input/top_controls_manager_client.h" | 25 #include "cc/input/top_controls_manager_client.h" |
| 27 #include "cc/layers/layer_lists.h" | 26 #include "cc/layers/layer_lists.h" |
| 28 #include "cc/layers/render_pass_sink.h" | 27 #include "cc/layers/render_pass_sink.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 44 #include "skia/ext/refptr.h" | 43 #include "skia/ext/refptr.h" |
| 45 #include "third_party/skia/include/core/SkColor.h" | 44 #include "third_party/skia/include/core/SkColor.h" |
| 46 #include "ui/gfx/geometry/rect.h" | 45 #include "ui/gfx/geometry/rect.h" |
| 47 | 46 |
| 48 namespace gfx { | 47 namespace gfx { |
| 49 class ScrollOffset; | 48 class ScrollOffset; |
| 50 } | 49 } |
| 51 | 50 |
| 52 namespace cc { | 51 namespace cc { |
| 53 | 52 |
| 53 class AnimationEvents; |
| 54 class AnimationHost; | 54 class AnimationHost; |
| 55 class CompletionEvent; | 55 class CompletionEvent; |
| 56 class CompositorFrameMetadata; | 56 class CompositorFrameMetadata; |
| 57 class DebugRectHistory; | 57 class DebugRectHistory; |
| 58 class EvictionTilePriorityQueue; | 58 class EvictionTilePriorityQueue; |
| 59 class FrameRateCounter; | 59 class FrameRateCounter; |
| 60 class LayerImpl; | 60 class LayerImpl; |
| 61 class LayerTreeImpl; | 61 class LayerTreeImpl; |
| 62 class MemoryHistory; | 62 class MemoryHistory; |
| 63 class PageScaleAnimation; | 63 class PageScaleAnimation; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Please call these 3 functions through | 104 // Please call these 3 functions through |
| 105 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 105 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
| 106 // SetNeedsOneBeginImplFrame(). | 106 // SetNeedsOneBeginImplFrame(). |
| 107 virtual void SetNeedsRedrawOnImplThread() = 0; | 107 virtual void SetNeedsRedrawOnImplThread() = 0; |
| 108 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; | 108 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; |
| 109 virtual void SetNeedsOneBeginImplFrameOnImplThread() = 0; | 109 virtual void SetNeedsOneBeginImplFrameOnImplThread() = 0; |
| 110 virtual void SetNeedsCommitOnImplThread() = 0; | 110 virtual void SetNeedsCommitOnImplThread() = 0; |
| 111 virtual void SetNeedsPrepareTilesOnImplThread() = 0; | 111 virtual void SetNeedsPrepareTilesOnImplThread() = 0; |
| 112 virtual void SetVideoNeedsBeginFrames(bool needs_begin_frames) = 0; | 112 virtual void SetVideoNeedsBeginFrames(bool needs_begin_frames) = 0; |
| 113 virtual void PostAnimationEventsToMainThreadOnImplThread( | 113 virtual void PostAnimationEventsToMainThreadOnImplThread( |
| 114 scoped_ptr<AnimationEventsVector> events) = 0; | 114 scoped_ptr<AnimationEvents> events) = 0; |
| 115 virtual bool IsInsideDraw() = 0; | 115 virtual bool IsInsideDraw() = 0; |
| 116 virtual void RenewTreePriority() = 0; | 116 virtual void RenewTreePriority() = 0; |
| 117 virtual void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 117 virtual void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
| 118 base::TimeDelta delay) = 0; | 118 base::TimeDelta delay) = 0; |
| 119 virtual void DidActivateSyncTree() = 0; | 119 virtual void DidActivateSyncTree() = 0; |
| 120 virtual void WillPrepareTiles() = 0; | 120 virtual void WillPrepareTiles() = 0; |
| 121 virtual void DidPrepareTiles() = 0; | 121 virtual void DidPrepareTiles() = 0; |
| 122 | 122 |
| 123 // Called when page scale animation has completed on the impl thread. | 123 // Called when page scale animation has completed on the impl thread. |
| 124 virtual void DidCompletePageScaleAnimationOnImplThread() = 0; | 124 virtual void DidCompletePageScaleAnimationOnImplThread() = 0; |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 829 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 830 | 830 |
| 831 scoped_ptr<Viewport> viewport_; | 831 scoped_ptr<Viewport> viewport_; |
| 832 | 832 |
| 833 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 833 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 834 }; | 834 }; |
| 835 | 835 |
| 836 } // namespace cc | 836 } // namespace cc |
| 837 | 837 |
| 838 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 838 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |