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

Side by Side Diff: components/viz/frame_sinks/gpu_compositor_frame_sink_delegate.h

Issue 2795823003: Create //components/viz/frame_sinks and move code. (Closed)
Patch Set: Fix DEPS. Created 3 years, 8 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_ 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_ 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_
7 7
8 namespace cc { 8 namespace cc {
9 class FrameSinkId; 9 class FrameSinkId;
10 } 10 }
11 11
12 namespace display_compositor { 12 namespace viz {
13 13
14 class GpuCompositorFrameSinkDelegate { 14 class GpuCompositorFrameSinkDelegate {
15 public: 15 public:
16 // We must avoid destroying a GpuCompositorFrameSink until both the display 16 // We must avoid destroying a GpuCompositorFrameSink until both the display
17 // compositor host and the client drop their connection to avoid getting into 17 // compositor host and the client drop their connection to avoid getting into
18 // a state where surfaces references are inconsistent. 18 // a state where surfaces references are inconsistent.
19 virtual void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id, 19 virtual void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id,
20 bool destroy_compositor_frame_sink) = 0; 20 bool destroy_compositor_frame_sink) = 0;
21 virtual void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id, 21 virtual void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id,
22 bool destroy_compositor_frame_sink) = 0; 22 bool destroy_compositor_frame_sink) = 0;
23 23
24 protected: 24 protected:
25 virtual ~GpuCompositorFrameSinkDelegate() {} 25 virtual ~GpuCompositorFrameSinkDelegate() {}
26 }; 26 };
27 27
28 } // namespace display_compositor 28 } // namespace viz
29 29
30 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_ 30 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/viz/frame_sinks/gpu_compositor_frame_sink.cc ('k') | components/viz/frame_sinks/gpu_root_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698