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

Unified Diff: cc/surfaces/compositor_frame_sink_support.cc

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase. Created 3 years, 10 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: 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 7930d9e7b2eae1db80a48b95b458e4604778fbd7..2777d76288432f2233fa01f08c65e52cffb00a6b 100644
--- a/cc/surfaces/compositor_frame_sink_support.cc
+++ b/cc/surfaces/compositor_frame_sink_support.cc
@@ -6,7 +6,6 @@
#include <algorithm>
#include <utility>
-#include <vector>
#include "cc/output/compositor_frame.h"
#include "cc/scheduler/begin_frame_source.h"
@@ -141,6 +140,11 @@ void CompositorFrameSinkSupport::ForceReclaimResources() {
surface_factory_.ClearSurface();
}
+void CompositorFrameSinkSupport::ClaimTemporaryReference(
+ const SurfaceId& surface_id) {
+ surface_manager_->AssignTemporaryReference(surface_id, frame_sink_id_);
+}
+
void CompositorFrameSinkSupport::ReferencedSurfacesChanged(
const LocalSurfaceId& local_surface_id,
const std::vector<SurfaceId>* active_referenced_surfaces,
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.h ('k') | components/display_compositor/gpu_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698