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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // LayerAnimationValueProvider implementation. 102 // LayerAnimationValueProvider implementation.
103 gfx::ScrollOffset ScrollOffsetForAnimation() const override; 103 gfx::ScrollOffset ScrollOffsetForAnimation() const override;
104 104
105 // LayerAnimationValueObserver implementation. 105 // LayerAnimationValueObserver implementation.
106 void OnFilterAnimated(const FilterOperations& filters) override; 106 void OnFilterAnimated(const FilterOperations& filters) override;
107 void OnOpacityAnimated(float opacity) override; 107 void OnOpacityAnimated(float opacity) override;
108 void OnTransformAnimated(const gfx::Transform& transform) override; 108 void OnTransformAnimated(const gfx::Transform& transform) override;
109 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override; 109 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override;
110 void OnAnimationWaitingForDeletion() override; 110 void OnAnimationWaitingForDeletion() override;
111 void OnScrollOffsetAnimationRemoved() override;
111 bool IsActive() const override; 112 bool IsActive() const override;
112 113
113 // AnimationDelegate implementation. 114 // AnimationDelegate implementation.
114 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 115 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
115 Animation::TargetProperty target_property, 116 Animation::TargetProperty target_property,
116 int group) override{}; 117 int group) override{};
117 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 118 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
118 Animation::TargetProperty target_property, 119 Animation::TargetProperty target_property,
119 int group) override; 120 int group) override;
120 121
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 LayerImpl* scrollbar_clip_layer, 398 LayerImpl* scrollbar_clip_layer,
398 bool on_resize) const; 399 bool on_resize) const;
399 void SetScrollDelta(const gfx::Vector2dF& scroll_delta); 400 void SetScrollDelta(const gfx::Vector2dF& scroll_delta);
400 gfx::Vector2dF ScrollDelta() const; 401 gfx::Vector2dF ScrollDelta() const;
401 402
402 gfx::ScrollOffset TotalScrollOffset() const; 403 gfx::ScrollOffset TotalScrollOffset() const;
403 404
404 void SetSentScrollDelta(const gfx::Vector2dF& sent_scroll_delta); 405 void SetSentScrollDelta(const gfx::Vector2dF& sent_scroll_delta);
405 gfx::Vector2dF sent_scroll_delta() const { return sent_scroll_delta_; } 406 gfx::Vector2dF sent_scroll_delta() const { return sent_scroll_delta_; }
406 407
408 void ClearScrollDeltaAtActivation();
409
407 // Returns the delta of the scroll that was outside of the bounds of the 410 // Returns the delta of the scroll that was outside of the bounds of the
408 // initial scroll 411 // initial scroll
409 gfx::Vector2dF ScrollBy(const gfx::Vector2dF& scroll); 412 gfx::Vector2dF ScrollBy(const gfx::Vector2dF& scroll);
410 413
411 void SetScrollClipLayer(int scroll_clip_layer_id); 414 void SetScrollClipLayer(int scroll_clip_layer_id);
412 LayerImpl* scroll_clip_layer() const { return scroll_clip_layer_; } 415 LayerImpl* scroll_clip_layer() const { return scroll_clip_layer_; }
413 bool scrollable() const { return !!scroll_clip_layer_; } 416 bool scrollable() const { return !!scroll_clip_layer_; }
414 417
415 void set_user_scrollable_horizontal(bool scrollable) { 418 void set_user_scrollable_horizontal(bool scrollable) {
416 user_scrollable_horizontal_ = scrollable; 419 user_scrollable_horizontal_ = scrollable;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 // Tracks if drawing-related properties have changed since last redraw. 642 // Tracks if drawing-related properties have changed since last redraw.
640 bool layer_property_changed_ : 1; 643 bool layer_property_changed_ : 1;
641 644
642 bool masks_to_bounds_ : 1; 645 bool masks_to_bounds_ : 1;
643 bool contents_opaque_ : 1; 646 bool contents_opaque_ : 1;
644 bool is_root_for_isolated_group_ : 1; 647 bool is_root_for_isolated_group_ : 1;
645 bool use_parent_backface_visibility_ : 1; 648 bool use_parent_backface_visibility_ : 1;
646 bool draw_checkerboard_for_missing_tiles_ : 1; 649 bool draw_checkerboard_for_missing_tiles_ : 1;
647 bool draws_content_ : 1; 650 bool draws_content_ : 1;
648 bool hide_layer_and_subtree_ : 1; 651 bool hide_layer_and_subtree_ : 1;
652 bool clear_scroll_delta_at_activation_ : 1;
649 653
650 // Cache transform_'s invertibility. 654 // Cache transform_'s invertibility.
651 bool transform_is_invertible_ : 1; 655 bool transform_is_invertible_ : 1;
652 656
653 // Set for the layer that other layers are fixed to. 657 // Set for the layer that other layers are fixed to.
654 bool is_container_for_fixed_position_layers_ : 1; 658 bool is_container_for_fixed_position_layers_ : 1;
655 Region non_fast_scrollable_region_; 659 Region non_fast_scrollable_region_;
656 Region touch_event_handler_region_; 660 Region touch_event_handler_region_;
657 SkColor background_color_; 661 SkColor background_color_;
658 662
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 DrawProperties<LayerImpl> draw_properties_; 723 DrawProperties<LayerImpl> draw_properties_;
720 724
721 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 725 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
722 scoped_ptr<RenderSurfaceImpl> render_surface_; 726 scoped_ptr<RenderSurfaceImpl> render_surface_;
723 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 727 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
724 }; 728 };
725 729
726 } // namespace cc 730 } // namespace cc
727 731
728 #endif // CC_LAYERS_LAYER_IMPL_H_ 732 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698