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 "cc/priority_calculator.h" | 5 #include "cc/resources/priority_calculator.h" |
6 | 6 |
7 #include "ui/gfx/rect.h" | 7 #include "ui/gfx/rect.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 | 10 |
11 static const int kNothingPriorityCutoff = -3; | 11 static const int kNothingPriorityCutoff = -3; |
12 | 12 |
13 static const int kMostHighPriority = -2; | 13 static const int kMostHighPriority = -2; |
14 | 14 |
15 static const int kUIDrawsToRootSurfacePriority = -1; | 15 static const int kUIDrawsToRootSurfacePriority = -1; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 int PriorityCalculator::AllowVisibleAndNearbyCutoff() { | 115 int PriorityCalculator::AllowVisibleAndNearbyCutoff() { |
116 return kVisibleAndNearbyPriorityCutoff; | 116 return kVisibleAndNearbyPriorityCutoff; |
117 } | 117 } |
118 | 118 |
119 // static | 119 // static |
120 int PriorityCalculator::AllowEverythingCutoff() { | 120 int PriorityCalculator::AllowEverythingCutoff() { |
121 return kEverythingPriorityCutoff; | 121 return kEverythingPriorityCutoff; |
122 } | 122 } |
123 | 123 |
124 } // namespace cc | 124 } // namespace cc |
OLD | NEW |