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

Side by Side Diff: services/ui/surfaces/gpu_compositor_frame_sink.h

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 years 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 SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_
6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ 6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void SetNeedsBeginFrame(bool needs_begin_frame) override; 44 void SetNeedsBeginFrame(bool needs_begin_frame) override;
45 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id, 45 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id,
46 cc::CompositorFrame frame) override; 46 cc::CompositorFrame frame) override;
47 void AddSurfaceReferences( 47 void AddSurfaceReferences(
48 const std::vector<cc::SurfaceReference>& references) override; 48 const std::vector<cc::SurfaceReference>& references) override;
49 void RemoveSurfaceReferences( 49 void RemoveSurfaceReferences(
50 const std::vector<cc::SurfaceReference>& references) override; 50 const std::vector<cc::SurfaceReference>& references) override;
51 void Require(const cc::LocalFrameId& local_frame_id, 51 void Require(const cc::LocalFrameId& local_frame_id,
52 const cc::SurfaceSequence& sequence) override; 52 const cc::SurfaceSequence& sequence) override;
53 void Satisfy(const cc::SurfaceSequence& sequence) override; 53 void Satisfy(const cc::SurfaceSequence& sequence) override;
54 void BeginFrameDidNotDraw(const cc::BeginFrameAck& ack) override;
54 55
55 // cc::mojom::MojoCompositorFrameSinkPrivate: 56 // cc::mojom::MojoCompositorFrameSinkPrivate:
56 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; 57 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override;
57 void RemoveChildFrameSink( 58 void RemoveChildFrameSink(
58 const cc::FrameSinkId& child_frame_sink_id) override; 59 const cc::FrameSinkId& child_frame_sink_id) override;
59 60
60 private: 61 private:
61 // cc::CompositorFrameSinkSupportClient implementation: 62 // cc::CompositorFrameSinkSupportClient implementation:
62 void DidReceiveCompositorFrameAck() override; 63 void DidReceiveCompositorFrameAck() override;
63 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 64 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
(...skipping 13 matching lines...) Expand all
77 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 78 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
78 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; 79 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_;
79 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_; 80 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 82 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
82 }; 83 };
83 84
84 } // namespace ui 85 } // namespace ui
85 86
86 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ 87 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/surfaces/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698