Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 1584743002: CC Animation: Replace AnimiationEventsVector with AnimiationEvents class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 830 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
831 831
832 scoped_ptr<Viewport> viewport_; 832 scoped_ptr<Viewport> viewport_;
833 833
834 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 834 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
835 }; 835 };
836 836
837 } // namespace cc 837 } // namespace cc
838 838
839 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 839 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698