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

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: 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 | « content/browser/android/synchronous_compositor_host.cc ('k') | 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..ffea3862ca6a2c06585438093d0e09249ae12e3c 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.cc
+++ b/content/renderer/android/synchronous_compositor_output_surface.cc
@@ -106,6 +106,7 @@ void SynchronousCompositorOutputSurface::SetSyncClient(
SynchronousCompositorOutputSurfaceClient* compositor) {
DCHECK(CalledOnValidThread());
sync_client_ = compositor;
+ Send(new SyncCompositorHostMsg_OutputSurfaceCreated(routing_id_));
boliu 2016/06/04 00:47:01 only do this if sync_client_ is not null
}
bool SynchronousCompositorOutputSurface::OnMessageReceived(
@@ -131,7 +132,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 | « content/browser/android/synchronous_compositor_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698