diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-20 11:56:59 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-20 11:56:59 +0000 |
commit | 64436d35be38ab9a9dfd4e9ef956f983f48c34e1 (patch) | |
tree | caf46a80ce5c537b348adc912cdfe51ea702707b /cc/resources/prioritized_resource_manager.h | |
parent | 9982806f4cc9e515bffd3bba9f822186338f79e2 (diff) | |
download | chromium_src-64436d35be38ab9a9dfd4e9ef956f983f48c34e1.zip chromium_src-64436d35be38ab9a9dfd4e9ef956f983f48c34e1.tar.gz chromium_src-64436d35be38ab9a9dfd4e9ef956f983f48c34e1.tar.bz2 |
cc: Chromify PrioritizedResource
R=danakj@chromium.org
BUG=none
Review URL: https://chromiumcodereview.appspot.com/12906008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189241 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/prioritized_resource_manager.h')
-rw-r--r-- | cc/resources/prioritized_resource_manager.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cc/resources/prioritized_resource_manager.h b/cc/resources/prioritized_resource_manager.h index fb68545..33914ca 100644 --- a/cc/resources/prioritized_resource_manager.h +++ b/cc/resources/prioritized_resource_manager.h @@ -134,26 +134,26 @@ private: // Compare textures. Highest priority first. static inline bool compareTextures(PrioritizedResource* a, PrioritizedResource* b) { - if (a->requestPriority() == b->requestPriority()) + if (a->request_priority() == b->request_priority()) return a < b; - return PriorityCalculator::priority_is_higher(a->requestPriority(), b->requestPriority()); + return PriorityCalculator::priority_is_higher(a->request_priority(), b->request_priority()); } // Compare backings. Lowest priority first. static inline bool compareBackings(PrioritizedResource::Backing* a, PrioritizedResource::Backing* b) { // Make textures that can be recycled appear first - if (a->canBeRecycled() != b->canBeRecycled()) - return (a->canBeRecycled() > b->canBeRecycled()); + if (a->CanBeRecycled() != b->CanBeRecycled()) + return (a->CanBeRecycled() > b->CanBeRecycled()); // Then sort by being above or below the priority cutoff. - if (a->wasAbovePriorityCutoffAtLastPriorityUpdate() != b->wasAbovePriorityCutoffAtLastPriorityUpdate()) - return (a->wasAbovePriorityCutoffAtLastPriorityUpdate() < b->wasAbovePriorityCutoffAtLastPriorityUpdate()); + if (a->was_above_priority_cutoff_at_last_priority_update() != b->was_above_priority_cutoff_at_last_priority_update()) + return (a->was_above_priority_cutoff_at_last_priority_update() < b->was_above_priority_cutoff_at_last_priority_update()); // Then sort by priority (note that backings that no longer have owners will // always have the lowest priority) - if (a->requestPriorityAtLastPriorityUpdate() != b->requestPriorityAtLastPriorityUpdate()) - return PriorityCalculator::priority_is_lower(a->requestPriorityAtLastPriorityUpdate(), b->requestPriorityAtLastPriorityUpdate()); + if (a->request_priority_at_last_priority_update() != b->request_priority_at_last_priority_update()) + return PriorityCalculator::priority_is_lower(a->request_priority_at_last_priority_update(), b->request_priority_at_last_priority_update()); // Finally sort by being in the impl tree versus being completely unreferenced - if (a->inDrawingImplTree() != b->inDrawingImplTree()) - return (a->inDrawingImplTree() < b->inDrawingImplTree()); + if (a->in_drawing_impl_tree() != b->in_drawing_impl_tree()) + return (a->in_drawing_impl_tree() < b->in_drawing_impl_tree()); return a < b; } |