| 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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 // on the main thread. | 885 // on the main thread. |
| 886 ApplyViewportDeltas(info); | 886 ApplyViewportDeltas(info); |
| 887 } | 887 } |
| 888 | 888 |
| 889 const base::WeakPtr<InputHandler>& LayerTreeHostInProcess::GetInputHandler() | 889 const base::WeakPtr<InputHandler>& LayerTreeHostInProcess::GetInputHandler() |
| 890 const { | 890 const { |
| 891 return input_handler_weak_ptr_; | 891 return input_handler_weak_ptr_; |
| 892 } | 892 } |
| 893 | 893 |
| 894 void LayerTreeHostInProcess::UpdateTopControlsState( | 894 void LayerTreeHostInProcess::UpdateTopControlsState( |
| 895 TopControlsState constraints, | 895 BrowserControlsState constraints, |
| 896 TopControlsState current, | 896 BrowserControlsState current, |
| 897 bool animate) { | 897 bool animate) { |
| 898 // Top controls are only used in threaded or remote mode. | 898 // Top controls are only used in threaded or remote mode. |
| 899 DCHECK(IsThreaded() || IsRemoteServer()); | 899 DCHECK(IsThreaded() || IsRemoteServer()); |
| 900 proxy_->UpdateTopControlsState(constraints, current, animate); | 900 proxy_->UpdateTopControlsState(constraints, current, animate); |
| 901 } | 901 } |
| 902 | 902 |
| 903 void LayerTreeHostInProcess::AnimateLayers(base::TimeTicks monotonic_time) { | 903 void LayerTreeHostInProcess::AnimateLayers(base::TimeTicks monotonic_time) { |
| 904 AnimationHost* animation_host = layer_tree_->animation_host(); | 904 AnimationHost* animation_host = layer_tree_->animation_host(); |
| 905 std::unique_ptr<AnimationEvents> events = animation_host->CreateEvents(); | 905 std::unique_ptr<AnimationEvents> events = animation_host->CreateEvents(); |
| 906 | 906 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 | 1033 |
| 1034 debug_state_.FromProtobuf(proto.debug_state()); | 1034 debug_state_.FromProtobuf(proto.debug_state()); |
| 1035 has_gpu_rasterization_trigger_ = proto.has_gpu_rasterization_trigger(); | 1035 has_gpu_rasterization_trigger_ = proto.has_gpu_rasterization_trigger(); |
| 1036 content_is_suitable_for_gpu_rasterization_ = | 1036 content_is_suitable_for_gpu_rasterization_ = |
| 1037 proto.content_is_suitable_for_gpu_rasterization(); | 1037 proto.content_is_suitable_for_gpu_rasterization(); |
| 1038 id_ = proto.id(); | 1038 id_ = proto.id(); |
| 1039 next_commit_forces_redraw_ = proto.next_commit_forces_redraw(); | 1039 next_commit_forces_redraw_ = proto.next_commit_forces_redraw(); |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 } // namespace cc | 1042 } // namespace cc |
| OLD | NEW |