OLD | NEW |
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 "config.h" | |
6 | |
7 #include "cc/priority_calculator.h" | 5 #include "cc/priority_calculator.h" |
8 #include "ui/gfx/rect.h" | 6 #include "ui/gfx/rect.h" |
9 | 7 |
10 using namespace std; | 8 using namespace std; |
11 | 9 |
12 namespace cc { | 10 namespace cc { |
13 | 11 |
14 static const int nothingPriorityCutoff = -3; | 12 static const int nothingPriorityCutoff = -3; |
15 | 13 |
16 static const int mostHighPriority = -2; | 14 static const int mostHighPriority = -2; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 return visibleAndNearbyPriorityCutoff; | 124 return visibleAndNearbyPriorityCutoff; |
127 } | 125 } |
128 | 126 |
129 // static | 127 // static |
130 int PriorityCalculator::allowEverythingCutoff() | 128 int PriorityCalculator::allowEverythingCutoff() |
131 { | 129 { |
132 return everythingPriorityCutoff; | 130 return everythingPriorityCutoff; |
133 } | 131 } |
134 | 132 |
135 } // namespace cc | 133 } // namespace cc |
OLD | NEW |