| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 cc::mojom::MojoCompositorFrameSinkClientRequest client_request); | 51 cc::mojom::MojoCompositorFrameSinkClientRequest client_request); |
| 52 | 52 |
| 53 // cc::mojom::MojoCompositorFrameSinkClient implementation: | 53 // cc::mojom::MojoCompositorFrameSinkClient implementation: |
| 54 void DidReceiveCompositorFrameAck() override; | 54 void DidReceiveCompositorFrameAck() override; |
| 55 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_args) override; | 55 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_args) override; |
| 56 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 56 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 57 void WillDrawSurface() override; | 57 void WillDrawSurface() override; |
| 58 | 58 |
| 59 // cc::ExternalBeginFrameSourceClient implementation. | 59 // cc::ExternalBeginFrameSourceClient implementation. |
| 60 void OnNeedsBeginFrames(bool needs_begin_frames) override; | 60 void OnNeedsBeginFrames(bool needs_begin_frames) override; |
| 61 void OnDidFinishFrame(const cc::BeginFrameAck& ack) override; |
| 61 | 62 |
| 62 gfx::Size last_submitted_frame_size_; | 63 gfx::Size last_submitted_frame_size_; |
| 63 cc::LocalFrameId local_frame_id_; | 64 cc::LocalFrameId local_frame_id_; |
| 64 cc::SurfaceIdAllocator id_allocator_; | 65 cc::SurfaceIdAllocator id_allocator_; |
| 65 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; | 66 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; |
| 66 cc::mojom::MojoCompositorFrameSinkPtrInfo compositor_frame_sink_info_; | 67 cc::mojom::MojoCompositorFrameSinkPtrInfo compositor_frame_sink_info_; |
| 67 cc::mojom::MojoCompositorFrameSinkClientRequest client_request_; | 68 cc::mojom::MojoCompositorFrameSinkClientRequest client_request_; |
| 68 cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_; | 69 cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_; |
| 69 std::unique_ptr<mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient>> | 70 std::unique_ptr<mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient>> |
| 70 client_binding_; | 71 client_binding_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 93 compositor_frame_sink_client); | 94 compositor_frame_sink_client); |
| 94 | 95 |
| 95 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request_; | 96 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request_; |
| 96 cc::mojom::MojoCompositorFrameSinkClientPtrInfo compositor_frame_sink_client_; | 97 cc::mojom::MojoCompositorFrameSinkClientPtrInfo compositor_frame_sink_client_; |
| 97 | 98 |
| 98 DISALLOW_COPY_AND_ASSIGN(WindowCompositorFrameSinkBinding); | 99 DISALLOW_COPY_AND_ASSIGN(WindowCompositorFrameSinkBinding); |
| 99 }; | 100 }; |
| 100 } // namespace ui | 101 } // namespace ui |
| 101 | 102 |
| 102 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 103 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |