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

Side by Side Diff: components/display_compositor/gpu_compositor_frame_sink_delegate.h

Issue 2651213004: Revert of Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: 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 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 COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_
7
8 namespace display_compositor {
9
10 class GpuCompositorFrameSinkDelegate {
11 public:
12 // We must avoid destroying a GpuCompositorFrameSink until both the display
13 // compositor host and the client drop their connection to avoid getting into
14 // a state where surfaces references are inconsistent.
15 virtual void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id,
16 bool destroy_compositor_frame_sink) = 0;
17 virtual void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id,
18 bool destroy_compositor_frame_sink) = 0;
19
20 protected:
21 virtual ~GpuCompositorFrameSinkDelegate() {}
22 };
23
24 } // namespace display_compositor
25
26 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698