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

Side by Side Diff: cc/trees/layer_tree_host_common.h

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common_unittest.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_TREES_LAYER_TREE_HOST_COMMON_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_
6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 return layers[index]; 143 return layers[index];
144 } 144 }
145 145
146 static LayerImpl* get_layer_as_raw_ptr(const LayerImplList& layers, 146 static LayerImpl* get_layer_as_raw_ptr(const LayerImplList& layers,
147 size_t index) { 147 size_t index) {
148 return layers[index]; 148 return layers[index];
149 } 149 }
150 150
151 struct ScrollUpdateInfo { 151 struct ScrollUpdateInfo {
152 int layer_id; 152 int layer_id;
153 gfx::Vector2dF scroll_delta; 153 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports
154 // franctional scroll offset.
155 gfx::Vector2d scroll_delta;
154 }; 156 };
155 }; 157 };
156 158
157 struct CC_EXPORT ScrollAndScaleSet { 159 struct CC_EXPORT ScrollAndScaleSet {
158 ScrollAndScaleSet(); 160 ScrollAndScaleSet();
159 ~ScrollAndScaleSet(); 161 ~ScrollAndScaleSet();
160 162
161 std::vector<LayerTreeHostCommon::ScrollUpdateInfo> scrolls; 163 std::vector<LayerTreeHostCommon::ScrollUpdateInfo> scrolls;
162 float page_scale_delta; 164 float page_scale_delta;
163 gfx::Vector2dF elastic_overscroll_delta; 165 gfx::Vector2dF elastic_overscroll_delta;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 true, 280 true,
279 render_surface_layer_list, 281 render_surface_layer_list,
280 0) { 282 0) {
281 DCHECK(root_layer); 283 DCHECK(root_layer);
282 DCHECK(render_surface_layer_list); 284 DCHECK(render_surface_layer_list);
283 } 285 }
284 286
285 } // namespace cc 287 } // namespace cc
286 288
287 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 289 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698