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

Unified Diff: ui/aura_extra/image_window_delegate.h

Issue 1112813003: Pass gfx structs by const ref (gfx::Vector2d/F) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 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 | « no previous file | ui/compositor/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_extra/image_window_delegate.h
diff --git a/ui/aura_extra/image_window_delegate.h b/ui/aura_extra/image_window_delegate.h
index b7022fb8c3dae7d85ab97e864b7730b0e8f7091d..5805c3450f93c12c9e14c9ffb178750cfcbcd613 100644
--- a/ui/aura_extra/image_window_delegate.h
+++ b/ui/aura_extra/image_window_delegate.h
@@ -28,7 +28,7 @@ class AURA_EXTRA_EXPORT ImageWindowDelegate : public aura::WindowDelegate {
void SetImage(const gfx::Image& image);
void set_background_color(SkColor color) { background_color_ = color; }
- void set_image_offset(gfx::Vector2d offset) { offset_ = offset; }
+ void set_image_offset(const gfx::Vector2d& offset) { offset_ = offset; }
bool has_image() const { return !image_.IsEmpty(); }
« no previous file with comments | « no previous file | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698