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: services/ui/ws/display_client_compositor_frame_sink.h

Issue 2801313002: Remove MojoCompositorFrameSink::WillDrawSurface (Closed)
Patch Set: Address Nit 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 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 29 matching lines...) Expand all
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 44
45 private: 45 private:
46 // cc::mojom::MojoCompositorFrameSinkClient implementation: 46 // cc::mojom::MojoCompositorFrameSinkClient implementation:
47 void DidReceiveCompositorFrameAck() override; 47 void DidReceiveCompositorFrameAck() override;
48 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_args) override; 48 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_args) override;
49 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 49 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
50 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
51 const gfx::Rect& damage_rect) override;
52 50
53 // cc::ExternalBeginFrameSourceClient implementation: 51 // cc::ExternalBeginFrameSourceClient implementation:
54 void OnNeedsBeginFrames(bool needs_begin_frame) override; 52 void OnNeedsBeginFrames(bool needs_begin_frame) override;
55 void OnDidFinishFrame(const cc::BeginFrameAck& ack) override; 53 void OnDidFinishFrame(const cc::BeginFrameAck& ack) override;
56 54
57 gfx::Size last_submitted_frame_size_; 55 gfx::Size last_submitted_frame_size_;
58 cc::LocalSurfaceId local_surface_id_; 56 cc::LocalSurfaceId local_surface_id_;
59 cc::LocalSurfaceIdAllocator id_allocator_; 57 cc::LocalSurfaceIdAllocator id_allocator_;
60 cc::mojom::MojoCompositorFrameSinkClientRequest client_request_; 58 cc::mojom::MojoCompositorFrameSinkClientRequest client_request_;
61 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink_; 59 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink_;
62 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> client_binding_; 60 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> client_binding_;
63 cc::mojom::DisplayPrivateAssociatedPtr display_private_; 61 cc::mojom::DisplayPrivateAssociatedPtr display_private_;
64 std::unique_ptr<base::ThreadChecker> thread_checker_; 62 std::unique_ptr<base::ThreadChecker> thread_checker_;
65 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; 63 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;
66 const cc::FrameSinkId frame_sink_id_; 64 const cc::FrameSinkId frame_sink_id_;
67 65
68 DISALLOW_COPY_AND_ASSIGN(DisplayClientCompositorFrameSink); 66 DISALLOW_COPY_AND_ASSIGN(DisplayClientCompositorFrameSink);
69 }; 67 };
70 68
71 } // namespace ws 69 } // namespace ws
72 } // namespace ui 70 } // namespace ui
73 71
74 #endif // SERVICES_UI_WS_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_ 72 #endif // SERVICES_UI_WS_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/client_compositor_frame_sink.cc ('k') | services/ui/ws/display_client_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698