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

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

Issue 2764633003: 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 2d6a2d6bac0914b55091cc7be27045f39e3474b1..53d38644f532c08e49d3e744e788d78d669090e8 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -571,6 +571,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;
@@ -596,9 +600,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