| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ | 6 #define CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 friend class base::RefCountedThreadSafe<RendererCompositorFrameSinkProxy>; | 94 friend class base::RefCountedThreadSafe<RendererCompositorFrameSinkProxy>; |
| 95 ~RendererCompositorFrameSinkProxy() {} | 95 ~RendererCompositorFrameSinkProxy() {} |
| 96 RendererCompositorFrameSink* compositor_frame_sink_; | 96 RendererCompositorFrameSink* compositor_frame_sink_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(RendererCompositorFrameSinkProxy); | 98 DISALLOW_COPY_AND_ASSIGN(RendererCompositorFrameSinkProxy); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 void OnMessageReceived(const IPC::Message& message); | 101 void OnMessageReceived(const IPC::Message& message); |
| 102 void OnBeginFrameIPC(const cc::BeginFrameArgs& args); | |
| 103 | 102 |
| 104 // cc::mojom::MojoCompositorFrameSinkClient implementation. | 103 // cc::mojom::MojoCompositorFrameSinkClient implementation. |
| 105 void DidReceiveCompositorFrameAck( | 104 void DidReceiveCompositorFrameAck( |
| 106 const cc::ReturnedResourceArray& resources) override; | 105 const cc::ReturnedResourceArray& resources) override; |
| 107 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 106 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 108 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 107 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 109 | 108 |
| 110 // cc::ExternalBeginFrameSourceClient implementation. | 109 // cc::ExternalBeginFrameSourceClient implementation. |
| 111 void OnNeedsBeginFrames(bool need_begin_frames) override; | 110 void OnNeedsBeginFrames(bool need_begin_frames) override; |
| 112 | 111 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 129 | 128 |
| 130 cc::mojom::MojoCompositorFrameSinkPtr sink_; | 129 cc::mojom::MojoCompositorFrameSinkPtr sink_; |
| 131 cc::mojom::MojoCompositorFrameSinkPtrInfo sink_info_; | 130 cc::mojom::MojoCompositorFrameSinkPtrInfo sink_info_; |
| 132 cc::mojom::MojoCompositorFrameSinkClientRequest sink_client_request_; | 131 cc::mojom::MojoCompositorFrameSinkClientRequest sink_client_request_; |
| 133 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> sink_client_binding_; | 132 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> sink_client_binding_; |
| 134 }; | 133 }; |
| 135 | 134 |
| 136 } // namespace content | 135 } // namespace content |
| 137 | 136 |
| 138 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ | 137 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |