| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
| 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // GpuControl implementation: | 109 // GpuControl implementation: |
| 110 // NOTE: The GpuControlClient will be called on the client thread. | 110 // NOTE: The GpuControlClient will be called on the client thread. |
| 111 void SetGpuControlClient(GpuControlClient*) override; | 111 void SetGpuControlClient(GpuControlClient*) override; |
| 112 gpu::Capabilities GetCapabilities() override; | 112 gpu::Capabilities GetCapabilities() override; |
| 113 int32_t CreateImage(ClientBuffer buffer, | 113 int32_t CreateImage(ClientBuffer buffer, |
| 114 size_t width, | 114 size_t width, |
| 115 size_t height, | 115 size_t height, |
| 116 unsigned internalformat) override; | 116 unsigned internalformat) override; |
| 117 void DestroyImage(int32_t id) override; | 117 void DestroyImage(int32_t id) override; |
| 118 int32_t CreateGpuMemoryBufferImage(size_t width, | |
| 119 size_t height, | |
| 120 unsigned internalformat, | |
| 121 unsigned usage) override; | |
| 122 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; | 118 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; |
| 123 void SetLock(base::Lock*) override; | 119 void SetLock(base::Lock*) override; |
| 124 void EnsureWorkVisible() override; | 120 void EnsureWorkVisible() override; |
| 125 CommandBufferNamespace GetNamespaceID() const override; | 121 CommandBufferNamespace GetNamespaceID() const override; |
| 126 CommandBufferId GetCommandBufferID() const override; | 122 CommandBufferId GetCommandBufferID() const override; |
| 127 int32_t GetExtraCommandBufferData() const override; | 123 int32_t GetExtraCommandBufferData() const override; |
| 128 uint64_t GenerateFenceSyncRelease() override; | 124 uint64_t GenerateFenceSyncRelease() override; |
| 129 bool IsFenceSyncRelease(uint64_t release) override; | 125 bool IsFenceSyncRelease(uint64_t release) override; |
| 130 bool IsFenceSyncFlushed(uint64_t release) override; | 126 bool IsFenceSyncFlushed(uint64_t release) override; |
| 131 bool IsFenceSyncFlushReceived(uint64_t release) override; | 127 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 329 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 334 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; | 330 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; |
| 335 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 331 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 336 | 332 |
| 337 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 333 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 338 }; | 334 }; |
| 339 | 335 |
| 340 } // namespace gpu | 336 } // namespace gpu |
| 341 | 337 |
| 342 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 338 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |