| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void RequestGpuChannelHost(GpuChannelHostCallback callback) override; | 56 void RequestGpuChannelHost(GpuChannelHostCallback callback) override; |
| 57 scoped_refptr<cc::ContextProvider> CreateOffscreenContextProvider( | 57 scoped_refptr<cc::ContextProvider> CreateOffscreenContextProvider( |
| 58 ContextType context_type, | 58 ContextType context_type, |
| 59 gpu::SharedMemoryLimits shared_memory_limits, | 59 gpu::SharedMemoryLimits shared_memory_limits, |
| 60 gpu::gles2::ContextCreationAttribHelper attributes, | 60 gpu::gles2::ContextCreationAttribHelper attributes, |
| 61 bool support_locking, | 61 bool support_locking, |
| 62 bool automatic_flushes, | 62 bool automatic_flushes, |
| 63 cc::ContextProvider* shared_context_provider, | 63 cc::ContextProvider* shared_context_provider, |
| 64 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) override; | 64 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) override; |
| 65 cc::SurfaceManager* GetSurfaceManager() override; | 65 cc::SurfaceManager* GetSurfaceManager() override; |
| 66 uint32_t AllocateSurfaceClientId() override; | 66 cc::FrameSinkId AllocateFrameSinkId() override; |
| 67 cc::SharedBitmapManager* GetSharedBitmapManager() override; | 67 cc::SharedBitmapManager* GetSharedBitmapManager() override; |
| 68 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; | 68 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 ContextProviderFactoryImpl( | 71 ContextProviderFactoryImpl( |
| 72 gpu::GpuChannelEstablishFactory* gpu_channel_factory); | 72 gpu::GpuChannelEstablishFactory* gpu_channel_factory); |
| 73 | 73 |
| 74 scoped_refptr<cc::ContextProvider> CreateContextProviderInternal( | 74 scoped_refptr<cc::ContextProvider> CreateContextProviderInternal( |
| 75 command_buffer_metrics::ContextType context_type, | 75 command_buffer_metrics::ContextType context_type, |
| 76 gpu::SurfaceHandle surface_handle, | 76 gpu::SurfaceHandle surface_handle, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 98 | 98 |
| 99 scoped_refptr<cc::VulkanContextProvider> shared_vulkan_context_provider_; | 99 scoped_refptr<cc::VulkanContextProvider> shared_vulkan_context_provider_; |
| 100 | 100 |
| 101 bool in_handle_pending_requests_; | 101 bool in_handle_pending_requests_; |
| 102 | 102 |
| 103 bool in_shutdown_; | 103 bool in_shutdown_; |
| 104 | 104 |
| 105 base::OneShotTimer establish_gpu_channel_timeout_; | 105 base::OneShotTimer establish_gpu_channel_timeout_; |
| 106 | 106 |
| 107 std::unique_ptr<cc::SurfaceManager> surface_manager_; | 107 std::unique_ptr<cc::SurfaceManager> surface_manager_; |
| 108 int surface_client_id_; | 108 uint32_t next_client_id_; |
| 109 | 109 |
| 110 base::WeakPtrFactory<ContextProviderFactoryImpl> weak_factory_; | 110 base::WeakPtrFactory<ContextProviderFactoryImpl> weak_factory_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(ContextProviderFactoryImpl); | 112 DISALLOW_COPY_AND_ASSIGN(ContextProviderFactoryImpl); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace content | 115 } // namespace content |
| 116 | 116 |
| 117 #endif // CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H
_ | 117 #endif // CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H
_ |
| OLD | NEW |