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

Unified Diff: services/ui/gpu/display_compositor/compositor_frame_sink_impl.cc

Issue 2167713002: cc: Delete SurfaceDrawStatus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Scott's comments Created 4 years, 5 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/gpu/display_compositor/compositor_frame_sink_impl.cc
diff --git a/services/ui/gpu/display_compositor/compositor_frame_sink_impl.cc b/services/ui/gpu/display_compositor/compositor_frame_sink_impl.cc
index 21290a65e866993cab13010a52234b142fe90439..867f2488f89bf536b36d41d10b943828670fdb76 100644
--- a/services/ui/gpu/display_compositor/compositor_frame_sink_impl.cc
+++ b/services/ui/gpu/display_compositor/compositor_frame_sink_impl.cc
@@ -11,15 +11,6 @@
namespace ui {
namespace gpu {
-namespace {
-
-void CallCallback(
- const mojom::CompositorFrameSink::SubmitCompositorFrameCallback& callback,
- cc::SurfaceDrawStatus draw_status) {
- callback.Run(static_cast<mojom::CompositorFrameDrawStatus>(draw_status));
-}
-}
-
CompositorFrameSinkImpl::CompositorFrameSinkImpl(
CompositorFrameSinkDelegate* delegate,
int sink_id,
@@ -69,7 +60,7 @@ void CompositorFrameSinkImpl::SubmitCompositorFrame(
last_submitted_frame_size_ = frame_size;
}
factory_.SubmitCompositorFrame(surface_id_, std::move(compositor_frame),
- base::Bind(&CallCallback, callback));
+ callback);
}
void CompositorFrameSinkImpl::ReturnResources(

Powered by Google App Engine
This is Rietveld 408576698