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

Unified Diff: components/exo/compositor_frame_sink.cc

Issue 2625153002: exo: CompositorFrameSink code cleanup. (Closed)
Patch Set: 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
« no previous file with comments | « components/exo/compositor_frame_sink.h ('k') | no next file » | 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 4444fe20b7a99d4f4a947049a9ce605a2abc59a8..1d8d4bcc1cc84c5b86dd181f8893a6ae59c1ab1a 100644
--- a/components/exo/compositor_frame_sink.cc
+++ b/components/exo/compositor_frame_sink.cc
@@ -14,20 +14,6 @@ namespace exo {
////////////////////////////////////////////////////////////////////////////////
// ExoComopositorFrameSink, public:
-// static
-void CompositorFrameSink::Create(
- const cc::FrameSinkId& frame_sink_id,
- cc::SurfaceManager* surface_manager,
- cc::mojom::MojoCompositorFrameSinkClientPtr client,
- cc::mojom::MojoCompositorFrameSinkRequest request) {
- std::unique_ptr<CompositorFrameSink> impl =
- base::MakeUnique<CompositorFrameSink>(frame_sink_id, surface_manager,
- std::move(client));
- CompositorFrameSink* compositor_frame_sink = impl.get();
- compositor_frame_sink->binding_ =
- mojo::MakeStrongBinding(std::move(impl), std::move(request));
-}
-
CompositorFrameSink::CompositorFrameSink(
const cc::FrameSinkId& frame_sink_id,
cc::SurfaceManager* surface_manager,
@@ -79,24 +65,20 @@ void CompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) {
// cc::CompositorFrameSinkSupportClient overrides:
void CompositorFrameSink::DidReceiveCompositorFrameAck() {
- if (client_)
- client_->DidReceiveCompositorFrameAck();
+ client_->DidReceiveCompositorFrameAck();
}
void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) {
- if (client_)
- client_->OnBeginFrame(args);
+ client_->OnBeginFrame(args);
}
void CompositorFrameSink::ReclaimResources(
const cc::ReturnedResourceArray& resources) {
- if (client_)
- client_->ReclaimResources(resources);
+ client_->ReclaimResources(resources);
}
void CompositorFrameSink::WillDrawSurface() {
- if (client_)
- client_->WillDrawSurface();
+ client_->WillDrawSurface();
}
} // namespace exo
« no previous file with comments | « components/exo/compositor_frame_sink.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698