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 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 gfx::ScaleToEnclosingRect(visible_content_rect(), max_contents_scale); | 150 gfx::ScaleToEnclosingRect(visible_content_rect(), max_contents_scale); |
151 scaled_visible_content_rect.Intersect(gfx::Rect(scaled_content_bounds)); | 151 scaled_visible_content_rect.Intersect(gfx::Rect(scaled_content_bounds)); |
152 | 152 |
153 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); | 153 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); |
154 shared_quad_state->SetAll(scaled_draw_transform, | 154 shared_quad_state->SetAll(scaled_draw_transform, |
155 scaled_content_bounds, | 155 scaled_content_bounds, |
156 scaled_visible_content_rect, | 156 scaled_visible_content_rect, |
157 draw_properties().clip_rect, | 157 draw_properties().clip_rect, |
158 draw_properties().is_clipped, | 158 draw_properties().is_clipped, |
159 draw_properties().opacity, | 159 draw_properties().opacity, |
160 blend_mode()); | 160 blend_mode(), |
| 161 sorting_context_id_); |
161 | 162 |
162 gfx::Rect rect = scaled_visible_content_rect; | 163 gfx::Rect rect = scaled_visible_content_rect; |
163 | 164 |
164 if (current_draw_mode_ == DRAW_MODE_RESOURCELESS_SOFTWARE) { | 165 if (current_draw_mode_ == DRAW_MODE_RESOURCELESS_SOFTWARE) { |
165 AppendDebugBorderQuad( | 166 AppendDebugBorderQuad( |
166 quad_sink, | 167 quad_sink, |
167 shared_quad_state, | 168 shared_quad_state, |
168 append_quads_data, | 169 append_quads_data, |
169 DebugColors::DirectPictureBorderColor(), | 170 DebugColors::DirectPictureBorderColor(), |
170 DebugColors::DirectPictureBorderWidth(layer_tree_impl())); | 171 DebugColors::DirectPictureBorderWidth(layer_tree_impl())); |
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 return iterator_index_ < iterators_.size(); | 1638 return iterator_index_ < iterators_.size(); |
1638 } | 1639 } |
1639 | 1640 |
1640 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType( | 1641 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType( |
1641 PictureLayerTiling::TilingEvictionTileIterator* it) const { | 1642 PictureLayerTiling::TilingEvictionTileIterator* it) const { |
1642 return it->get_type() == iteration_stage_ && | 1643 return it->get_type() == iteration_stage_ && |
1643 (**it)->required_for_activation() == required_for_activation_; | 1644 (**it)->required_for_activation() == required_for_activation_; |
1644 } | 1645 } |
1645 | 1646 |
1646 } // namespace cc | 1647 } // namespace cc |
OLD | NEW |