| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/tiling_data.h" | 5 #include "cc/base/tiling_data.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 10 #include "ui/gfx/vector2d.h" | 10 #include "ui/gfx/vector2d.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 static int ComputeNumTiles(int max_texture_size, int total_size, int border_texe
ls) { | 14 static int ComputeNumTiles(int max_texture_size, int total_size, int border_texe
ls) { |
| 15 if (max_texture_size - 2 * border_texels <= 0) | 15 if (max_texture_size - 2 * border_texels <= 0) |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 } | 389 } |
| 390 | 390 |
| 391 if (index_y_ > consider_bottom_) | 391 if (index_y_ > consider_bottom_) |
| 392 done(); | 392 done(); |
| 393 } | 393 } |
| 394 | 394 |
| 395 return *this; | 395 return *this; |
| 396 } | 396 } |
| 397 | 397 |
| 398 } // namespace cc | 398 } // namespace cc |
| OLD | NEW |