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

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: Created 7 years 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
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 friend class TileManager; 126 friend class TileManager;
127 friend class PrioritizedTileSet; 127 friend class PrioritizedTileSet;
128 friend class FakeTileManager; 128 friend class FakeTileManager;
129 friend class BinComparator; 129 friend class BinComparator;
130 friend class FakePictureLayerImpl; 130 friend class FakePictureLayerImpl;
131 131
132 // Methods called by by tile manager. 132 // Methods called by by tile manager.
133 Tile(TileManager* tile_manager, 133 Tile(TileManager* tile_manager,
134 PicturePileImpl* picture_pile, 134 PicturePileImpl* picture_pile,
135 gfx::Size tile_size, 135 gfx::Size tile_size,
136 gfx::Rect content_rect, 136 const gfx::Rect& content_rect,
137 gfx::Rect opaque_rect, 137 const gfx::Rect& opaque_rect,
138 float contents_scale, 138 float contents_scale,
139 int layer_id, 139 int layer_id,
140 int source_frame_number, 140 int source_frame_number,
141 int flags); 141 int flags);
142 ~Tile(); 142 ~Tile();
143 143
144 ManagedTileState& managed_state() { return managed_state_; } 144 ManagedTileState& managed_state() { return managed_state_; }
145 const ManagedTileState& managed_state() const { return managed_state_; } 145 const ManagedTileState& managed_state() const { return managed_state_; }
146 146
147 TileManager* tile_manager_; 147 TileManager* tile_manager_;
(...skipping 12 matching lines...) Expand all
160 160
161 Id id_; 161 Id id_;
162 static Id s_next_id_; 162 static Id s_next_id_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(Tile); 164 DISALLOW_COPY_AND_ASSIGN(Tile);
165 }; 165 };
166 166
167 } // namespace cc 167 } // namespace cc
168 168
169 #endif // CC_RESOURCES_TILE_H_ 169 #endif // CC_RESOURCES_TILE_H_
OLDNEW
« cc/PRESUBMIT.py ('K') | « cc/base/region.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698