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

Unified Diff: cc/resources/layer_updater.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! 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/resources/layer_tiling_data.cc ('k') | cc/resources/picture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/layer_updater.h
diff --git a/cc/resources/layer_updater.h b/cc/resources/layer_updater.h
index 5d8eb89ad4e2b2295309a52e909a56ea1914a69f..730773f56e0a9710925171f4d9745f80d03a0863 100644
--- a/cc/resources/layer_updater.h
+++ b/cc/resources/layer_updater.h
@@ -29,7 +29,7 @@ class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> {
// TODO(reveman): partial_update should be a property of this class
// instead of an argument passed to Update().
virtual void Update(ResourceUpdateQueue* queue,
- gfx::Rect source_rect,
+ const gfx::Rect& source_rect,
gfx::Vector2d dest_offset,
bool partial_update) = 0;
protected:
@@ -48,7 +48,7 @@ class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> {
// The |resulting_opaque_rect| gives back a region of the layer that was
// painted opaque. If the layer is marked opaque in the updater, then this
// region should be ignored in preference for the entire layer's area.
- virtual void PrepareToUpdate(gfx::Rect content_rect,
+ virtual void PrepareToUpdate(const gfx::Rect& content_rect,
gfx::Size tile_size,
float contents_width_scale,
float contents_height_scale,
« no previous file with comments | « cc/resources/layer_tiling_data.cc ('k') | cc/resources/picture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698