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

Unified Diff: cc/resources/picture.h

Issue 14301021: cc: Don't pass simple well-defined classes by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/quads/shared_quad_state.cc ('k') | cc/resources/picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.h
diff --git a/cc/resources/picture.h b/cc/resources/picture.h
index a29d5afaa6438177def4ca4af6c58e7c629d0c8a..a56156b575373e34612d9baa74d08dbbf44a10b7 100644
--- a/cc/resources/picture.h
+++ b/cc/resources/picture.h
@@ -34,8 +34,8 @@ class CC_EXPORT Picture
static scoped_refptr<Picture> CreateFromBase64String(
const std::string& encoded_string);
- const gfx::Rect& LayerRect() const { return layer_rect_; }
- const gfx::Rect& OpaqueRect() const { return opaque_rect_; }
+ gfx::Rect LayerRect() const { return layer_rect_; }
+ gfx::Rect OpaqueRect() const { return opaque_rect_; }
// Get thread-safe clone for rasterizing with on a specific thread.
scoped_refptr<Picture> GetCloneForDrawingOnThread(
@@ -59,7 +59,7 @@ class CC_EXPORT Picture
bool enable_lcd_text);
void GatherPixelRefs(
- const gfx::Rect& layer_rect,
+ gfx::Rect layer_rect,
std::list<skia::LazyPixelRef*>& pixel_ref_list);
void AsBase64String(std::string* output) const;
« no previous file with comments | « cc/quads/shared_quad_state.cc ('k') | cc/resources/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698