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

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

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | cc/layers/layer.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 // When true, the layer is about to perform an update. Any commit requests 552 // When true, the layer is about to perform an update. Any commit requests
553 // will be handled implicitly after the update completes. 553 // will be handled implicitly after the update completes.
554 bool ignore_set_needs_commit_; 554 bool ignore_set_needs_commit_;
555 555
556 private: 556 private:
557 friend class base::RefCounted<Layer>; 557 friend class base::RefCounted<Layer>;
558 friend class LayerSerializationTest; 558 friend class LayerSerializationTest;
559 friend class LayerTreeHostCommon; 559 friend class LayerTreeHostCommon;
560 friend class LayerTreeHost; 560 friend class LayerTreeHost;
561 friend class LayerTree;
Khushal 2016/08/08 16:55:02 Did we need to friend LayerTree in this change?
xingliu 2016/08/09 20:57:04 In LayerTree MutatorHostClient override functions,
561 friend class LayerInternalsForTest; 562 friend class LayerInternalsForTest;
562 563
563 // Interactions with attached animations. 564 // Interactions with attached animations.
564 gfx::ScrollOffset ScrollOffsetForAnimation() const; 565 gfx::ScrollOffset ScrollOffsetForAnimation() const;
565 void OnFilterAnimated(const FilterOperations& filters); 566 void OnFilterAnimated(const FilterOperations& filters);
566 void OnOpacityAnimated(float opacity); 567 void OnOpacityAnimated(float opacity);
567 void OnTransformAnimated(const gfx::Transform& transform); 568 void OnTransformAnimated(const gfx::Transform& transform);
568 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 569 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
569 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating); 570 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating);
570 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 571 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 // These all act like draw properties, so don't need push properties. 730 // These all act like draw properties, so don't need push properties.
730 gfx::Rect visible_layer_rect_; 731 gfx::Rect visible_layer_rect_;
731 size_t num_unclipped_descendants_; 732 size_t num_unclipped_descendants_;
732 733
733 DISALLOW_COPY_AND_ASSIGN(Layer); 734 DISALLOW_COPY_AND_ASSIGN(Layer);
734 }; 735 };
735 736
736 } // namespace cc 737 } // namespace cc
737 738
738 #endif // CC_LAYERS_LAYER_H_ 739 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698