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 bool create_gpu_output_surface, | 100 bool create_gpu_output_surface, |
101 int num_attempts, | 101 int num_attempts, |
102 scoped_refptr<gpu::GpuChannelHost> established_channel_host); | 102 scoped_refptr<gpu::GpuChannelHost> established_channel_host); |
103 | 103 |
104 void OnLostMainThreadSharedContextInsideCallback(); | 104 void OnLostMainThreadSharedContextInsideCallback(); |
105 void OnLostMainThreadSharedContext(); | 105 void OnLostMainThreadSharedContext(); |
106 | 106 |
107 scoped_refptr<cc::VulkanInProcessContextProvider> | 107 scoped_refptr<cc::VulkanInProcessContextProvider> |
108 SharedVulkanContextProvider(); | 108 SharedVulkanContextProvider(); |
109 | 109 |
| 110 cc::BufferToTextureTargetMap GetBufferToTextureTargetMap(); |
| 111 |
110 cc::FrameSinkIdAllocator frame_sink_id_allocator_; | 112 cc::FrameSinkIdAllocator frame_sink_id_allocator_; |
111 | 113 |
112 #if defined(OS_WIN) | 114 #if defined(OS_WIN) |
113 // Used by output surface, stored in PerCompositorData. | 115 // Used by output surface, stored in PerCompositorData. |
114 std::unique_ptr<OutputDeviceBacking> software_backing_; | 116 std::unique_ptr<OutputDeviceBacking> software_backing_; |
115 #endif | 117 #endif |
116 | 118 |
117 // Depends on SurfaceManager. | 119 // Depends on SurfaceManager. |
118 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> | 120 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> |
119 PerCompositorDataMap; | 121 PerCompositorDataMap; |
(...skipping 15 matching lines...) Expand all Loading... |
135 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; | 137 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; |
136 | 138 |
137 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; | 139 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; |
138 | 140 |
139 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 141 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
140 }; | 142 }; |
141 | 143 |
142 } // namespace content | 144 } // namespace content |
143 | 145 |
144 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 146 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
OLD | NEW |