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

Unified Diff: services/ui/public/cpp/window_compositor_frame_sink.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/public/cpp/window_compositor_frame_sink.h
diff --git a/services/ui/public/cpp/window_compositor_frame_sink.h b/services/ui/public/cpp/window_compositor_frame_sink.h
index 2bb98687125879acab6f7bc721457e96b6af9651..e8fd7c5b89bfc2e9575c083d4583b20f265c6b88 100644
--- a/services/ui/public/cpp/window_compositor_frame_sink.h
+++ b/services/ui/public/cpp/window_compositor_frame_sink.h
@@ -23,7 +23,8 @@ class WindowCompositorFrameSinkBinding;
class WindowCompositorFrameSink
: public cc::CompositorFrameSink,
- public cc::mojom::MojoCompositorFrameSinkClient {
+ public cc::mojom::MojoCompositorFrameSinkClient,
+ public cc::ExternalBeginFrameSourceClient {
public:
// static
static std::unique_ptr<WindowCompositorFrameSink> Create(
@@ -51,9 +52,13 @@ class WindowCompositorFrameSink
// cc::mojom::MojoCompositorFrameSinkClient implementation:
void DidReceiveCompositorFrameAck() override;
+ void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_args) override;
void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
- std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
+ // cc::ExternalBeginFrameSourceClient implementation.
+ void OnNeedsBeginFrames(bool needs_begin_frames) override;
+
+ std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;
mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSink>
compositor_frame_sink_info_;
mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSinkClient>
« no previous file with comments | « services/ui/public/cpp/mojo_gpu_memory_buffer_manager.cc ('k') | services/ui/public/cpp/window_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698