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

Unified Diff: cc/layers/io_surface_layer.cc

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/layers/io_surface_layer.h ('k') | cc/layers/io_surface_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/io_surface_layer.cc
diff --git a/cc/layers/io_surface_layer.cc b/cc/layers/io_surface_layer.cc
index 1e945150a0c329eaf1e38900abe28307287fb6ba..209827da73dbb66519cf86313f070e7afb7e1f6b 100644
--- a/cc/layers/io_surface_layer.cc
+++ b/cc/layers/io_surface_layer.cc
@@ -17,7 +17,7 @@ IOSurfaceLayer::IOSurfaceLayer() : Layer(), io_surface_id_(0) {}
IOSurfaceLayer::~IOSurfaceLayer() {}
void IOSurfaceLayer::SetIOSurfaceProperties(uint32_t io_surface_id,
- gfx::Size size) {
+ const gfx::Size& size) {
io_surface_id_ = io_surface_id;
io_surface_size_ = size;
SetNeedsCommit();
« no previous file with comments | « cc/layers/io_surface_layer.h ('k') | cc/layers/io_surface_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698