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

Unified Diff: cc/trees/remote_channel_impl.cc

Issue 1925863003: Changed Blimp client to start with white screen before drawing contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master Created 4 years, 7 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/trees/remote_channel_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/remote_channel_impl.cc
diff --git a/cc/trees/remote_channel_impl.cc b/cc/trees/remote_channel_impl.cc
index bacfa617039f86f4cb30adf269d91075811d685b..42d943d32a7c1047f76abfe20e1e728e86de1476 100644
--- a/cc/trees/remote_channel_impl.cc
+++ b/cc/trees/remote_channel_impl.cc
@@ -331,7 +331,12 @@ bool RemoteChannelImpl::MainFrameWillHappenForTesting() {
return main_frame_will_happen;
}
-void RemoteChannelImpl::DidCompleteSwapBuffers() {}
+void RemoteChannelImpl::DidCompleteSwapBuffers() {
+ DCHECK(task_runner_provider_->IsImplThread());
+ MainThreadTaskRunner()->PostTask(
+ FROM_HERE, base::Bind(&RemoteChannelImpl::DidCompleteSwapBuffersOnMain,
+ impl().remote_channel_weak_ptr));
+}
void RemoteChannelImpl::SetRendererCapabilitiesMainCopy(
const RendererCapabilities& capabilities) {}
@@ -398,6 +403,11 @@ void RemoteChannelImpl::SendMessageProto(
impl().remote_channel_weak_ptr, base::Passed(&proto)));
}
+void RemoteChannelImpl::DidCompleteSwapBuffersOnMain() {
+ DCHECK(task_runner_provider_->IsMainThread());
+ main().layer_tree_host->DidCompleteSwapBuffers();
+}
+
void RemoteChannelImpl::DidLoseOutputSurfaceOnMain() {
DCHECK(task_runner_provider_->IsMainThread());
« no previous file with comments | « cc/trees/remote_channel_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698