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

Side by Side Diff: services/ui/surfaces/gpu_compositor_frame_sink.cc

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)
Patch Set: Moved CompositorFrameSink implementation details in to CompositorFrameSinkSupport; addressed commen… Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/ui/surfaces/gpu_compositor_frame_sink.h" 5 #include "services/ui/surfaces/gpu_compositor_frame_sink.h"
6 6
7 #include "services/ui/surfaces/display_compositor.h" 7 #include "services/ui/surfaces/display_compositor.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 29 matching lines...) Expand all
40 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { 40 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) {
41 support_.SetNeedsBeginFrame(needs_begin_frame); 41 support_.SetNeedsBeginFrame(needs_begin_frame);
42 } 42 }
43 43
44 void GpuCompositorFrameSink::SubmitCompositorFrame( 44 void GpuCompositorFrameSink::SubmitCompositorFrame(
45 const cc::LocalFrameId& local_frame_id, 45 const cc::LocalFrameId& local_frame_id,
46 cc::CompositorFrame frame) { 46 cc::CompositorFrame frame) {
47 support_.SubmitCompositorFrame(local_frame_id, std::move(frame)); 47 support_.SubmitCompositorFrame(local_frame_id, std::move(frame));
48 } 48 }
49 49
50 void GpuCompositorFrameSink::Require(const cc::LocalFrameId& local_frame_id,
51 const cc::SurfaceSequence& sequence) {
52 support_.Require(local_frame_id, sequence);
53 }
54
55 void GpuCompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) {
56 support_.Satisfy(sequence);
57 }
58
50 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() { 59 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() {
51 client_->DidReceiveCompositorFrameAck(); 60 client_->DidReceiveCompositorFrameAck();
52 } 61 }
53 62
54 void GpuCompositorFrameSink::AddChildFrameSink( 63 void GpuCompositorFrameSink::AddChildFrameSink(
55 const cc::FrameSinkId& child_frame_sink_id) { 64 const cc::FrameSinkId& child_frame_sink_id) {
56 support_.AddChildFrameSink(child_frame_sink_id); 65 support_.AddChildFrameSink(child_frame_sink_id);
57 } 66 }
58 67
59 void GpuCompositorFrameSink::RemoveChildFrameSink( 68 void GpuCompositorFrameSink::RemoveChildFrameSink(
(...skipping 25 matching lines...) Expand all
85 } 94 }
86 95
87 void GpuCompositorFrameSink::OnPrivateConnectionLost() { 96 void GpuCompositorFrameSink::OnPrivateConnectionLost() {
88 private_connection_lost_ = true; 97 private_connection_lost_ = true;
89 // Request destruction of |this| only if both connections are lost. 98 // Request destruction of |this| only if both connections are lost.
90 display_compositor_->OnCompositorFrameSinkPrivateConnectionLost( 99 display_compositor_->OnCompositorFrameSinkPrivateConnectionLost(
91 support_.frame_sink_id(), client_connection_lost_); 100 support_.frame_sink_id(), client_connection_lost_);
92 } 101 }
93 102
94 } // namespace ui 103 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698