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

Unified Diff: content/renderer/android/synchronous_compositor_output_surface.cc

Issue 2035993003: Android WebView: Always send memory policy from Browser to Renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert host.cc change Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/android/synchronous_compositor_output_surface.cc
diff --git a/content/renderer/android/synchronous_compositor_output_surface.cc b/content/renderer/android/synchronous_compositor_output_surface.cc
index a26bb2f0c95078f8a4fc80cfbeb2eb712e1293d8..12941c260bb37655a9b94ee7b4242457c9ba3768 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.cc
+++ b/content/renderer/android/synchronous_compositor_output_surface.cc
@@ -106,6 +106,8 @@ void SynchronousCompositorOutputSurface::SetSyncClient(
SynchronousCompositorOutputSurfaceClient* compositor) {
DCHECK(CalledOnValidThread());
sync_client_ = compositor;
+ if (sync_client_)
+ Send(new SyncCompositorHostMsg_OutputSurfaceCreated(routing_id_));
}
bool SynchronousCompositorOutputSurface::OnMessageReceived(
@@ -131,7 +133,6 @@ bool SynchronousCompositorOutputSurface::BindToClient(
base::Unretained(this)));
registry_->RegisterOutputSurface(routing_id_, this);
registered_ = true;
- Send(new SyncCompositorHostMsg_OutputSurfaceCreated(routing_id_));
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698