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

Unified Diff: components/exo/compositor_frame_sink_holder.cc

Issue 2786643002: [exo]CompositorFrameSinkHolder calls WillDraw in DidReceiveCompositorFrameAck (Closed)
Patch Set: Address A Comment 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 | « no previous file | components/exo/surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/compositor_frame_sink_holder.cc
diff --git a/components/exo/compositor_frame_sink_holder.cc b/components/exo/compositor_frame_sink_holder.cc
index c21346fc51b71d6979652fc38cf8e9ba1c5c742b..695aeec1877591bfaba9f849cecda15c93a76088 100644
--- a/components/exo/compositor_frame_sink_holder.cc
+++ b/components/exo/compositor_frame_sink_holder.cc
@@ -41,7 +41,8 @@ void CompositorFrameSinkHolder::SetResourceReleaseCallback(
// cc::mojom::MojoCompositorFrameSinkClient overrides:
void CompositorFrameSinkHolder::DidReceiveCompositorFrameAck() {
- // TODO(staraz): Implement this
+ if (surface_)
+ surface_->DidReceiveCompositorFrameAck();
}
void CompositorFrameSinkHolder::OnBeginFrame(const cc::BeginFrameArgs& args) {
@@ -62,10 +63,7 @@ void CompositorFrameSinkHolder::ReclaimResources(
void CompositorFrameSinkHolder::WillDrawSurface(
const cc::LocalSurfaceId& local_surface_id,
- const gfx::Rect& damage_rect) {
- if (surface_)
- surface_->WillDraw();
-}
+ const gfx::Rect& damage_rect) {}
////////////////////////////////////////////////////////////////////////////////
// cc::ExternalBeginFrameSourceClient overrides:
« no previous file with comments | « no previous file | components/exo/surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698