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

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

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. 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"
11 #include "cc/blimp/remote_compositor_bridge_client.h" 11 #include "cc/blimp/remote_compositor_bridge_client.h"
12 #include "cc/debug/layer_tree_debug_state.h" 12 #include "cc/debug/layer_tree_debug_state.h"
13 #include "cc/output/begin_frame_args.h"
13 #include "cc/surfaces/surface_sequence_generator.h" 14 #include "cc/surfaces/surface_sequence_generator.h"
14 #include "cc/trees/layer_tree_host.h" 15 #include "cc/trees/layer_tree_host.h"
15 #include "cc/trees/layer_tree_settings.h" 16 #include "cc/trees/layer_tree_settings.h"
16 #include "cc/trees/swap_promise_manager.h" 17 #include "cc/trees/swap_promise_manager.h"
17 18
18 namespace base { 19 namespace base {
19 class SingleThreadTaskRunner; 20 class SingleThreadTaskRunner;
20 } // namespace base 21 } // namespace base
21 22
22 namespace cc { 23 namespace cc {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 119
119 void MainFrameRequested(FramePipelineStage requested_pipeline_stage); 120 void MainFrameRequested(FramePipelineStage requested_pipeline_stage);
120 void ScheduleMainFrameIfNecessary(); 121 void ScheduleMainFrameIfNecessary();
121 void MainFrameComplete(); 122 void MainFrameComplete();
122 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto); 123 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto);
123 124
124 const int id_; 125 const int id_;
125 int source_frame_number_ = 0; 126 int source_frame_number_ = 0;
126 bool visible_ = false; 127 bool visible_ = false;
127 bool defer_commits_ = false; 128 bool defer_commits_ = false;
129 uint64_t begin_frame_number_ = BeginFrameArgs::kStartingFrameNumber;
128 130
129 // In threaded/single-threaded mode, the LayerTree and Layers expect scroll/ 131 // 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. 132 // 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 133 // Since we synchronize state outside of that, this is set so we can
132 // temporarily report that a commit is in progress. 134 // temporarily report that a commit is in progress.
133 bool synchronizing_client_updates_ = false; 135 bool synchronizing_client_updates_ = false;
134 136
135 // Set to true if a main frame request is pending on the 137 // Set to true if a main frame request is pending on the
136 // RemoteCompositorBridge. 138 // RemoteCompositorBridge.
137 bool main_frame_requested_from_bridge_ = false; 139 bool main_frame_requested_from_bridge_ = false;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 SurfaceSequenceGenerator surface_sequence_generator_; 172 SurfaceSequenceGenerator surface_sequence_generator_;
171 173
172 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 174 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
173 175
174 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; 176 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_;
175 }; 177 };
176 178
177 } // namespace cc 179 } // namespace cc
178 180
179 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ 181 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_
OLDNEW
« no previous file with comments | « blimp/client/support/compositor/blimp_embedder_compositor.cc ('k') | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698