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

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

Issue 2583483002: [cc] Adds source_id and sequence_number to BeginFrameArgs. (Closed)
Patch Set: fix field ordering 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
« no previous file with comments | « no previous file | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
14 #include "cc/scheduler/begin_frame_source.h"
13 #include "cc/surfaces/surface_sequence_generator.h" 15 #include "cc/surfaces/surface_sequence_generator.h"
14 #include "cc/trees/layer_tree_host.h" 16 #include "cc/trees/layer_tree_host.h"
15 #include "cc/trees/layer_tree_settings.h" 17 #include "cc/trees/layer_tree_settings.h"
16 #include "cc/trees/swap_promise_manager.h" 18 #include "cc/trees/swap_promise_manager.h"
17 19
18 namespace base { 20 namespace base {
19 class SingleThreadTaskRunner; 21 class SingleThreadTaskRunner;
20 } // namespace base 22 } // namespace base
21 23
22 namespace cc { 24 namespace cc {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void MainFrameRequested(FramePipelineStage requested_pipeline_stage); 121 void MainFrameRequested(FramePipelineStage requested_pipeline_stage);
120 void ScheduleMainFrameIfNecessary(); 122 void ScheduleMainFrameIfNecessary();
121 void MainFrameComplete(); 123 void MainFrameComplete();
122 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto); 124 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto);
123 125
124 const int id_; 126 const int id_;
125 int source_frame_number_ = 0; 127 int source_frame_number_ = 0;
126 bool visible_ = false; 128 bool visible_ = false;
127 bool defer_commits_ = false; 129 bool defer_commits_ = false;
128 130
131 // Provides |source_id| for BeginFrameArgs we create.
132 StubBeginFrameSource begin_frame_source_;
133 uint64_t begin_frame_number_ = BeginFrameArgs::kStartingFrameNumber;
134
129 // In threaded/single-threaded mode, the LayerTree and Layers expect scroll/ 135 // 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. 136 // 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 137 // Since we synchronize state outside of that, this is set so we can
132 // temporarily report that a commit is in progress. 138 // temporarily report that a commit is in progress.
133 bool synchronizing_client_updates_ = false; 139 bool synchronizing_client_updates_ = false;
134 140
135 // Set to true if a main frame request is pending on the 141 // Set to true if a main frame request is pending on the
136 // RemoteCompositorBridge. 142 // RemoteCompositorBridge.
137 bool main_frame_requested_from_bridge_ = false; 143 bool main_frame_requested_from_bridge_ = false;
138 144
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 SurfaceSequenceGenerator surface_sequence_generator_; 176 SurfaceSequenceGenerator surface_sequence_generator_;
171 177
172 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 178 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
173 179
174 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; 180 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_;
175 }; 181 };
176 182
177 } // namespace cc 183 } // namespace cc
178 184
179 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ 185 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698