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

Side by Side Diff: services/ui/ws/display_client_compositor_frame_sink.h

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: 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
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 SERVICES_UI_WS_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef SERVICES_UI_WS_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_
6 #define SERVICES_UI_WS_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_ 6 #define SERVICES_UI_WS_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/ipc/frame_sink_manager.mojom.h" 8 #include "cc/ipc/frame_sink_manager.mojom.h"
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
(...skipping 23 matching lines...) Expand all
34 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink, 34 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink,
35 cc::mojom::DisplayPrivateAssociatedPtr display_private, 35 cc::mojom::DisplayPrivateAssociatedPtr display_private,
36 cc::mojom::MojoCompositorFrameSinkClientRequest client_request); 36 cc::mojom::MojoCompositorFrameSinkClientRequest client_request);
37 37
38 ~DisplayClientCompositorFrameSink() override; 38 ~DisplayClientCompositorFrameSink() override;
39 39
40 // cc::CompositorFrameSink implementation: 40 // cc::CompositorFrameSink implementation:
41 bool BindToClient(cc::CompositorFrameSinkClient* client) override; 41 bool BindToClient(cc::CompositorFrameSinkClient* client) override;
42 void DetachFromClient() override; 42 void DetachFromClient() override;
43 void SubmitCompositorFrame(cc::CompositorFrame frame) override; 43 void SubmitCompositorFrame(cc::CompositorFrame frame) override;
44 void BeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack) override;
44 45
45 private: 46 private:
46 // cc::mojom::MojoCompositorFrameSinkClient implementation: 47 // cc::mojom::MojoCompositorFrameSinkClient implementation:
47 void DidReceiveCompositorFrameAck( 48 void DidReceiveCompositorFrameAck(
48 const cc::ReturnedResourceArray& resources) override; 49 const cc::ReturnedResourceArray& resources) override;
49 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_args) override; 50 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_args) override;
50 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 51 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
51 52
52 // cc::ExternalBeginFrameSourceClient implementation: 53 // cc::ExternalBeginFrameSourceClient implementation:
53 void OnNeedsBeginFrames(bool needs_begin_frame) override; 54 void OnNeedsBeginFrames(bool needs_begin_frame) override;
(...skipping 10 matching lines...) Expand all
64 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; 65 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;
65 const cc::FrameSinkId frame_sink_id_; 66 const cc::FrameSinkId frame_sink_id_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(DisplayClientCompositorFrameSink); 68 DISALLOW_COPY_AND_ASSIGN(DisplayClientCompositorFrameSink);
68 }; 69 };
69 70
70 } // namespace ws 71 } // namespace ws
71 } // namespace ui 72 } // namespace ui
72 73
73 #endif // SERVICES_UI_WS_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_ 74 #endif // SERVICES_UI_WS_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698