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

Unified Diff: content/renderer/render_widget.cc

Issue 1769913003: sync compositor: Add output_surface_id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit in test Created 4 years, 9 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/renderer/android/synchronous_compositor_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index a4b9d638608ab2308bdf3936a3c3db065f60a895..b8337c68a792664b98c3b445bd110f6b015824ff 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -752,14 +752,16 @@ scoped_ptr<cc::OutputSurface> RenderWidget::CreateOutputSurface(bool fallback) {
#if defined(OS_ANDROID)
if (SynchronousCompositorFactory* factory =
SynchronousCompositorFactory::GetInstance()) {
+ uint32_t output_surface_id = next_output_surface_id_++;
return factory->CreateOutputSurface(
- routing_id(), frame_swap_message_queue_, context_provider,
- worker_context_provider);
+ routing_id(), output_surface_id, frame_swap_message_queue_,
+ context_provider, worker_context_provider);
} else if (RenderThreadImpl::current()->sync_compositor_message_filter()) {
+ uint32_t output_surface_id = next_output_surface_id_++;
return make_scoped_ptr(new SynchronousCompositorOutputSurface(
context_provider, worker_context_provider, routing_id(),
- content::RenderThreadImpl::current()
- ->sync_compositor_message_filter(),
+ output_surface_id, content::RenderThreadImpl::current()
+ ->sync_compositor_message_filter(),
frame_swap_message_queue_));
}
#endif
« no previous file with comments | « content/renderer/android/synchronous_compositor_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698