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

Side by Side Diff: cc/resources/tile.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/skpicture_content_layer_updater.cc ('k') | cc/resources/tile.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_H_ 5 #ifndef CC_RESOURCES_TILE_H_
6 #define CC_RESOURCES_TILE_H_ 6 #define CC_RESOURCES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 friend class TileManager; 129 friend class TileManager;
130 friend class PrioritizedTileSet; 130 friend class PrioritizedTileSet;
131 friend class FakeTileManager; 131 friend class FakeTileManager;
132 friend class BinComparator; 132 friend class BinComparator;
133 friend class FakePictureLayerImpl; 133 friend class FakePictureLayerImpl;
134 134
135 // Methods called by by tile manager. 135 // Methods called by by tile manager.
136 Tile(TileManager* tile_manager, 136 Tile(TileManager* tile_manager,
137 PicturePileImpl* picture_pile, 137 PicturePileImpl* picture_pile,
138 gfx::Size tile_size, 138 gfx::Size tile_size,
139 gfx::Rect content_rect, 139 const gfx::Rect& content_rect,
140 gfx::Rect opaque_rect, 140 const gfx::Rect& opaque_rect,
141 float contents_scale, 141 float contents_scale,
142 int layer_id, 142 int layer_id,
143 int source_frame_number, 143 int source_frame_number,
144 int flags); 144 int flags);
145 ~Tile(); 145 ~Tile();
146 146
147 ManagedTileState& managed_state() { return managed_state_; } 147 ManagedTileState& managed_state() { return managed_state_; }
148 const ManagedTileState& managed_state() const { return managed_state_; } 148 const ManagedTileState& managed_state() const { return managed_state_; }
149 149
150 TileManager* tile_manager_; 150 TileManager* tile_manager_;
(...skipping 11 matching lines...) Expand all
162 162
163 Id id_; 163 Id id_;
164 static Id s_next_id_; 164 static Id s_next_id_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(Tile); 166 DISALLOW_COPY_AND_ASSIGN(Tile);
167 }; 167 };
168 168
169 } // namespace cc 169 } // namespace cc
170 170
171 #endif // CC_RESOURCES_TILE_H_ 171 #endif // CC_RESOURCES_TILE_H_
OLDNEW
« no previous file with comments | « cc/resources/skpicture_content_layer_updater.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698