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

Side by Side Diff: cc/layers/layer.h

Issue 1548883002: Revert of Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/blink/web_layer_impl.cc ('k') | cc/layers/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // of |proto| is only read if |needs_push_properties_| is set. 406 // of |proto| is only read if |needs_push_properties_| is set.
407 void FromLayerPropertiesProto(const proto::LayerProperties& proto); 407 void FromLayerPropertiesProto(const proto::LayerProperties& proto);
408 408
409 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } 409 LayerTreeHost* layer_tree_host() { return layer_tree_host_; }
410 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } 410 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; }
411 411
412 bool AddAnimation(scoped_ptr<Animation> animation); 412 bool AddAnimation(scoped_ptr<Animation> animation);
413 void PauseAnimation(int animation_id, double time_offset); 413 void PauseAnimation(int animation_id, double time_offset);
414 void RemoveAnimation(int animation_id); 414 void RemoveAnimation(int animation_id);
415 void RemoveAnimation(int animation_id, Animation::TargetProperty property); 415 void RemoveAnimation(int animation_id, Animation::TargetProperty property);
416 void AbortAnimation(int animation_id);
417 LayerAnimationController* layer_animation_controller() const { 416 LayerAnimationController* layer_animation_controller() const {
418 return layer_animation_controller_.get(); 417 return layer_animation_controller_.get();
419 } 418 }
420 void SetLayerAnimationControllerForTest( 419 void SetLayerAnimationControllerForTest(
421 scoped_refptr<LayerAnimationController> controller); 420 scoped_refptr<LayerAnimationController> controller);
422 421
423 void set_layer_animation_delegate(AnimationDelegate* delegate) { 422 void set_layer_animation_delegate(AnimationDelegate* delegate) {
424 DCHECK(layer_animation_controller_); 423 DCHECK(layer_animation_controller_);
425 layer_animation_controller_->set_layer_animation_delegate(delegate); 424 layer_animation_controller_->set_layer_animation_delegate(delegate);
426 } 425 }
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 789
791 std::vector<FrameTimingRequest> frame_timing_requests_; 790 std::vector<FrameTimingRequest> frame_timing_requests_;
792 bool frame_timing_requests_dirty_; 791 bool frame_timing_requests_dirty_;
793 792
794 DISALLOW_COPY_AND_ASSIGN(Layer); 793 DISALLOW_COPY_AND_ASSIGN(Layer);
795 }; 794 };
796 795
797 } // namespace cc 796 } // namespace cc
798 797
799 #endif // CC_LAYERS_LAYER_H_ 798 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698