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

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

Issue 1782433002: CC Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasetests
Patch Set: Remove vtbl in LayerAnimationController. Fix formatting. Created 4 years, 9 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_unittest_animation.cc ('k') | cc/trees/layer_tree_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 LayerImpl* FindPendingTreeLayerById(int id); 101 LayerImpl* FindPendingTreeLayerById(int id);
102 bool PinchGestureActive() const; 102 bool PinchGestureActive() const;
103 BeginFrameArgs CurrentBeginFrameArgs() const; 103 BeginFrameArgs CurrentBeginFrameArgs() const;
104 base::TimeDelta CurrentBeginFrameInterval() const; 104 base::TimeDelta CurrentBeginFrameInterval() const;
105 gfx::Rect DeviceViewport() const; 105 gfx::Rect DeviceViewport() const;
106 gfx::Size DrawViewportSize() const; 106 gfx::Size DrawViewportSize() const;
107 const gfx::Rect ViewportRectForTilePriority() const; 107 const gfx::Rect ViewportRectForTilePriority() const;
108 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( 108 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController(
109 int scroll_layer_id); 109 int scroll_layer_id);
110 void DidAnimateScrollOffset(); 110 void DidAnimateScrollOffset();
111 void InputScrollAnimationFinished();
112 bool use_gpu_rasterization() const; 111 bool use_gpu_rasterization() const;
113 GpuRasterizationStatus GetGpuRasterizationStatus() const; 112 GpuRasterizationStatus GetGpuRasterizationStatus() const;
114 bool create_low_res_tiling() const; 113 bool create_low_res_tiling() const;
115 bool RequiresHighResToDraw() const; 114 bool RequiresHighResToDraw() const;
116 bool SmoothnessTakesPriority() const; 115 bool SmoothnessTakesPriority() const;
117 VideoFrameControllerClient* GetVideoFrameControllerClient() const; 116 VideoFrameControllerClient* GetVideoFrameControllerClient() const;
118 AnimationHost* animation_host() const { 117 AnimationHost* animation_host() const {
119 return layer_tree_host_impl_->animation_host(); 118 return layer_tree_host_impl_->animation_host();
120 } 119 }
121 120
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 void RemoveLayerShouldPushProperties(LayerImpl* layer); 302 void RemoveLayerShouldPushProperties(LayerImpl* layer);
304 std::unordered_set<LayerImpl*>& LayersThatShouldPushProperties(); 303 std::unordered_set<LayerImpl*>& LayersThatShouldPushProperties();
305 bool LayerNeedsPushPropertiesForTesting(LayerImpl* layer); 304 bool LayerNeedsPushPropertiesForTesting(LayerImpl* layer);
306 305
307 // These should be called by LayerImpl's ctor/dtor. 306 // These should be called by LayerImpl's ctor/dtor.
308 void RegisterLayer(LayerImpl* layer); 307 void RegisterLayer(LayerImpl* layer);
309 void UnregisterLayer(LayerImpl* layer); 308 void UnregisterLayer(LayerImpl* layer);
310 309
311 size_t NumLayers(); 310 size_t NumLayers();
312 311
313 AnimationRegistrar* GetAnimationRegistrar() const;
314
315 void DidBecomeActive(); 312 void DidBecomeActive();
316 313
317 // Set on the active tree when the viewport size recently changed 314 // Set on the active tree when the viewport size recently changed
318 // and the active tree's size is now out of date. 315 // and the active tree's size is now out of date.
319 bool ViewportSizeInvalid() const; 316 bool ViewportSizeInvalid() const;
320 void SetViewportSizeInvalid(); 317 void SetViewportSizeInvalid();
321 void ResetViewportSizeInvalid(); 318 void ResetViewportSizeInvalid();
322 319
323 // Used for accessing the task runner and debug assertions. 320 // Used for accessing the task runner and debug assertions.
324 TaskRunnerProvider* task_runner_provider() const; 321 TaskRunnerProvider* task_runner_provider() const;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 576
580 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 577 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
581 578
582 private: 579 private:
583 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 580 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
584 }; 581 };
585 582
586 } // namespace cc 583 } // namespace cc
587 584
588 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 585 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698