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

Unified Diff: cc/surfaces/compositor_frame_sink_support.cc

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase + fixes. 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 6829117f79e72641657f8540d9917a941907e1c3..6372bacf11b1c6964b138c93b387152ee39aba21 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"
@@ -151,6 +150,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,

Powered by Google App Engine
This is Rietveld 408576698