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

Unified Diff: cc/surfaces/compositor_frame_sink_support.cc

Issue 2614423003: Adding SatisfySequence and RequireSequence to SurfaceManager (Closed)
Patch Set: up 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 | « no previous file | cc/surfaces/direct_surface_reference_factory.cc » ('j') | cc/surfaces/surface_manager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/compositor_frame_sink_support.cc
diff --git a/cc/surfaces/compositor_frame_sink_support.cc b/cc/surfaces/compositor_frame_sink_support.cc
index c36e35121216113a756f8550dfb60068a26f3b84..2b88ceafb56d93a83558c21dbb9d96bb605124b4 100644
--- a/cc/surfaces/compositor_frame_sink_support.cc
+++ b/cc/surfaces/compositor_frame_sink_support.cc
@@ -88,18 +88,12 @@ void CompositorFrameSinkSupport::SubmitCompositorFrame(
void CompositorFrameSinkSupport::Require(const LocalFrameId& local_frame_id,
const SurfaceSequence& sequence) {
- Surface* surface = surface_manager_->GetSurfaceForId(
- SurfaceId(frame_sink_id_, local_frame_id));
- if (!surface) {
- DLOG(ERROR) << "Attempting to require callback on nonexistent surface";
- return;
- }
- surface->AddDestructionDependency(sequence);
+ surface_manager_->RequireSequence(SurfaceId(frame_sink_id_, local_frame_id),
+ sequence);
}
void CompositorFrameSinkSupport::Satisfy(const SurfaceSequence& sequence) {
- std::vector<uint32_t> sequences = {sequence.sequence};
- surface_manager_->DidSatisfySequences(sequence.frame_sink_id, &sequences);
+ surface_manager_->SatisfySequence(sequence);
}
void CompositorFrameSinkSupport::DidReceiveCompositorFrameAck() {
« no previous file with comments | « no previous file | cc/surfaces/direct_surface_reference_factory.cc » ('j') | cc/surfaces/surface_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698