| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void SetCompositorSuspendedForRecycle(ui::Compositor* compositor, | 83 void SetCompositorSuspendedForRecycle(ui::Compositor* compositor, |
| 84 bool suspended) override; | 84 bool suspended) override; |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 struct PerCompositorData; | 88 struct PerCompositorData; |
| 89 | 89 |
| 90 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); | 90 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); |
| 91 std::unique_ptr<cc::SoftwareOutputDevice> CreateSoftwareOutputDevice( | 91 std::unique_ptr<cc::SoftwareOutputDevice> CreateSoftwareOutputDevice( |
| 92 ui::Compositor* compositor); | 92 ui::Compositor* compositor); |
| 93 void EstablishedGpuChannel(base::WeakPtr<ui::Compositor> compositor, | 93 void EstablishedGpuChannel( |
| 94 bool create_gpu_output_surface, | 94 base::WeakPtr<ui::Compositor> compositor, |
| 95 int num_attempts); | 95 bool create_gpu_output_surface, |
| 96 int num_attempts, |
| 97 scoped_refptr<gpu::GpuChannelHost> established_channel_host); |
| 96 | 98 |
| 97 void OnLostMainThreadSharedContextInsideCallback(); | 99 void OnLostMainThreadSharedContextInsideCallback(); |
| 98 void OnLostMainThreadSharedContext(); | 100 void OnLostMainThreadSharedContext(); |
| 99 | 101 |
| 100 scoped_refptr<cc::VulkanInProcessContextProvider> | 102 scoped_refptr<cc::VulkanInProcessContextProvider> |
| 101 SharedVulkanContextProvider(); | 103 SharedVulkanContextProvider(); |
| 102 | 104 |
| 103 typedef std::map<ui::Compositor*, PerCompositorData*> PerCompositorDataMap; | 105 typedef std::map<ui::Compositor*, PerCompositorData*> PerCompositorDataMap; |
| 104 PerCompositorDataMap per_compositor_data_; | 106 PerCompositorDataMap per_compositor_data_; |
| 105 scoped_refptr<ContextProviderCommandBuffer> shared_main_thread_contexts_; | 107 scoped_refptr<ContextProviderCommandBuffer> shared_main_thread_contexts_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 118 std::unique_ptr<OutputDeviceBacking> software_backing_; | 120 std::unique_ptr<OutputDeviceBacking> software_backing_; |
| 119 #endif | 121 #endif |
| 120 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; | 122 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; |
| 121 | 123 |
| 122 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 124 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } // namespace content | 127 } // namespace content |
| 126 | 128 |
| 127 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 129 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| OLD | NEW |