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

Unified Diff: cc/trees/remote_channel_impl.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Built debug UI 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
« blimp/net/packet_writer.h ('K') | « 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 475970764a271c0a80be60c5cd5296640a12da8c..69a3b6b2d7dc553f3e17bbd60bf96967b613aca3 100644
--- a/cc/trees/remote_channel_impl.cc
+++ b/cc/trees/remote_channel_impl.cc
@@ -338,7 +338,12 @@ void RemoteChannelImpl::SetRendererCapabilitiesMainCopy(
void RemoteChannelImpl::BeginMainFrameNotExpectedSoon() {}
-void RemoteChannelImpl::DidCommitAndDrawFrame() {}
+void RemoteChannelImpl::DidCommitAndDrawFrame() {
+ DCHECK(task_runner_provider_->IsImplThread());
+ MainThreadTaskRunner()->PostTask(
+ FROM_HERE, base::Bind(&RemoteChannelImpl::DidCommitAndDrawFrameOnMain,
+ impl().remote_channel_weak_ptr));
+}
void RemoteChannelImpl::SetAnimationEvents(
std::unique_ptr<AnimationEvents> queue) {}
@@ -403,6 +408,11 @@ void RemoteChannelImpl::DidCompleteSwapBuffersOnMain() {
main().layer_tree_host->DidCompleteSwapBuffers();
}
+void RemoteChannelImpl::DidCommitAndDrawFrameOnMain() {
Khushal 2016/05/18 00:23:01 Just a reminder, make sure to update the remote ch
shaktisahu 2016/05/19 21:39:19 Done.
+ DCHECK(task_runner_provider_->IsMainThread());
+ main().layer_tree_host->DidCommitAndDrawFrame();
+}
+
void RemoteChannelImpl::DidLoseOutputSurfaceOnMain() {
DCHECK(task_runner_provider_->IsMainThread());
« blimp/net/packet_writer.h ('K') | « cc/trees/remote_channel_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698