Index: cc/trees/damage_tracker.h |
diff --git a/cc/trees/damage_tracker.h b/cc/trees/damage_tracker.h |
index 37a1900f78811bcec5c7817e6afb9ba48017b03f..3809447389ab664284b31248c4cabc572b55115e 100644 |
--- a/cc/trees/damage_tracker.h |
+++ b/cc/trees/damage_tracker.h |
@@ -32,12 +32,14 @@ class CC_EXPORT DamageTracker { |
~DamageTracker(); |
void DidDrawDamagedArea() { current_damage_rect_ = gfx::RectF(); } |
- void AddDamageNextUpdate(gfx::RectF dmg) { current_damage_rect_.Union(dmg); } |
+ void AddDamageNextUpdate(const gfx::RectF& dmg) { |
+ current_damage_rect_.Union(dmg); |
+ } |
void UpdateDamageTrackingState( |
const LayerImplList& layer_list, |
int target_surface_layer_id, |
bool target_surface_property_changed_only_from_descendant, |
- gfx::Rect target_surface_content_rect, |
+ const gfx::Rect& target_surface_content_rect, |
LayerImpl* target_surface_mask_layer, |
const FilterOperations& filters); |