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

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

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 1 month 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
« no previous file with comments | « cc/resources/prioritized_resource_manager.cc ('k') | cc/resources/resource.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> 7 #include <algorithm>
8 8
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 static const int kNothingPriorityCutoff = -3; 13 static const int kNothingPriorityCutoff = -3;
14 14
15 static const int kMostHighPriority = -2; 15 static const int kMostHighPriority = -2;
16 16
17 static const int kUIDrawsToRootSurfacePriority = -1; 17 static const int kUIDrawsToRootSurfacePriority = -1;
18 static const int kVisibleDrawsToRootSurfacePriority = 0; 18 static const int kVisibleDrawsToRootSurfacePriority = 0;
19 static const int kRenderSurfacesPriority = 1; 19 static const int kRenderSurfacesPriority = 1;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 int PriorityCalculator::AllowVisibleAndNearbyCutoff() { 107 int PriorityCalculator::AllowVisibleAndNearbyCutoff() {
108 return kVisibleAndNearbyPriorityCutoff; 108 return kVisibleAndNearbyPriorityCutoff;
109 } 109 }
110 110
111 // static 111 // static
112 int PriorityCalculator::AllowEverythingCutoff() { 112 int PriorityCalculator::AllowEverythingCutoff() {
113 return kEverythingPriorityCutoff; 113 return kEverythingPriorityCutoff;
114 } 114 }
115 115
116 } // namespace cc 116 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/prioritized_resource_manager.cc ('k') | cc/resources/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698