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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 2764153003: Fixing Display Mirror Mode issue (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index 50a66bbc1f97095b492a49ac2d931bc6377f2255..aab05cda781097b50f223cfe6ff051c465db9132 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -570,6 +570,10 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
}
}
+ data->display_output_surface = display_output_surface.get();
+ if (data->reflector)
+ data->reflector->OnSourceSurfaceReady(data->display_output_surface);
+
std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source;
std::unique_ptr<GpuVSyncBeginFrameSource> gpu_vsync_begin_frame_source;
@@ -595,9 +599,6 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
}
}
- if (data->reflector)
- data->reflector->OnSourceSurfaceReady(data->display_output_surface);
-
#if defined(OS_WIN)
gfx::RenderingWindowManager::GetInstance()->DoSetParentOnChild(
compositor->widget());
« 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