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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int32_t routing_id, | 54 int32_t routing_id, |
55 uint32_t compositor_frame_sink_id, | 55 uint32_t compositor_frame_sink_id, |
56 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, | 56 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, |
57 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, | 57 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, |
58 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); | 58 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); |
59 ~RendererCompositorFrameSink() override; | 59 ~RendererCompositorFrameSink() override; |
60 | 60 |
61 // cc::CompositorFrameSink implementation. | 61 // cc::CompositorFrameSink implementation. |
62 bool BindToClient(cc::CompositorFrameSinkClient* client) override; | 62 bool BindToClient(cc::CompositorFrameSinkClient* client) override; |
63 void DetachFromClient() override; | 63 void DetachFromClient() override; |
64 void SwapBuffers(cc::CompositorFrame frame) override; | 64 void SubmitCompositorFrame(cc::CompositorFrame frame) override; |
65 | 65 |
66 protected: | 66 protected: |
67 uint32_t compositor_frame_sink_id_; | 67 uint32_t compositor_frame_sink_id_; |
68 | 68 |
69 private: | 69 private: |
70 class RendererCompositorFrameSinkProxy | 70 class RendererCompositorFrameSinkProxy |
71 : public base::RefCountedThreadSafe<RendererCompositorFrameSinkProxy> { | 71 : public base::RefCountedThreadSafe<RendererCompositorFrameSinkProxy> { |
72 public: | 72 public: |
73 explicit RendererCompositorFrameSinkProxy( | 73 explicit RendererCompositorFrameSinkProxy( |
74 RendererCompositorFrameSink* compositor_frame_sink) | 74 RendererCompositorFrameSink* compositor_frame_sink) |
(...skipping 25 matching lines...) Expand all Loading... |
100 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_; | 100 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_; |
101 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 101 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
102 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 102 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
103 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; | 103 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; |
104 int routing_id_; | 104 int routing_id_; |
105 }; | 105 }; |
106 | 106 |
107 } // namespace content | 107 } // namespace content |
108 | 108 |
109 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ | 109 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |