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

Unified Diff: cc/resources/layer_tiling_data.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/layer_painter.h ('k') | cc/resources/layer_tiling_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/layer_tiling_data.h
diff --git a/cc/resources/layer_tiling_data.h b/cc/resources/layer_tiling_data.h
index c5c9a74587161f372c0b512d6bbcfba06b657a47..500c753f1e4d3cc160781f6a1173ccfd6547ebaf 100644
--- a/cc/resources/layer_tiling_data.h
+++ b/cc/resources/layer_tiling_data.h
@@ -64,7 +64,9 @@ class CC_EXPORT LayerTilingData {
}
gfx::Rect opaque_rect() const { return opaque_rect_; }
- void set_opaque_rect(gfx::Rect opaque_rect) { opaque_rect_ = opaque_rect; }
+ void set_opaque_rect(const gfx::Rect& opaque_rect) {
+ opaque_rect_ = opaque_rect;
+ }
private:
int i_;
int j_;
@@ -82,14 +84,14 @@ class CC_EXPORT LayerTilingData {
void SetBounds(gfx::Size size);
gfx::Size bounds() const { return tiling_data_.total_size(); }
- void ContentRectToTileIndices(gfx::Rect rect,
+ void ContentRectToTileIndices(const gfx::Rect& rect,
int* left,
int* top,
int* right,
int* bottom) const;
gfx::Rect TileRect(const Tile* tile) const;
- Region OpaqueRegionInContentRect(gfx::Rect rect) const;
+ Region OpaqueRegionInContentRect(const gfx::Rect& rect) const;
void reset() { tiles_.clear(); }
« no previous file with comments | « cc/resources/layer_painter.h ('k') | cc/resources/layer_tiling_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698