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

Unified Diff: cc/resources/priority_calculator.cc

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/priority_calculator.h ('k') | cc/resources/raster_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/priority_calculator.cc
diff --git a/cc/resources/priority_calculator.cc b/cc/resources/priority_calculator.cc
index fe5741c30e908470e1eb2c1c21f00b18fadb68bc..2a0cd189da1e14cb8b348dc807ef3e02a286da54 100644
--- a/cc/resources/priority_calculator.cc
+++ b/cc/resources/priority_calculator.cc
@@ -69,8 +69,8 @@ int PriorityCalculator::LingeringPriority(int previous_priority) {
}
// static
-int PriorityCalculator::PriorityFromDistance(gfx::Rect visible_rect,
- gfx::Rect texture_rect,
+int PriorityCalculator::PriorityFromDistance(const gfx::Rect& visible_rect,
+ const gfx::Rect& texture_rect,
bool draws_to_root_surface) {
int distance = visible_rect.ManhattanInternalDistance(texture_rect);
if (!distance)
« no previous file with comments | « cc/resources/priority_calculator.h ('k') | cc/resources/raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698