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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.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: 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 19e66aca38dbd02bdea279c7b2c164a8ce338a97..c572eb5709398dfa7d5756a0499baa90a234c768 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(
@@ -57,6 +55,11 @@ void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() {
client_->DidReceiveCompositorFrameAck();
}
+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