| 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 CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 bool create_gpu_output_surface, | 103 bool create_gpu_output_surface, |
| 104 int num_attempts, | 104 int num_attempts, |
| 105 scoped_refptr<gpu::GpuChannelHost> established_channel_host); | 105 scoped_refptr<gpu::GpuChannelHost> established_channel_host); |
| 106 | 106 |
| 107 void OnLostMainThreadSharedContextInsideCallback(); | 107 void OnLostMainThreadSharedContextInsideCallback(); |
| 108 void OnLostMainThreadSharedContext(); | 108 void OnLostMainThreadSharedContext(); |
| 109 | 109 |
| 110 scoped_refptr<cc::VulkanInProcessContextProvider> | 110 scoped_refptr<cc::VulkanInProcessContextProvider> |
| 111 SharedVulkanContextProvider(); | 111 SharedVulkanContextProvider(); |
| 112 | 112 |
| 113 // Manages creation and hierarchy of frame sinks. | |
| 114 std::unique_ptr<viz::FrameSinkManagerHost> frame_sink_manager_host_; | |
| 115 | |
| 116 cc::FrameSinkIdAllocator frame_sink_id_allocator_; | 113 cc::FrameSinkIdAllocator frame_sink_id_allocator_; |
| 117 | 114 |
| 118 #if defined(OS_WIN) | 115 #if defined(OS_WIN) |
| 119 // Used by output surface, stored in PerCompositorData. | 116 // Used by output surface, stored in PerCompositorData. |
| 120 std::unique_ptr<OutputDeviceBacking> software_backing_; | 117 std::unique_ptr<OutputDeviceBacking> software_backing_; |
| 121 #endif | 118 #endif |
| 122 | 119 |
| 123 // Depends on SurfaceManager. | 120 // Depends on SurfaceManager. |
| 124 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> | 121 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> |
| 125 PerCompositorDataMap; | 122 PerCompositorDataMap; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 141 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; | 138 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; |
| 142 | 139 |
| 143 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; | 140 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; |
| 144 | 141 |
| 145 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 142 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
| 146 }; | 143 }; |
| 147 | 144 |
| 148 } // namespace content | 145 } // namespace content |
| 149 | 146 |
| 150 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 147 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| OLD | NEW |