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

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

Issue 864003002: cc: Make LayerAnimationController keep state for clearing scroll delta (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 5 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/animation/layer_animation_value_observer.h ('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 10
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 600
601 // LayerAnimationValueProvider implementation. 601 // LayerAnimationValueProvider implementation.
602 gfx::ScrollOffset ScrollOffsetForAnimation() const override; 602 gfx::ScrollOffset ScrollOffsetForAnimation() const override;
603 603
604 // LayerAnimationValueObserver implementation. 604 // LayerAnimationValueObserver implementation.
605 void OnFilterAnimated(const FilterOperations& filters) override; 605 void OnFilterAnimated(const FilterOperations& filters) override;
606 void OnOpacityAnimated(float opacity) override; 606 void OnOpacityAnimated(float opacity) override;
607 void OnTransformAnimated(const gfx::Transform& transform) override; 607 void OnTransformAnimated(const gfx::Transform& transform) override;
608 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override; 608 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override;
609 void OnAnimationWaitingForDeletion() override; 609 void OnAnimationWaitingForDeletion() override;
610 void OnScrollOffsetAnimationRemoved() override;
611 bool IsActive() const override; 610 bool IsActive() const override;
612 611
613 // If this layer has a scroll parent, it removes |this| from its list of 612 // If this layer has a scroll parent, it removes |this| from its list of
614 // scroll children. 613 // scroll children.
615 void RemoveFromScrollTree(); 614 void RemoveFromScrollTree();
616 615
617 // If this layer has a clip parent, it removes |this| from its list of clip 616 // If this layer has a clip parent, it removes |this| from its list of clip
618 // children. 617 // children.
619 void RemoveFromClipTree(); 618 void RemoveFromClipTree();
620 619
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 bool hide_layer_and_subtree_ : 1; 652 bool hide_layer_and_subtree_ : 1;
654 bool masks_to_bounds_ : 1; 653 bool masks_to_bounds_ : 1;
655 bool contents_opaque_ : 1; 654 bool contents_opaque_ : 1;
656 bool double_sided_ : 1; 655 bool double_sided_ : 1;
657 bool should_flatten_transform_ : 1; 656 bool should_flatten_transform_ : 1;
658 bool use_parent_backface_visibility_ : 1; 657 bool use_parent_backface_visibility_ : 1;
659 bool draw_checkerboard_for_missing_tiles_ : 1; 658 bool draw_checkerboard_for_missing_tiles_ : 1;
660 bool force_render_surface_ : 1; 659 bool force_render_surface_ : 1;
661 bool transform_is_invertible_ : 1; 660 bool transform_is_invertible_ : 1;
662 bool has_render_surface_ : 1; 661 bool has_render_surface_ : 1;
663 bool clear_impl_scroll_delta_ : 1;
664 Region non_fast_scrollable_region_; 662 Region non_fast_scrollable_region_;
665 Region touch_event_handler_region_; 663 Region touch_event_handler_region_;
666 gfx::PointF position_; 664 gfx::PointF position_;
667 SkColor background_color_; 665 SkColor background_color_;
668 float opacity_; 666 float opacity_;
669 SkXfermode::Mode blend_mode_; 667 SkXfermode::Mode blend_mode_;
670 FilterOperations filters_; 668 FilterOperations filters_;
671 FilterOperations background_filters_; 669 FilterOperations background_filters_;
672 LayerPositionConstraint position_constraint_; 670 LayerPositionConstraint position_constraint_;
673 Layer* scroll_parent_; 671 Layer* scroll_parent_;
(...skipping 24 matching lines...) Expand all
698 // and should get removed once it is no longer needed on main thread. 696 // and should get removed once it is no longer needed on main thread.
699 scoped_ptr<RenderSurface> render_surface_; 697 scoped_ptr<RenderSurface> render_surface_;
700 698
701 gfx::Rect visible_rect_from_property_trees_; 699 gfx::Rect visible_rect_from_property_trees_;
702 DISALLOW_COPY_AND_ASSIGN(Layer); 700 DISALLOW_COPY_AND_ASSIGN(Layer);
703 }; 701 };
704 702
705 } // namespace cc 703 } // namespace cc
706 704
707 #endif // CC_LAYERS_LAYER_H_ 705 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/animation/layer_animation_value_observer.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698