| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 ui::Compositor* compositor); | 90 ui::Compositor* compositor); |
| 91 void EstablishedGpuChannel( | 91 void EstablishedGpuChannel( |
| 92 base::WeakPtr<ui::Compositor> compositor, | 92 base::WeakPtr<ui::Compositor> compositor, |
| 93 bool create_gpu_output_surface, | 93 bool create_gpu_output_surface, |
| 94 int num_attempts, | 94 int num_attempts, |
| 95 scoped_refptr<gpu::GpuChannelHost> established_channel_host); | 95 scoped_refptr<gpu::GpuChannelHost> established_channel_host); |
| 96 | 96 |
| 97 void OnLostMainThreadSharedContextInsideCallback(); | 97 void OnLostMainThreadSharedContextInsideCallback(); |
| 98 void OnLostMainThreadSharedContext(); | 98 void OnLostMainThreadSharedContext(); |
| 99 | 99 |
| 100 void UpdateVSyncParametersFromGpu(base::WeakPtr<ui::Compositor> compositor, |
| 101 base::TimeTicks timebase, |
| 102 base::TimeDelta interval); |
| 103 |
| 100 scoped_refptr<cc::VulkanInProcessContextProvider> | 104 scoped_refptr<cc::VulkanInProcessContextProvider> |
| 101 SharedVulkanContextProvider(); | 105 SharedVulkanContextProvider(); |
| 102 | 106 |
| 103 std::unique_ptr<cc::SurfaceManager> surface_manager_; | 107 std::unique_ptr<cc::SurfaceManager> surface_manager_; |
| 104 uint32_t next_sink_id_ = 1u; | 108 uint32_t next_sink_id_ = 1u; |
| 105 | 109 |
| 106 #if defined(OS_WIN) | 110 #if defined(OS_WIN) |
| 107 // Used by output surface, stored in PerCompositorData. | 111 // Used by output surface, stored in PerCompositorData. |
| 108 std::unique_ptr<OutputDeviceBacking> software_backing_; | 112 std::unique_ptr<OutputDeviceBacking> software_backing_; |
| 109 #endif | 113 #endif |
| (...skipping 16 matching lines...) Expand all Loading... |
| 126 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; | 130 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; |
| 127 | 131 |
| 128 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; | 132 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; |
| 129 | 133 |
| 130 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 134 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
| 131 }; | 135 }; |
| 132 | 136 |
| 133 } // namespace content | 137 } // namespace content |
| 134 | 138 |
| 135 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 139 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| OLD | NEW |