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

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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. 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 unified diff | Download patch
« no previous file with comments | « components/exo/surface.cc ('k') | components/viz/frame_sinks/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 34 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
35 cc::mojom::MojoCompositorFrameSinkClientPtr client); 35 cc::mojom::MojoCompositorFrameSinkClientPtr client);
36 36
37 ~GpuCompositorFrameSink() override; 37 ~GpuCompositorFrameSink() override;
38 38
39 // cc::mojom::MojoCompositorFrameSink: 39 // cc::mojom::MojoCompositorFrameSink:
40 void EvictCurrentSurface() override; 40 void EvictCurrentSurface() override;
41 void SetNeedsBeginFrame(bool needs_begin_frame) override; 41 void SetNeedsBeginFrame(bool needs_begin_frame) override;
42 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 42 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
43 cc::CompositorFrame frame) override; 43 cc::CompositorFrame frame) override;
44 void BeginFrameDidNotSwap(const cc::BeginFrameAck& begin_frame_ack) override; 44 void DidNotProduceFrame(const cc::BeginFrameAck& begin_frame_ack) override;
45 45
46 // cc::mojom::MojoCompositorFrameSinkPrivate: 46 // cc::mojom::MojoCompositorFrameSinkPrivate:
47 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override; 47 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override;
48 void RequestCopyOfSurface( 48 void RequestCopyOfSurface(
49 std::unique_ptr<cc::CopyOutputRequest> request) override; 49 std::unique_ptr<cc::CopyOutputRequest> request) override;
50 50
51 private: 51 private:
52 // cc::CompositorFrameSinkSupportClient implementation: 52 // cc::CompositorFrameSinkSupportClient implementation:
53 void DidReceiveCompositorFrameAck( 53 void DidReceiveCompositorFrameAck(
54 const cc::ReturnedResourceArray& resources) override; 54 const cc::ReturnedResourceArray& resources) override;
(...skipping 16 matching lines...) Expand all
71 compositor_frame_sink_binding_; 71 compositor_frame_sink_binding_;
72 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 72 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
73 compositor_frame_sink_private_binding_; 73 compositor_frame_sink_private_binding_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 75 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
76 }; 76 };
77 77
78 } // namespace viz 78 } // namespace viz
79 79
80 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ 80 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « components/exo/surface.cc ('k') | components/viz/frame_sinks/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698