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

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

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: 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 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 protected: 99 protected:
100 // Protected for testing. Allows tests to inject the LayerTree. 100 // Protected for testing. Allows tests to inject the LayerTree.
101 LayerTreeHostRemote(InitParams* params, 101 LayerTreeHostRemote(InitParams* params,
102 std::unique_ptr<LayerTree> layer_tree); 102 std::unique_ptr<LayerTree> layer_tree);
103 103
104 LayerTreeHostClient* client() const { return client_; } 104 LayerTreeHostClient* client() const { return client_; }
105 RemoteCompositorBridge* remote_compositor_bridge() const { 105 RemoteCompositorBridge* remote_compositor_bridge() const {
106 return remote_compositor_bridge_.get(); 106 return remote_compositor_bridge_.get();
107 } 107 }
108 108
109 virtual void DispatchDrawAndSwapCallbacks(); 109 virtual void DispatchDrawAndSubmitCallbacks();
110 void SetTaskRunnerProviderForTesting( 110 void SetTaskRunnerProviderForTesting(
111 std::unique_ptr<TaskRunnerProvider> task_runner_provider); 111 std::unique_ptr<TaskRunnerProvider> task_runner_provider);
112 112
113 // RemoteCompositorBridgeClient implementation. 113 // RemoteCompositorBridgeClient implementation.
114 void BeginMainFrame() override; 114 void BeginMainFrame() override;
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);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 SurfaceSequenceGenerator surface_sequence_generator_; 164 SurfaceSequenceGenerator surface_sequence_generator_;
165 165
166 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 166 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
167 167
168 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; 168 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_;
169 }; 169 };
170 170
171 } // namespace cc 171 } // namespace cc
172 172
173 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ 173 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698