| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 // We always need to push properties. | 134 // We always need to push properties. |
| 135 // See http://crbug.com/303943 | 135 // See http://crbug.com/303943 |
| 136 needs_push_properties_ = true; | 136 needs_push_properties_ = true; |
| 137 } | 137 } |
| 138 | 138 |
| 139 void PictureLayerImpl::AppendQuads(QuadSink* quad_sink, | 139 void PictureLayerImpl::AppendQuads(QuadSink* quad_sink, |
| 140 AppendQuadsData* append_quads_data) { | 140 AppendQuadsData* append_quads_data) { |
| 141 DCHECK(!needs_post_commit_initialization_); | 141 DCHECK(!needs_post_commit_initialization_); |
| 142 gfx::Rect rect(visible_content_rect()); | 142 gfx::Rect rect(visible_content_rect()); |
| 143 gfx::Rect content_rect(content_bounds()); | |
| 144 | 143 |
| 145 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); | 144 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); |
| 146 PopulateSharedQuadState(shared_quad_state); | 145 PopulateSharedQuadState(shared_quad_state); |
| 147 | 146 |
| 148 if (current_draw_mode_ == DRAW_MODE_RESOURCELESS_SOFTWARE) { | 147 if (current_draw_mode_ == DRAW_MODE_RESOURCELESS_SOFTWARE) { |
| 149 AppendDebugBorderQuad( | 148 AppendDebugBorderQuad( |
| 150 quad_sink, | 149 quad_sink, |
| 151 shared_quad_state, | 150 shared_quad_state, |
| 152 append_quads_data, | 151 append_quads_data, |
| 153 DebugColors::DirectPictureBorderColor(), | 152 DebugColors::DirectPictureBorderColor(), |
| (...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1557 return iterator_index_ < iterators_.size(); | 1556 return iterator_index_ < iterators_.size(); |
| 1558 } | 1557 } |
| 1559 | 1558 |
| 1560 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType( | 1559 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType( |
| 1561 PictureLayerTiling::TilingEvictionTileIterator* it) const { | 1560 PictureLayerTiling::TilingEvictionTileIterator* it) const { |
| 1562 return it->get_type() == iteration_stage_ && | 1561 return it->get_type() == iteration_stage_ && |
| 1563 (**it)->required_for_activation() == required_for_activation_; | 1562 (**it)->required_for_activation() == required_for_activation_; |
| 1564 } | 1563 } |
| 1565 | 1564 |
| 1566 } // namespace cc | 1565 } // namespace cc |
| OLD | NEW |