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/tiles/tile.h" | 5 #include "cc/tiles/tile.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/numerics/safe_conversions.h" | 11 #include "base/numerics/safe_conversions.h" |
10 #include "base/trace_event/trace_event_argument.h" | 12 #include "base/trace_event/trace_event_argument.h" |
11 #include "cc/base/math_util.h" | 13 #include "cc/base/math_util.h" |
12 #include "cc/debug/traced_value.h" | 14 #include "cc/debug/traced_value.h" |
13 #include "cc/tiles/tile_manager.h" | 15 #include "cc/tiles/tile_manager.h" |
14 | 16 |
15 namespace cc { | 17 namespace cc { |
16 | 18 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 draw_info_.resource_->size(), draw_info_.resource_->format()); | 72 draw_info_.resource_->size(), draw_info_.resource_->format()); |
71 } | 73 } |
72 return 0; | 74 return 0; |
73 } | 75 } |
74 | 76 |
75 void Tile::Deleter::operator()(Tile* tile) const { | 77 void Tile::Deleter::operator()(Tile* tile) const { |
76 tile->tile_manager_->Release(tile); | 78 tile->tile_manager_->Release(tile); |
77 } | 79 } |
78 | 80 |
79 } // namespace cc | 81 } // namespace cc |
OLD | NEW |