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

Unified Diff: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests Created 4 years, 2 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: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
diff --git a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
index 0cb7f5c532a93811fe6ff075708aed83896a367d..98b4eeb046fd0d3db143dc39caaa1f3b1749ccb3 100644
--- a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
+++ b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
@@ -26,7 +26,7 @@ OffscreenCanvasCompositorFrameSink::~OffscreenCanvasCompositorFrameSink() {
} else {
manager->InvalidateFrameSinkId(surface_id_.frame_sink_id());
}
- surface_factory_->Destroy(surface_id_);
+ surface_factory_->Destroy(surface_id_.local_frame_id());
}
}
@@ -47,12 +47,12 @@ void OffscreenCanvasCompositorFrameSink::SubmitCompositorFrame(
cc::SurfaceManager* manager = GetSurfaceManager();
surface_factory_ = base::MakeUnique<cc::SurfaceFactory>(
surface_id_.frame_sink_id(), manager, this);
- surface_factory_->Create(surface_id_);
+ surface_factory_->Create(surface_id_.local_frame_id());
manager->RegisterFrameSinkId(surface_id_.frame_sink_id());
}
- surface_factory_->SubmitCompositorFrame(surface_id_, std::move(frame),
- callback);
+ surface_factory_->SubmitCompositorFrame(surface_id_.local_frame_id(),
+ std::move(frame), callback);
}
void OffscreenCanvasCompositorFrameSink::SetNeedsBeginFrame(
@@ -66,7 +66,7 @@ void OffscreenCanvasCompositorFrameSink::ReturnResources(
}
void OffscreenCanvasCompositorFrameSink::WillDrawSurface(
- const cc::SurfaceId& id,
+ const cc::LocalFrameId& id,
const gfx::Rect& damage_rect) {}
void OffscreenCanvasCompositorFrameSink::SetBeginFrameSource(

Powered by Google App Engine
This is Rietveld 408576698