| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_in_process.h" | 5 #include "cc/trees/layer_tree_host_in_process.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 // LayerTreeHostInProcess. | 971 // LayerTreeHostInProcess. |
| 972 // TODO(nyquist): Figure out how to support animations. See crbug.com/570376. | 972 // TODO(nyquist): Figure out how to support animations. See crbug.com/570376. |
| 973 TRACE_EVENT0("cc.remote", "LayerTreeHostInProcess::ToProtobufForCommit"); | 973 TRACE_EVENT0("cc.remote", "LayerTreeHostInProcess::ToProtobufForCommit"); |
| 974 *swap_promises = swap_promise_manager_.TakeSwapPromises(); | 974 *swap_promises = swap_promise_manager_.TakeSwapPromises(); |
| 975 | 975 |
| 976 proto->set_source_frame_number(source_frame_number_); | 976 proto->set_source_frame_number(source_frame_number_); |
| 977 | 977 |
| 978 // Serialize the LayerTree before serializing the properties. During layer | 978 // Serialize the LayerTree before serializing the properties. During layer |
| 979 // property serialization, we clear the list |layer_that_should_properties_| | 979 // property serialization, we clear the list |layer_that_should_properties_| |
| 980 // from the LayerTree. | 980 // from the LayerTree. |
| 981 layer_tree_->ToProtobuf(proto->mutable_layer_tree()); | 981 layer_tree_->ToProtobuf(proto->mutable_layer_tree(), false); |
| 982 | 982 |
| 983 LayerProtoConverter::SerializeLayerProperties(this, | 983 LayerProtoConverter::SerializeLayerProperties(this, |
| 984 proto->mutable_layer_updates()); | 984 proto->mutable_layer_updates()); |
| 985 | 985 |
| 986 std::vector<PictureData> pictures = | 986 std::vector<PictureData> pictures = |
| 987 engine_picture_cache_->CalculateCacheUpdateAndFlush(); | 987 engine_picture_cache_->CalculateCacheUpdateAndFlush(); |
| 988 proto::PictureDataVectorToSkPicturesProto(pictures, | 988 proto::PictureDataVectorToSkPicturesProto(pictures, |
| 989 proto->mutable_pictures()); | 989 proto->mutable_pictures()); |
| 990 | 990 |
| 991 debug_state_.ToProtobuf(proto->mutable_debug_state()); | 991 debug_state_.ToProtobuf(proto->mutable_debug_state()); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1022 | 1022 |
| 1023 debug_state_.FromProtobuf(proto.debug_state()); | 1023 debug_state_.FromProtobuf(proto.debug_state()); |
| 1024 has_gpu_rasterization_trigger_ = proto.has_gpu_rasterization_trigger(); | 1024 has_gpu_rasterization_trigger_ = proto.has_gpu_rasterization_trigger(); |
| 1025 content_is_suitable_for_gpu_rasterization_ = | 1025 content_is_suitable_for_gpu_rasterization_ = |
| 1026 proto.content_is_suitable_for_gpu_rasterization(); | 1026 proto.content_is_suitable_for_gpu_rasterization(); |
| 1027 id_ = proto.id(); | 1027 id_ = proto.id(); |
| 1028 next_commit_forces_redraw_ = proto.next_commit_forces_redraw(); | 1028 next_commit_forces_redraw_ = proto.next_commit_forces_redraw(); |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 } // namespace cc | 1031 } // namespace cc |
| OLD | NEW |