| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_image_layer_impl.h" | 5 #include "cc/picture_image_layer_impl.h" |
| 6 | 6 |
| 7 #include "cc/debug_colors.h" | 7 #include "cc/debug_colors.h" |
| 8 #include "cc/layer_tree_impl.h" | 8 #include "cc/layer_tree_impl.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 float* low_res_raster_contents_scale) { | 37 float* low_res_raster_contents_scale) { |
| 38 // Don't scale images during rastering to ensure image quality, save memory | 38 // Don't scale images during rastering to ensure image quality, save memory |
| 39 // and avoid frequent re-rastering on change of scale. | 39 // and avoid frequent re-rastering on change of scale. |
| 40 *raster_contents_scale = | 40 *raster_contents_scale = |
| 41 std::max(1.f, layerTreeImpl()->settings().minimumContentsScale); | 41 std::max(1.f, layerTreeImpl()->settings().minimumContentsScale); |
| 42 // We don't need low res tiles. | 42 // We don't need low res tiles. |
| 43 *low_res_raster_contents_scale = *raster_contents_scale; | 43 *low_res_raster_contents_scale = *raster_contents_scale; |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace cc | 46 } // namespace cc |
| OLD | NEW |