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

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

Issue 250803013: Don't clear render surfaces unnecessarily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 size_t index) { 132 size_t index) {
133 return children[index].get(); 133 return children[index].get();
134 } 134 }
135 135
136 static LayerImpl* get_child_as_raw_ptr( 136 static LayerImpl* get_child_as_raw_ptr(
137 const OwnedLayerImplList& children, 137 const OwnedLayerImplList& children,
138 size_t index) { 138 size_t index) {
139 return children[index]; 139 return children[index];
140 } 140 }
141 141
142 static LayerImpl* get_child_as_raw_ptr(const LayerImplList& children,
danakj 2014/04/25 22:59:24 Would you mind doing a followup CL to rename all t
Ian Vollick 2014/04/25 23:14:39 Totally.
143 size_t index) {
144 return children[index];
145 }
146
142 struct ScrollUpdateInfo { 147 struct ScrollUpdateInfo {
143 int layer_id; 148 int layer_id;
144 gfx::Vector2d scroll_delta; 149 gfx::Vector2d scroll_delta;
145 }; 150 };
146 }; 151 };
147 152
148 struct CC_EXPORT ScrollAndScaleSet { 153 struct CC_EXPORT ScrollAndScaleSet {
149 ScrollAndScaleSet(); 154 ScrollAndScaleSet();
150 ~ScrollAndScaleSet(); 155 ~ScrollAndScaleSet();
151 156
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 true, 260 true,
256 false, 261 false,
257 render_surface_layer_list) { 262 render_surface_layer_list) {
258 DCHECK(root_layer); 263 DCHECK(root_layer);
259 DCHECK(render_surface_layer_list); 264 DCHECK(render_surface_layer_list);
260 } 265 }
261 266
262 } // namespace cc 267 } // namespace cc
263 268
264 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 269 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698