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

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

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

Powered by Google App Engine
This is Rietveld 408576698