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

Unified Diff: services/ui/ws/display_client_compositor_frame_sink.cc

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)
Patch Set: Address review issues Created 3 years, 7 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: services/ui/ws/display_client_compositor_frame_sink.cc
diff --git a/services/ui/ws/display_client_compositor_frame_sink.cc b/services/ui/ws/display_client_compositor_frame_sink.cc
index a7972df07a4d47e9945caa21eeee7fcfd4ad8499..a6284d54677c257dd8a5eb94a130178b883fffd6 100644
--- a/services/ui/ws/display_client_compositor_frame_sink.cc
+++ b/services/ui/ws/display_client_compositor_frame_sink.cc
@@ -65,6 +65,13 @@ void DisplayClientCompositorFrameSink::SubmitCompositorFrame(
last_submitted_frame_size_ = frame_size;
}
+void DisplayClientCompositorFrameSink::EvictFrame() {
+ DCHECK(thread_checker_->CalledOnValidThread());
+ if (!compositor_frame_sink_)
+ return;
+ compositor_frame_sink_->EvictFrame();
+}
+
void DisplayClientCompositorFrameSink::DidReceiveCompositorFrameAck(
const cc::ReturnedResourceArray& resources) {
DCHECK(thread_checker_->CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698