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

Unified Diff: cc/resources/tile_priority.cc

Issue 12912010: cc: Convert non-const reference arguments to pointers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ui/compositor Created 7 years, 9 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/picture_layer_tiling_set.cc ('k') | cc/trees/layer_sorter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_priority.cc
diff --git a/cc/resources/tile_priority.cc b/cc/resources/tile_priority.cc
index d1c3fbf963c243d74e1e768a724f10b3bbebb0aa..932434fedf278e918a2ba27cfa441c0f7187d94c 100644
--- a/cc/resources/tile_priority.cc
+++ b/cc/resources/tile_priority.cc
@@ -30,8 +30,11 @@ bool Range::IsEmpty() {
return start_ >= end_;
}
-inline void IntersectNegativeHalfplane(Range* out, float previous,
- float current, float target, float time_delta) {
+inline void IntersectNegativeHalfplane(Range* out,
+ float previous,
+ float current,
+ float target,
+ float time_delta) {
float time_per_dist = time_delta / (current - previous);
float t = (target - current) * time_per_dist;
if (time_per_dist > 0.0f)
@@ -40,8 +43,11 @@ inline void IntersectNegativeHalfplane(Range* out, float previous,
out->end_ = std::min(out->end_, t);
}
-inline void IntersectPositiveHalfplane(Range* out, float previous,
- float current, float target, float time_delta) {
+inline void IntersectPositiveHalfplane(Range* out,
+ float previous,
+ float current,
+ float target,
+ float time_delta) {
float time_per_dist = time_delta / (current - previous);
float t = (target - current) * time_per_dist;
if (time_per_dist < 0.0f)
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | cc/trees/layer_sorter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698