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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.cc

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Cleanup. 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: components/display_compositor/gpu_compositor_frame_sink.cc
diff --git a/components/display_compositor/gpu_compositor_frame_sink.cc b/components/display_compositor/gpu_compositor_frame_sink.cc
index 58b833dfe56cf8cc01f8c306715ed15634c85caf..a73847899943440be9757c94e1eacb500074680f 100644
--- a/components/display_compositor/gpu_compositor_frame_sink.cc
+++ b/components/display_compositor/gpu_compositor_frame_sink.cc
@@ -4,8 +4,6 @@
#include "components/display_compositor/gpu_compositor_frame_sink.h"
-#include "cc/surfaces/surface_reference.h"
-
namespace display_compositor {
GpuCompositorFrameSink::GpuCompositorFrameSink(
@@ -76,6 +74,11 @@ void GpuCompositorFrameSink::RemoveChildFrameSink(
support_->RemoveChildFrameSink(child_frame_sink_id);
}
+void GpuCompositorFrameSink::ClaimTemporaryReference(
+ const cc::SurfaceId& surface_id) {
+ support_->ClaimTemporaryReference(surface_id);
+}
+
void GpuCompositorFrameSink::RequestCopyOfSurface(
std::unique_ptr<cc::CopyOutputRequest> request) {
support_->RequestCopyOfSurface(std::move(request));

Powered by Google App Engine
This is Rietveld 408576698