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

Side by Side Diff: cc/blimp/layer_tree_host_remote.h

Issue 2445093002: cc/blimp: Add synchronization for scroll/scale state. (Closed)
Patch Set: Addressed comments Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ 5 #ifndef CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_
6 #define CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ 6 #define CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 RemoteCompositorBridge* remote_compositor_bridge() const { 104 RemoteCompositorBridge* remote_compositor_bridge() const {
105 return remote_compositor_bridge_.get(); 105 return remote_compositor_bridge_.get();
106 } 106 }
107 107
108 virtual void DispatchDrawAndSubmitCallbacks(); 108 virtual void DispatchDrawAndSubmitCallbacks();
109 void SetTaskRunnerProviderForTesting( 109 void SetTaskRunnerProviderForTesting(
110 std::unique_ptr<TaskRunnerProvider> task_runner_provider); 110 std::unique_ptr<TaskRunnerProvider> task_runner_provider);
111 111
112 // RemoteCompositorBridgeClient implementation. 112 // RemoteCompositorBridgeClient implementation.
113 void BeginMainFrame() override; 113 void BeginMainFrame() override;
114 bool ApplyScrollAndScaleUpdateFromClient( 114 void ApplyStateUpdateFromClient(
115 const ScrollOffsetMap& client_scroll_map, 115 const proto::ClientStateUpdate& client_state_update) override;
116 float client_page_scale) override;
117 116
118 private: 117 private:
119 enum class FramePipelineStage { NONE, ANIMATE, UPDATE_LAYERS, COMMIT }; 118 enum class FramePipelineStage { NONE, ANIMATE, UPDATE_LAYERS, COMMIT };
120 119
121 void MainFrameRequested(FramePipelineStage requested_pipeline_stage); 120 void MainFrameRequested(FramePipelineStage requested_pipeline_stage);
122 void ScheduleMainFrameIfNecessary(); 121 void ScheduleMainFrameIfNecessary();
123 void MainFrameComplete(); 122 void MainFrameComplete();
124 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto); 123 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto);
125 124
126 const int id_; 125 const int id_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 SurfaceSequenceGenerator surface_sequence_generator_; 171 SurfaceSequenceGenerator surface_sequence_generator_;
173 172
174 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 173 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
175 174
176 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; 175 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_;
177 }; 176 };
178 177
179 } // namespace cc 178 } // namespace cc
180 179
181 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ 180 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698