| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 5 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
| 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 using GpuChannelEstablishedCallback = | 47 using GpuChannelEstablishedCallback = |
| 48 base::Callback<void(scoped_refptr<GpuChannelHost>)>; | 48 base::Callback<void(scoped_refptr<GpuChannelHost>)>; |
| 49 | 49 |
| 50 class GPU_EXPORT GpuChannelEstablishFactory { | 50 class GPU_EXPORT GpuChannelEstablishFactory { |
| 51 public: | 51 public: |
| 52 virtual ~GpuChannelEstablishFactory() {} | 52 virtual ~GpuChannelEstablishFactory() {} |
| 53 | 53 |
| 54 virtual void EstablishGpuChannel( | 54 virtual void EstablishGpuChannel( |
| 55 const GpuChannelEstablishedCallback& callback) = 0; | 55 const GpuChannelEstablishedCallback& callback) = 0; |
| 56 virtual scoped_refptr<GpuChannelHost> EstablishGpuChannelSync() = 0; | 56 virtual scoped_refptr<GpuChannelHost> EstablishGpuChannelSync() = 0; |
| 57 virtual GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 class GPU_EXPORT GpuChannelHostFactory { | 60 class GPU_EXPORT GpuChannelHostFactory { |
| 60 public: | 61 public: |
| 61 virtual ~GpuChannelHostFactory() {} | 62 virtual ~GpuChannelHostFactory() {} |
| 62 | 63 |
| 63 virtual bool IsMainThread() = 0; | 64 virtual bool IsMainThread() = 0; |
| 64 virtual scoped_refptr<base::SingleThreadTaskRunner> | 65 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 65 GetIOThreadTaskRunner() = 0; | 66 GetIOThreadTaskRunner() = 0; |
| 66 virtual std::unique_ptr<base::SharedMemory> AllocateSharedMemory( | 67 virtual std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 mutable base::Lock context_lock_; | 283 mutable base::Lock context_lock_; |
| 283 std::unique_ptr<IPC::SyncChannel> channel_; | 284 std::unique_ptr<IPC::SyncChannel> channel_; |
| 284 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; | 285 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; |
| 285 | 286 |
| 286 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 287 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 } // namespace gpu | 290 } // namespace gpu |
| 290 | 291 |
| 291 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 292 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
| OLD | NEW |