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

Unified Diff: cc/blimp/layer_tree_host_remote.cc

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 side-by-side diff with in-line comments
Download patch
Index: cc/blimp/layer_tree_host_remote.cc
diff --git a/cc/blimp/layer_tree_host_remote.cc b/cc/blimp/layer_tree_host_remote.cc
index f4136c01ff648846311573feb4f02d8bac17625d..e462e1189db39f5ac06609cbdafb6668789c6ef0 100644
--- a/cc/blimp/layer_tree_host_remote.cc
+++ b/cc/blimp/layer_tree_host_remote.cc
@@ -408,8 +408,9 @@ void LayerTreeHostRemote::BeginMainFrame() {
// being used for. Consider migrating clients to understand/cope with the fact
// that there is no actual compositing happening here.
task_runner_provider_->MainThreadTaskRunner()->PostTask(
- FROM_HERE, base::Bind(&LayerTreeHostRemote::DispatchDrawAndSwapCallbacks,
- weak_factory_.GetWeakPtr()));
+ FROM_HERE,
+ base::Bind(&LayerTreeHostRemote::DispatchDrawAndSubmitCallbacks,
+ weak_factory_.GetWeakPtr()));
}
void LayerTreeHostRemote::MainFrameComplete() {
@@ -423,9 +424,9 @@ void LayerTreeHostRemote::MainFrameComplete() {
client_->DidBeginMainFrame();
}
-void LayerTreeHostRemote::DispatchDrawAndSwapCallbacks() {
+void LayerTreeHostRemote::DispatchDrawAndSubmitCallbacks() {
client_->DidCommitAndDrawFrame();
- client_->DidCompleteSwapBuffers();
+ client_->DidReceiveCompositorFrameAck();
}
void LayerTreeHostRemote::SetTaskRunnerProviderForTesting(

Powered by Google App Engine
This is Rietveld 408576698