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

Unified Diff: components/exo/compositor_frame_sink.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: Add CompositorFrameSinkSupport::Create Created 3 years, 8 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 | « components/exo/compositor_frame_sink.h ('k') | components/viz/frame_sinks/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/compositor_frame_sink.cc
diff --git a/components/exo/compositor_frame_sink.cc b/components/exo/compositor_frame_sink.cc
index 9b7a34ce804f4b2b264f946f07ae4cc70fd065cf..864be3415f42be66339ff5408a45fc3acbc0be14 100644
--- a/components/exo/compositor_frame_sink.cc
+++ b/components/exo/compositor_frame_sink.cc
@@ -18,12 +18,13 @@ namespace exo {
CompositorFrameSink::CompositorFrameSink(const cc::FrameSinkId& frame_sink_id,
cc::SurfaceManager* surface_manager,
CompositorFrameSinkHolder* client)
- : support_(this,
- surface_manager,
- frame_sink_id,
- false /* is_root */,
- true /* handles_frame_sink_id_invalidation */,
- true /* needs_sync_points */),
+ : support_(cc::CompositorFrameSinkSupport::Create(
+ this,
+ surface_manager,
+ frame_sink_id,
+ false /* is_root */,
+ true /* handles_frame_sink_id_invalidation */,
+ true /* needs_sync_points */)),
client_(client) {}
CompositorFrameSink::~CompositorFrameSink() {}
@@ -32,22 +33,22 @@ CompositorFrameSink::~CompositorFrameSink() {}
// cc::mojom::MojoCompositorFrameSink overrides:
void CompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) {
- support_.SetNeedsBeginFrame(needs_begin_frame);
+ support_->SetNeedsBeginFrame(needs_begin_frame);
}
void CompositorFrameSink::SubmitCompositorFrame(
const cc::LocalSurfaceId& local_surface_id,
cc::CompositorFrame frame) {
- support_.SubmitCompositorFrame(local_surface_id, std::move(frame));
+ support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
}
void CompositorFrameSink::BeginFrameDidNotSwap(
const cc::BeginFrameAck& begin_frame_ack) {
- support_.BeginFrameDidNotSwap(begin_frame_ack);
+ support_->BeginFrameDidNotSwap(begin_frame_ack);
}
void CompositorFrameSink::EvictFrame() {
- support_.EvictFrame();
+ support_->EvictFrame();
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « components/exo/compositor_frame_sink.h ('k') | components/viz/frame_sinks/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698