| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 int num_attempts, | 100 int num_attempts, |
| 101 scoped_refptr<gpu::GpuChannelHost> established_channel_host); | 101 scoped_refptr<gpu::GpuChannelHost> established_channel_host); |
| 102 | 102 |
| 103 void OnLostMainThreadSharedContextInsideCallback(); | 103 void OnLostMainThreadSharedContextInsideCallback(); |
| 104 void OnLostMainThreadSharedContext(); | 104 void OnLostMainThreadSharedContext(); |
| 105 | 105 |
| 106 scoped_refptr<cc::VulkanInProcessContextProvider> | 106 scoped_refptr<cc::VulkanInProcessContextProvider> |
| 107 SharedVulkanContextProvider(); | 107 SharedVulkanContextProvider(); |
| 108 | 108 |
| 109 std::unique_ptr<cc::SurfaceManager> surface_manager_; | 109 std::unique_ptr<cc::SurfaceManager> surface_manager_; |
| 110 uint32_t next_surface_client_id_ = 1u; | 110 uint32_t next_sink_id_ = 1u; |
| 111 | 111 |
| 112 #if defined(OS_WIN) | 112 #if defined(OS_WIN) |
| 113 // Used by output surface, stored in PerCompositorData. | 113 // Used by output surface, stored in PerCompositorData. |
| 114 std::unique_ptr<OutputDeviceBacking> software_backing_; | 114 std::unique_ptr<OutputDeviceBacking> software_backing_; |
| 115 #endif | 115 #endif |
| 116 | 116 |
| 117 // Depends on SurfaceManager. | 117 // Depends on SurfaceManager. |
| 118 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> | 118 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> |
| 119 PerCompositorDataMap; | 119 PerCompositorDataMap; |
| 120 PerCompositorDataMap per_compositor_data_; | 120 PerCompositorDataMap per_compositor_data_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 132 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; | 132 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; |
| 133 | 133 |
| 134 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; | 134 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 136 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace content | 139 } // namespace content |
| 140 | 140 |
| 141 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 141 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| OLD | NEW |