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/resources/picture_layer_tiling.h" | 5 #include "cc/resources/picture_layer_tiling.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <limits> | 9 #include <limits> |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
13 #include "base/debug/trace_event_argument.h" | 13 #include "base/debug/trace_event_argument.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "cc/base/math_util.h" | 15 #include "cc/base/math_util.h" |
16 #include "cc/resources/tile.h" | 16 #include "cc/resources/tile.h" |
17 #include "cc/resources/tile_priority.h" | 17 #include "cc/resources/tile_priority.h" |
18 #include "ui/gfx/point_conversions.h" | 18 #include "ui/gfx/geometry/point_conversions.h" |
19 #include "ui/gfx/rect_conversions.h" | 19 #include "ui/gfx/geometry/rect_conversions.h" |
20 #include "ui/gfx/safe_integer_conversions.h" | 20 #include "ui/gfx/geometry/safe_integer_conversions.h" |
21 #include "ui/gfx/size_conversions.h" | 21 #include "ui/gfx/geometry/size_conversions.h" |
22 | 22 |
23 namespace cc { | 23 namespace cc { |
24 namespace { | 24 namespace { |
25 | 25 |
26 const float kSoonBorderDistanceInScreenPixels = 312.f; | 26 const float kSoonBorderDistanceInScreenPixels = 312.f; |
27 | 27 |
28 class TileEvictionOrder { | 28 class TileEvictionOrder { |
29 public: | 29 public: |
30 explicit TileEvictionOrder(TreePriority tree_priority) | 30 explicit TileEvictionOrder(TreePriority tree_priority) |
31 : tree_priority_(tree_priority) {} | 31 : tree_priority_(tree_priority) {} |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1226 DCHECK(*this); | 1226 DCHECK(*this); |
1227 do { | 1227 do { |
1228 ++current_eviction_tiles_index_; | 1228 ++current_eviction_tiles_index_; |
1229 } while (current_eviction_tiles_index_ != eviction_tiles_->size() && | 1229 } while (current_eviction_tiles_index_ != eviction_tiles_->size() && |
1230 !(*eviction_tiles_)[current_eviction_tiles_index_]->HasResources()); | 1230 !(*eviction_tiles_)[current_eviction_tiles_index_]->HasResources()); |
1231 | 1231 |
1232 return *this; | 1232 return *this; |
1233 } | 1233 } |
1234 | 1234 |
1235 } // namespace cc | 1235 } // namespace cc |
OLD | NEW |