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

Unified Diff: cc/resources/priority_calculator.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/prioritized_resource.cc ('k') | cc/resources/priority_calculator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/priority_calculator.h
diff --git a/cc/resources/priority_calculator.h b/cc/resources/priority_calculator.h
index 877896176b835d6d88a40416dd95f2ed7384b36e..502bd2734f8c7a7e127ea6feb7c3857a782bda0c 100644
--- a/cc/resources/priority_calculator.h
+++ b/cc/resources/priority_calculator.h
@@ -20,8 +20,8 @@ class CC_EXPORT PriorityCalculator {
static int VisiblePriority(bool draws_to_root_surface);
static int RenderSurfacePriority();
static int LingeringPriority(int previous_priority);
- static int PriorityFromDistance(gfx::Rect visible_rect,
- gfx::Rect texture_rect,
+ static int PriorityFromDistance(const gfx::Rect& visible_rect,
+ const gfx::Rect& texture_rect,
bool draws_to_root_surface);
static int SmallAnimatedLayerMinPriority();
« no previous file with comments | « cc/resources/prioritized_resource.cc ('k') | cc/resources/priority_calculator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698