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

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

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: . Created 4 years 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 private: 116 private:
117 enum class FramePipelineStage { NONE, ANIMATE, UPDATE_LAYERS, COMMIT }; 117 enum class FramePipelineStage { NONE, ANIMATE, UPDATE_LAYERS, COMMIT };
118 118
119 void MainFrameRequested(FramePipelineStage requested_pipeline_stage); 119 void MainFrameRequested(FramePipelineStage requested_pipeline_stage);
120 void ScheduleMainFrameIfNecessary(); 120 void ScheduleMainFrameIfNecessary();
121 void MainFrameComplete(); 121 void MainFrameComplete();
122 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto); 122 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto);
123 123
124 const int id_; 124 const int id_;
125 int source_frame_number_ = 0; 125 int source_frame_number_ = 0;
Sami 2016/12/06 12:41:06 aside: We might want to drop a TODO somewhere abou
Eric Seckler 2016/12/06 17:33:59 In general, the LayerTreeHost::SourceFrameNumber()
Sami 2016/12/07 16:59:39 True, I was just thinking that since the only way
126 bool visible_ = false; 126 bool visible_ = false;
127 bool defer_commits_ = false; 127 bool defer_commits_ = false;
128 uint64_t begin_frame_number_ = 0;
128 129
129 // In threaded/single-threaded mode, the LayerTree and Layers expect scroll/ 130 // In threaded/single-threaded mode, the LayerTree and Layers expect scroll/
130 // scale updates to come from the impl thread only during the main frame. 131 // scale updates to come from the impl thread only during the main frame.
131 // Since we synchronize state outside of that, this is set so we can 132 // Since we synchronize state outside of that, this is set so we can
132 // temporarily report that a commit is in progress. 133 // temporarily report that a commit is in progress.
133 bool synchronizing_client_updates_ = false; 134 bool synchronizing_client_updates_ = false;
134 135
135 // Set to true if a main frame request is pending on the 136 // Set to true if a main frame request is pending on the
136 // RemoteCompositorBridge. 137 // RemoteCompositorBridge.
137 bool main_frame_requested_from_bridge_ = false; 138 bool main_frame_requested_from_bridge_ = false;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 SurfaceSequenceGenerator surface_sequence_generator_; 171 SurfaceSequenceGenerator surface_sequence_generator_;
171 172
172 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 173 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
173 174
174 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; 175 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_;
175 }; 176 };
176 177
177 } // namespace cc 178 } // namespace cc
178 179
179 #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