| 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/layers/picture_layer_impl.h" | 5 #include "cc/layers/picture_layer_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 AppendDebugBorderQuad( | 165 AppendDebugBorderQuad( |
| 166 render_pass, content_bounds(), shared_quad_state, append_quads_data); | 166 render_pass, content_bounds(), shared_quad_state, append_quads_data); |
| 167 | 167 |
| 168 SolidColorLayerImpl::AppendSolidQuads( | 168 SolidColorLayerImpl::AppendSolidQuads( |
| 169 render_pass, | 169 render_pass, |
| 170 occlusion_tracker, | 170 occlusion_tracker, |
| 171 shared_quad_state, | 171 shared_quad_state, |
| 172 content_bounds(), | 172 content_bounds(), |
| 173 draw_properties().target_space_transform, | 173 draw_properties().target_space_transform, |
| 174 pile_->solid_color()); | 174 pile_->solid_color(), |
| 175 append_quads_data); |
| 175 return; | 176 return; |
| 176 } | 177 } |
| 177 | 178 |
| 178 float max_contents_scale = MaximumTilingContentsScale(); | 179 float max_contents_scale = MaximumTilingContentsScale(); |
| 179 gfx::Transform scaled_draw_transform = draw_transform(); | 180 gfx::Transform scaled_draw_transform = draw_transform(); |
| 180 scaled_draw_transform.Scale(SK_MScalar1 / max_contents_scale, | 181 scaled_draw_transform.Scale(SK_MScalar1 / max_contents_scale, |
| 181 SK_MScalar1 / max_contents_scale); | 182 SK_MScalar1 / max_contents_scale); |
| 182 gfx::Size scaled_content_bounds = | 183 gfx::Size scaled_content_bounds = |
| 183 gfx::ToCeiledSize(gfx::ScaleSize(content_bounds(), max_contents_scale)); | 184 gfx::ToCeiledSize(gfx::ScaleSize(content_bounds(), max_contents_scale)); |
| 184 | 185 |
| (...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1787 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); | 1788 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); |
| 1788 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; | 1789 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; |
| 1789 return tiling_range.end - 1 - current_tiling_range_offset; | 1790 return tiling_range.end - 1 - current_tiling_range_offset; |
| 1790 } | 1791 } |
| 1791 } | 1792 } |
| 1792 NOTREACHED(); | 1793 NOTREACHED(); |
| 1793 return 0; | 1794 return 0; |
| 1794 } | 1795 } |
| 1795 | 1796 |
| 1796 } // namespace cc | 1797 } // namespace cc |
| OLD | NEW |