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

Side by Side Diff: cc/resources/priority_calculator.cc

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/priority_calculator.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/resources/priority_calculator.h" 5 #include "cc/resources/priority_calculator.h"
6 6
7 #include <algorithm>
8
7 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
8 10
9 namespace cc { 11 namespace cc {
10 12
11 static const int kNothingPriorityCutoff = -3; 13 static const int kNothingPriorityCutoff = -3;
12 14
13 static const int kMostHighPriority = -2; 15 static const int kMostHighPriority = -2;
14 16
15 static const int kUIDrawsToRootSurfacePriority = -1; 17 static const int kUIDrawsToRootSurfacePriority = -1;
16 static const int kVisibleDrawsToRootSurfacePriority = 0; 18 static const int kVisibleDrawsToRootSurfacePriority = 0;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 int PriorityCalculator::AllowVisibleAndNearbyCutoff() { 117 int PriorityCalculator::AllowVisibleAndNearbyCutoff() {
116 return kVisibleAndNearbyPriorityCutoff; 118 return kVisibleAndNearbyPriorityCutoff;
117 } 119 }
118 120
119 // static 121 // static
120 int PriorityCalculator::AllowEverythingCutoff() { 122 int PriorityCalculator::AllowEverythingCutoff() {
121 return kEverythingPriorityCutoff; 123 return kEverythingPriorityCutoff;
122 } 124 }
123 125
124 } // namespace cc 126 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/priority_calculator.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698