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

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

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on TOT Created 6 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/test/tiled_layer_test_common.cc ('k') | cc/trees/layer_tree_host.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_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 void SetOverhangBitmap(const SkBitmap& bitmap); 229 void SetOverhangBitmap(const SkBitmap& bitmap);
230 230
231 PrioritizedResourceManager* contents_texture_manager() const { 231 PrioritizedResourceManager* contents_texture_manager() const {
232 return contents_texture_manager_.get(); 232 return contents_texture_manager_.get();
233 } 233 }
234 234
235 void SetVisible(bool visible); 235 void SetVisible(bool visible);
236 bool visible() const { return visible_; } 236 bool visible() const { return visible_; }
237 237
238 void StartPageScaleAnimation(gfx::Vector2d target_offset, 238 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
239 bool use_anchor, 239 bool use_anchor,
240 float scale, 240 float scale,
241 base::TimeDelta duration); 241 base::TimeDelta duration);
242 242
243 void ApplyScrollAndScale(const ScrollAndScaleSet& info); 243 void ApplyScrollAndScale(const ScrollAndScaleSet& info);
244 gfx::Vector2d DistributeScrollOffsetToViewports(const gfx::Vector2d offset, 244 gfx::Vector2d DistributeScrollOffsetToViewports(const gfx::Vector2d offset,
245 Layer* layer); 245 Layer* layer);
246 246
247 void SetImplTransform(const gfx::Transform& transform); 247 void SetImplTransform(const gfx::Transform& transform);
248 248
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 460
461 ScopedPtrVector<SwapPromise> swap_promise_list_; 461 ScopedPtrVector<SwapPromise> swap_promise_list_;
462 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 462 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
463 463
464 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 464 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
465 }; 465 };
466 466
467 } // namespace cc 467 } // namespace cc
468 468
469 #endif // CC_TREES_LAYER_TREE_HOST_H_ 469 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/tiled_layer_test_common.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698