| 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/picture_layer_tiling_set.h" | 5 #include "cc/tiles/picture_layer_tiling_set.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
| 16 #include "cc/playback/raster_source.h" | 16 #include "cc/raster/raster_source.h" |
| 17 #include "ui/gfx/geometry/rect_conversions.h" | 17 #include "ui/gfx/geometry/rect_conversions.h" |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 class LargestToSmallestScaleFunctor { | 23 class LargestToSmallestScaleFunctor { |
| 24 public: | 24 public: |
| 25 bool operator()(const std::unique_ptr<PictureLayerTiling>& left, | 25 bool operator()(const std::unique_ptr<PictureLayerTiling>& left, |
| 26 const std::unique_ptr<PictureLayerTiling>& right) { | 26 const std::unique_ptr<PictureLayerTiling>& right) { |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 case LOWER_THAN_LOW_RES: | 776 case LOWER_THAN_LOW_RES: |
| 777 range = TilingRange(low_res_range.end, tilings_size); | 777 range = TilingRange(low_res_range.end, tilings_size); |
| 778 break; | 778 break; |
| 779 } | 779 } |
| 780 | 780 |
| 781 DCHECK_LE(range.start, range.end); | 781 DCHECK_LE(range.start, range.end); |
| 782 return range; | 782 return range; |
| 783 } | 783 } |
| 784 | 784 |
| 785 } // namespace cc | 785 } // namespace cc |
| OLD | NEW |