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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class RendererCompositorFrameSink | 42 class RendererCompositorFrameSink |
43 : NON_EXPORTED_BASE(public cc::CompositorFrameSink), | 43 : NON_EXPORTED_BASE(public cc::CompositorFrameSink), |
44 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 44 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
45 public: | 45 public: |
46 RendererCompositorFrameSink( | 46 RendererCompositorFrameSink( |
47 int32_t routing_id, | 47 int32_t routing_id, |
48 uint32_t compositor_frame_sink_id, | 48 uint32_t compositor_frame_sink_id, |
49 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, | 49 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, |
50 scoped_refptr<cc::ContextProvider> context_provider, | 50 scoped_refptr<cc::ContextProvider> context_provider, |
51 scoped_refptr<cc::ContextProvider> worker_context_provider, | 51 scoped_refptr<cc::ContextProvider> worker_context_provider, |
| 52 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 53 cc::SharedBitmapManager* shared_bitmap_manager, |
52 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); | 54 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); |
53 RendererCompositorFrameSink( | 55 RendererCompositorFrameSink( |
54 int32_t routing_id, | 56 int32_t routing_id, |
55 uint32_t compositor_frame_sink_id, | 57 uint32_t compositor_frame_sink_id, |
56 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, | 58 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, |
57 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, | 59 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, |
58 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); | 60 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); |
59 ~RendererCompositorFrameSink() override; | 61 ~RendererCompositorFrameSink() override; |
60 | 62 |
61 // cc::CompositorFrameSink implementation. | 63 // cc::CompositorFrameSink implementation. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_; | 102 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_; |
101 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 103 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
102 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 104 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
103 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; | 105 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; |
104 int routing_id_; | 106 int routing_id_; |
105 }; | 107 }; |
106 | 108 |
107 } // namespace content | 109 } // namespace content |
108 | 110 |
109 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ | 111 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |