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

Unified Diff: cc/blimp/layer_tree_host_remote.h

Issue 2401703002: cc/blimp: Set up the framework for LayerTreeTests in remote mode. (Closed)
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/BUILD.gn ('k') | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blimp/layer_tree_host_remote.h
diff --git a/cc/blimp/layer_tree_host_remote.h b/cc/blimp/layer_tree_host_remote.h
index 72b03a3342094f2048b690b018fcc1d024cefabc..5ce5f1698e94e8525f1a1e43da8380a4ed9d6caa 100644
--- a/cc/blimp/layer_tree_host_remote.h
+++ b/cc/blimp/layer_tree_host_remote.h
@@ -101,16 +101,24 @@ class CC_EXPORT LayerTreeHostRemote : public LayerTreeHost,
LayerTreeHostRemote(InitParams* params,
std::unique_ptr<LayerTree> layer_tree);
- private:
- enum class FramePipelineStage { NONE, ANIMATE, UPDATE_LAYERS, COMMIT };
+ LayerTreeHostClient* client() const { return client_; }
+ RemoteCompositorBridge* remote_compositor_bridge() const {
+ return remote_compositor_bridge_.get();
+ }
+
+ virtual void DispatchDrawAndSwapCallbacks();
+ void SetTaskRunnerProviderForTesting(
+ std::unique_ptr<TaskRunnerProvider> task_runner_provider);
// RemoteCompositorBridgeClient implementation.
void BeginMainFrame() override;
+ private:
+ enum class FramePipelineStage { NONE, ANIMATE, UPDATE_LAYERS, COMMIT };
+
void MainFrameRequested(FramePipelineStage requested_pipeline_stage);
void ScheduleMainFrameIfNecessary();
void MainFrameComplete();
- void DispatchDrawAndSwapCallbacks();
void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto);
const int id_;
« no previous file with comments | « cc/BUILD.gn ('k') | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698