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

Unified Diff: ui/compositor/layer.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 | « ui/aura_extra/image_window_delegate.h ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 4180034780aa16bb74594797d4e2ead292a78223..571bdbfb123ff7b655657c6c834efda82766b437 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -151,7 +151,7 @@ class COMPOSITOR_EXPORT Layer
// The offset from our parent (stored in bounds.origin()) is an integer but we
// may need to be at a fractional pixel offset to align properly on screen.
- void SetSubpixelPositionOffset(const gfx::Vector2dF offset);
+ void SetSubpixelPositionOffset(const gfx::Vector2dF& offset);
const gfx::Vector2dF& subpixel_position_offset() const {
return subpixel_position_offset_;
}
« no previous file with comments | « ui/aura_extra/image_window_delegate.h ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698