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

Unified Diff: services/ui/surfaces/gpu_compositor_frame_sink.cc

Issue 2612083002: DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: set has_compositor_frame_sink_ to false in SetVisible(false) Created 3 years, 11 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
Index: services/ui/surfaces/gpu_compositor_frame_sink.cc
diff --git a/services/ui/surfaces/gpu_compositor_frame_sink.cc b/services/ui/surfaces/gpu_compositor_frame_sink.cc
index 4b472776b264e9802b1bd8c2687cb6661e3178a1..7b1210c04f59d63e590f36908b7cd4ddb9dd9bb7 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.cc
+++ b/services/ui/surfaces/gpu_compositor_frame_sink.cc
@@ -21,8 +21,9 @@ GpuCompositorFrameSink::GpuCompositorFrameSink(
support_(this,
display_compositor->manager(),
frame_sink_id,
- std::move(display),
- std::move(begin_frame_source)),
+ display.get()),
+ display_(std::move(display)),
+ display_begin_frame_source_(std::move(begin_frame_source)),
surface_tracker_(frame_sink_id),
client_(std::move(client)),
compositor_frame_sink_private_binding_(
@@ -31,6 +32,9 @@ GpuCompositorFrameSink::GpuCompositorFrameSink(
compositor_frame_sink_private_binding_.set_connection_error_handler(
base::Bind(&GpuCompositorFrameSink::OnPrivateConnectionLost,
base::Unretained(this)));
+
+ if (display_.get())
+ display_->SetVisible(true);
}
GpuCompositorFrameSink::~GpuCompositorFrameSink() {

Powered by Google App Engine
This is Rietveld 408576698