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

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

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « build/secondary/tools/grit/grit_rule.gni ('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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 public LayerAnimationValueProvider, 75 public LayerAnimationValueProvider,
76 public AnimationDelegate { 76 public AnimationDelegate {
77 public: 77 public:
78 // Allows for the ownership of the total scroll offset to be delegated outside 78 // Allows for the ownership of the total scroll offset to be delegated outside
79 // of the layer. 79 // of the layer.
80 class ScrollOffsetDelegate { 80 class ScrollOffsetDelegate {
81 public: 81 public:
82 virtual void SetTotalScrollOffset(const gfx::ScrollOffset& new_value) = 0; 82 virtual void SetTotalScrollOffset(const gfx::ScrollOffset& new_value) = 0;
83 virtual gfx::ScrollOffset GetTotalScrollOffset() = 0; 83 virtual gfx::ScrollOffset GetTotalScrollOffset() = 0;
84 virtual bool IsExternalFlingActive() const = 0; 84 virtual bool IsExternalFlingActive() const = 0;
85 virtual void Update() const = 0;
85 }; 86 };
86 87
87 typedef LayerImplList RenderSurfaceListType; 88 typedef LayerImplList RenderSurfaceListType;
88 typedef LayerImplList LayerListType; 89 typedef LayerImplList LayerListType;
89 typedef RenderSurfaceImpl RenderSurfaceType; 90 typedef RenderSurfaceImpl RenderSurfaceType;
90 91
91 enum RenderingContextConstants { NO_RENDERING_CONTEXT = 0 }; 92 enum RenderingContextConstants { NO_RENDERING_CONTEXT = 0 };
92 93
93 static scoped_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) { 94 static scoped_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
94 return make_scoped_ptr(new LayerImpl(tree_impl, id)); 95 return make_scoped_ptr(new LayerImpl(tree_impl, id));
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 DrawProperties<LayerImpl> draw_properties_; 718 DrawProperties<LayerImpl> draw_properties_;
718 719
719 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 720 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
720 721
721 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 722 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
722 }; 723 };
723 724
724 } // namespace cc 725 } // namespace cc
725 726
726 #endif // CC_LAYERS_LAYER_IMPL_H_ 727 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « build/secondary/tools/grit/grit_rule.gni ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698