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

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

Issue 584503005: Make scroll offset type of float in cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: link crbug to TODO Created 6 years, 2 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.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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 return layers[index]; 123 return layers[index];
124 } 124 }
125 125
126 static LayerImpl* get_layer_as_raw_ptr(const LayerImplList& layers, 126 static LayerImpl* get_layer_as_raw_ptr(const LayerImplList& layers,
127 size_t index) { 127 size_t index) {
128 return layers[index]; 128 return layers[index];
129 } 129 }
130 130
131 struct ScrollUpdateInfo { 131 struct ScrollUpdateInfo {
132 int layer_id; 132 int layer_id;
133 // TODO(miletus) : Use ScrollOffset once LayerTreeHost/Blink fully supports
134 // franctional scroll offset.
133 gfx::Vector2d scroll_delta; 135 gfx::Vector2d scroll_delta;
134 }; 136 };
135 }; 137 };
136 138
137 struct CC_EXPORT ScrollAndScaleSet { 139 struct CC_EXPORT ScrollAndScaleSet {
138 ScrollAndScaleSet(); 140 ScrollAndScaleSet();
139 ~ScrollAndScaleSet(); 141 ~ScrollAndScaleSet();
140 142
141 std::vector<LayerTreeHostCommon::ScrollUpdateInfo> scrolls; 143 std::vector<LayerTreeHostCommon::ScrollUpdateInfo> scrolls;
142 float page_scale_delta; 144 float page_scale_delta;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 false, 250 false,
249 render_surface_layer_list, 251 render_surface_layer_list,
250 0) { 252 0) {
251 DCHECK(root_layer); 253 DCHECK(root_layer);
252 DCHECK(render_surface_layer_list); 254 DCHECK(render_surface_layer_list);
253 } 255 }
254 256
255 } // namespace cc 257 } // namespace cc
256 258
257 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 259 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698