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

Side by Side Diff: cc/surfaces/compositor_frame_sink_delegate.h

Issue 2654693003: Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: Fix vars Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_DELEGATE_H_
6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_DELEGATE_H_
7
8 #include "cc/surfaces/frame_sink_id.h"
9
10 namespace cc {
11
12 class CompositorFrameSinkDelegate {
Fady Samuel 2017/01/24 13:09:43 Call it GpuCompositorFrameSinkDelegate. Also, it w
13 public:
14 // We must avoid destroying a GpuCompositorFrameSink until both the display
15 // compositor host and the client drop their connection to avoid getting into
16 // a state where surfaces references are inconsistent.
17 virtual void OnClientConnectionLost(const FrameSinkId& frame_sink_id,
18 bool destroy_compositor_frame_sink) = 0;
19
20 virtual void OnPrivateConnectionLost(const FrameSinkId& frame_sink_id,
21 bool destroy_compositor_frame_sink) = 0;
22
23 protected:
24 virtual ~CompositorFrameSinkDelegate() {}
25 };
26
27 } // namespace cc
28
29 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698