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/picture_layer_tiling.h" | 5 #include "cc/picture_layer_tiling.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "cc/math_util.h" | 10 #include "cc/base/math_util.h" |
11 #include "ui/gfx/point_conversions.h" | 11 #include "ui/gfx/point_conversions.h" |
12 #include "ui/gfx/rect_conversions.h" | 12 #include "ui/gfx/rect_conversions.h" |
13 #include "ui/gfx/safe_integer_conversions.h" | 13 #include "ui/gfx/safe_integer_conversions.h" |
14 #include "ui/gfx/size_conversions.h" | 14 #include "ui/gfx/size_conversions.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 scoped_ptr<PictureLayerTiling> PictureLayerTiling::Create( | 18 scoped_ptr<PictureLayerTiling> PictureLayerTiling::Create( |
19 float contents_scale) { | 19 float contents_scale) { |
20 return make_scoped_ptr(new PictureLayerTiling(contents_scale)); | 20 return make_scoped_ptr(new PictureLayerTiling(contents_scale)); |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 (bottom_complete ? 1 : 0); | 714 (bottom_complete ? 1 : 0); |
715 if (num_edges_complete == 4) | 715 if (num_edges_complete == 4) |
716 return working_rect; | 716 return working_rect; |
717 } | 717 } |
718 | 718 |
719 NOTREACHED(); | 719 NOTREACHED(); |
720 return starting_rect; | 720 return starting_rect; |
721 } | 721 } |
722 | 722 |
723 } // namespace cc | 723 } // namespace cc |
OLD | NEW |