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

Unified Diff: cc/resources/tile_priority.h

Issue 1132103008: cc: Remove an unused constructor from TilePriority (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_priority.h
diff --git a/cc/resources/tile_priority.h b/cc/resources/tile_priority.h
index 5247b3c2454709545234346aa4408c0841f43a1e..16a1d98a10429d19227d01011173afb934b132fd 100644
--- a/cc/resources/tile_priority.h
+++ b/cc/resources/tile_priority.h
@@ -51,41 +51,8 @@ struct CC_EXPORT TilePriority {
priority_bin(bin),
distance_to_visible(distance_to_visible) {}
- TilePriority(const TilePriority& active, const TilePriority& pending) {
- if (active.resolution == HIGH_RESOLUTION ||
- pending.resolution == HIGH_RESOLUTION)
- resolution = HIGH_RESOLUTION;
- else if (active.resolution == LOW_RESOLUTION ||
- pending.resolution == LOW_RESOLUTION)
- resolution = LOW_RESOLUTION;
- else
- resolution = NON_IDEAL_RESOLUTION;
-
- if (active.priority_bin < pending.priority_bin) {
- priority_bin = active.priority_bin;
- distance_to_visible = active.distance_to_visible;
- } else if (active.priority_bin > pending.priority_bin) {
- priority_bin = pending.priority_bin;
- distance_to_visible = pending.distance_to_visible;
- } else {
- priority_bin = active.priority_bin;
- distance_to_visible =
- std::min(active.distance_to_visible, pending.distance_to_visible);
- }
- }
-
void AsValueInto(base::trace_event::TracedValue* dict) const;
- bool operator ==(const TilePriority& other) const {
- return resolution == other.resolution &&
- priority_bin == other.priority_bin &&
- distance_to_visible == other.distance_to_visible;
- }
-
- bool operator !=(const TilePriority& other) const {
- return !(*this == other);
- }
-
bool IsHigherPriorityThan(const TilePriority& other) const {
return priority_bin < other.priority_bin ||
(priority_bin == other.priority_bin &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698