Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: cc/trees/layer_tree_host_in_process.cc

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698