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

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

Issue 1688563002: cc :: Move some tracking of layer_property_changed to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/layers/layer.cc ('k') | cc/layers/layer_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_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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 float GetIdealContentsScale() const; 694 float GetIdealContentsScale() const;
695 695
696 bool was_ever_ready_since_last_transform_animation() const { 696 bool was_ever_ready_since_last_transform_animation() const {
697 return was_ever_ready_since_last_transform_animation_; 697 return was_ever_ready_since_last_transform_animation_;
698 } 698 }
699 699
700 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { 700 void set_was_ever_ready_since_last_transform_animation(bool was_ready) {
701 was_ever_ready_since_last_transform_animation_ = was_ready; 701 was_ever_ready_since_last_transform_animation_ = was_ready;
702 } 702 }
703 703
704 void NoteLayerPropertyChanged();
705
704 protected: 706 protected:
705 LayerImpl(LayerTreeImpl* layer_impl, 707 LayerImpl(LayerTreeImpl* layer_impl,
706 int id, 708 int id,
707 scoped_refptr<SyncedScrollOffset> scroll_offset); 709 scoped_refptr<SyncedScrollOffset> scroll_offset);
708 LayerImpl(LayerTreeImpl* layer_impl, int id); 710 LayerImpl(LayerTreeImpl* layer_impl, int id);
709 711
710 // Get the color and size of the layer's debug border. 712 // Get the color and size of the layer's debug border.
711 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 713 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
712 714
713 void AppendDebugBorderQuad(RenderPass* render_pass, 715 void AppendDebugBorderQuad(RenderPass* render_pass,
714 const gfx::Size& bounds, 716 const gfx::Size& bounds,
715 const SharedQuadState* shared_quad_state, 717 const SharedQuadState* shared_quad_state,
716 AppendQuadsData* append_quads_data) const; 718 AppendQuadsData* append_quads_data) const;
717 void AppendDebugBorderQuad(RenderPass* render_pass, 719 void AppendDebugBorderQuad(RenderPass* render_pass,
718 const gfx::Size& bounds, 720 const gfx::Size& bounds,
719 const SharedQuadState* shared_quad_state, 721 const SharedQuadState* shared_quad_state,
720 AppendQuadsData* append_quads_data, 722 AppendQuadsData* append_quads_data,
721 SkColor color, 723 SkColor color,
722 float width) const; 724 float width) const;
723 725
724 void NoteLayerPropertyChanged();
725 void NoteLayerPropertyChangedForSubtree(); 726 void NoteLayerPropertyChangedForSubtree();
726 727
727 // Note carefully this does not affect the current layer. 728 // Note carefully this does not affect the current layer.
728 void NoteLayerPropertyChangedForDescendants(); 729 void NoteLayerPropertyChangedForDescendants();
729 730
730 gfx::Rect GetScaledEnclosingRectInTargetSpace(float scale) const; 731 gfx::Rect GetScaledEnclosingRectInTargetSpace(float scale) const;
731 732
732 private: 733 private:
733 void ValidateQuadResourcesInternal(DrawQuad* quad) const; 734 void ValidateQuadResourcesInternal(DrawQuad* quad) const;
734 735
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 // If true, the layer or one of its descendants has a touch handler. 892 // If true, the layer or one of its descendants has a touch handler.
892 bool layer_or_descendant_has_touch_handler_; 893 bool layer_or_descendant_has_touch_handler_;
893 bool sorted_for_recursion_; 894 bool sorted_for_recursion_;
894 895
895 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 896 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
896 }; 897 };
897 898
898 } // namespace cc 899 } // namespace cc
899 900
900 #endif // CC_LAYERS_LAYER_IMPL_H_ 901 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698