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

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

Issue 2755463002: [cc] Fix CompositorFrameSinkSupport BeginFrameAck interface. (Closed)
Patch Set: sync Created 3 years, 9 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 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_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 36 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
37 cc::mojom::MojoCompositorFrameSinkClientPtr client); 37 cc::mojom::MojoCompositorFrameSinkClientPtr client);
38 38
39 ~GpuCompositorFrameSink() override; 39 ~GpuCompositorFrameSink() override;
40 40
41 // cc::mojom::MojoCompositorFrameSink: 41 // cc::mojom::MojoCompositorFrameSink:
42 void EvictFrame() override; 42 void EvictFrame() override;
43 void SetNeedsBeginFrame(bool needs_begin_frame) override; 43 void SetNeedsBeginFrame(bool needs_begin_frame) override;
44 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 44 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
45 cc::CompositorFrame frame) override; 45 cc::CompositorFrame frame) override;
46 void BeginFrameDidNotSwap(const cc::BeginFrameAck& begin_frame_ack) override;
46 47
47 // cc::mojom::MojoCompositorFrameSinkPrivate: 48 // cc::mojom::MojoCompositorFrameSinkPrivate:
48 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override; 49 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override;
49 void RequestCopyOfSurface( 50 void RequestCopyOfSurface(
50 std::unique_ptr<cc::CopyOutputRequest> request) override; 51 std::unique_ptr<cc::CopyOutputRequest> request) override;
51 52
52 private: 53 private:
53 // cc::CompositorFrameSinkSupportClient implementation: 54 // cc::CompositorFrameSinkSupportClient implementation:
54 void DidReceiveCompositorFrameAck() override; 55 void DidReceiveCompositorFrameAck() override;
55 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 56 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
(...skipping 15 matching lines...) Expand all
71 compositor_frame_sink_binding_; 72 compositor_frame_sink_binding_;
72 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 73 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
73 compositor_frame_sink_private_binding_; 74 compositor_frame_sink_private_binding_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 76 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
76 }; 77 };
77 78
78 } // namespace display_compositor 79 } // namespace display_compositor
79 80
80 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 81 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698