| 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 | 8 |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 WhichTree tree = | 281 WhichTree tree = |
| 282 layer_tree_impl()->IsActiveTree() ? ACTIVE_TREE : PENDING_TREE; | 282 layer_tree_impl()->IsActiveTree() ? ACTIVE_TREE : PENDING_TREE; |
| 283 bool store_screen_space_quads_on_tiles = | 283 bool store_screen_space_quads_on_tiles = |
| 284 layer_tree_impl()->debug_state().trace_all_rendered_frames; | 284 layer_tree_impl()->debug_state().trace_all_rendered_frames; |
| 285 size_t max_tiles_for_interest_area = | 285 size_t max_tiles_for_interest_area = |
| 286 layer_tree_impl()->settings().max_tiles_for_interest_area; | 286 layer_tree_impl()->settings().max_tiles_for_interest_area; |
| 287 tilings_->UpdateTilePriorities( | 287 tilings_->UpdateTilePriorities( |
| 288 tree, | 288 tree, |
| 289 layer_tree_impl()->device_viewport_size(), | 289 layer_tree_impl()->device_viewport_size(), |
| 290 viewport_in_content_space, | 290 viewport_in_content_space, |
| 291 visible_content_rect(), |
| 291 last_bounds_, | 292 last_bounds_, |
| 292 bounds(), | 293 bounds(), |
| 293 last_content_scale_, | 294 last_content_scale_, |
| 294 contents_scale_x(), | 295 contents_scale_x(), |
| 295 last_screen_space_transform_, | 296 last_screen_space_transform_, |
| 296 current_screen_space_transform, | 297 current_screen_space_transform, |
| 297 current_source_frame_number, | 298 current_source_frame_number, |
| 298 current_frame_time, | 299 current_frame_time, |
| 299 store_screen_space_quads_on_tiles, | 300 store_screen_space_quads_on_tiles, |
| 300 max_tiles_for_interest_area); | 301 max_tiles_for_interest_area); |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 scoped_ptr<base::Value> PictureLayerImpl::AsValue() const { | 903 scoped_ptr<base::Value> PictureLayerImpl::AsValue() const { |
| 903 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); | 904 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); |
| 904 LayerImpl::AsValueInto(state.get()); | 905 LayerImpl::AsValueInto(state.get()); |
| 905 | 906 |
| 906 state->SetDouble("ideal_contents_scale", ideal_contents_scale_); | 907 state->SetDouble("ideal_contents_scale", ideal_contents_scale_); |
| 907 state->Set("tilings", tilings_->AsValue().release()); | 908 state->Set("tilings", tilings_->AsValue().release()); |
| 908 return state.PassAs<base::Value>(); | 909 return state.PassAs<base::Value>(); |
| 909 } | 910 } |
| 910 | 911 |
| 911 } // namespace cc | 912 } // namespace cc |
| OLD | NEW |