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

Side by Side Diff: cc/resources/tile_manager.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 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/resources/tile.cc ('k') | cc/resources/tile_manager.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_RESOURCES_TILE_MANAGER_H_ 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_
6 #define CC_RESOURCES_TILE_MANAGER_H_ 6 #define CC_RESOURCES_TILE_MANAGER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 GLenum map_image_texture_target); 61 GLenum map_image_texture_target);
62 virtual ~TileManager(); 62 virtual ~TileManager();
63 63
64 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); 64 void ManageTiles(const GlobalStateThatImpactsTilePriority& state);
65 65
66 // Returns true when visible tiles have been initialized. 66 // Returns true when visible tiles have been initialized.
67 bool UpdateVisibleTiles(); 67 bool UpdateVisibleTiles();
68 68
69 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile, 69 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile,
70 gfx::Size tile_size, 70 gfx::Size tile_size,
71 gfx::Rect content_rect, 71 const gfx::Rect& content_rect,
72 gfx::Rect opaque_rect, 72 const gfx::Rect& opaque_rect,
73 float contents_scale, 73 float contents_scale,
74 int layer_id, 74 int layer_id,
75 int source_frame_number, 75 int source_frame_number,
76 int flags); 76 int flags);
77 77
78 scoped_ptr<base::Value> BasicStateAsValue() const; 78 scoped_ptr<base::Value> BasicStateAsValue() const;
79 scoped_ptr<base::Value> AllTilesAsValue() const; 79 scoped_ptr<base::Value> AllTilesAsValue() const;
80 void GetMemoryStats(size_t* memory_required_bytes, 80 void GetMemoryStats(size_t* memory_required_bytes,
81 size_t* memory_nice_to_have_bytes, 81 size_t* memory_nice_to_have_bytes,
82 size_t* memory_allocated_bytes, 82 size_t* memory_allocated_bytes,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 RasterTaskCompletionStats update_visible_tiles_stats_; 217 RasterTaskCompletionStats update_visible_tiles_stats_;
218 218
219 std::vector<Tile*> released_tiles_; 219 std::vector<Tile*> released_tiles_;
220 220
221 DISALLOW_COPY_AND_ASSIGN(TileManager); 221 DISALLOW_COPY_AND_ASSIGN(TileManager);
222 }; 222 };
223 223
224 } // namespace cc 224 } // namespace cc
225 225
226 #endif // CC_RESOURCES_TILE_MANAGER_H_ 226 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698