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

Unified Diff: cc/resources/layer_updater.h

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: cc/resources/layer_updater.h
diff --git a/cc/resources/layer_updater.h b/cc/resources/layer_updater.h
index 730773f56e0a9710925171f4d9745f80d03a0863..f714b8cfbb53df42c77abe5664e8943005789364 100644
--- a/cc/resources/layer_updater.h
+++ b/cc/resources/layer_updater.h
@@ -30,7 +30,7 @@ class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> {
// instead of an argument passed to Update().
virtual void Update(ResourceUpdateQueue* queue,
const gfx::Rect& source_rect,
- gfx::Vector2d dest_offset,
+ const gfx::Vector2d& dest_offset,
bool partial_update) = 0;
protected:
explicit Resource(scoped_ptr<PrioritizedResource> texture);

Powered by Google App Engine
This is Rietveld 408576698