| 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_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 virtual State GetLastState() OVERRIDE; | 95 virtual State GetLastState() OVERRIDE; |
| 96 virtual int32 GetLastToken() OVERRIDE; | 96 virtual int32 GetLastToken() OVERRIDE; |
| 97 virtual void Flush(int32 put_offset) OVERRIDE; | 97 virtual void Flush(int32 put_offset) OVERRIDE; |
| 98 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE; | 98 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE; |
| 99 virtual void SetGetBuffer(int32 shm_id) OVERRIDE; | 99 virtual void SetGetBuffer(int32 shm_id) OVERRIDE; |
| 100 virtual void SetGetOffset(int32 get_offset) OVERRIDE; | 100 virtual void SetGetOffset(int32 get_offset) OVERRIDE; |
| 101 virtual gpu::Buffer CreateTransferBuffer(size_t size, int32* id) OVERRIDE; | 101 virtual gpu::Buffer CreateTransferBuffer(size_t size, int32* id) OVERRIDE; |
| 102 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; | 102 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; |
| 103 virtual gpu::Buffer GetTransferBuffer(int32 id) OVERRIDE; | 103 virtual gpu::Buffer GetTransferBuffer(int32 id) OVERRIDE; |
| 104 virtual void SetToken(int32 token) OVERRIDE; | 104 virtual void SetToken(int32 token) OVERRIDE; |
| 105 virtual void SetSerial(uint32 token) OVERRIDE; |
| 105 virtual void SetParseError(gpu::error::Error error) OVERRIDE; | 106 virtual void SetParseError(gpu::error::Error error) OVERRIDE; |
| 106 virtual void SetContextLostReason( | 107 virtual void SetContextLostReason( |
| 107 gpu::error::ContextLostReason reason) OVERRIDE; | 108 gpu::error::ContextLostReason reason) OVERRIDE; |
| 108 virtual gpu::error::Error GetLastError() OVERRIDE; | 109 virtual gpu::error::Error GetLastError() OVERRIDE; |
| 109 | 110 |
| 110 // GpuControl implementation: | 111 // GpuControl implementation: |
| 111 virtual gpu::Capabilities GetCapabilities() OVERRIDE; | 112 virtual gpu::Capabilities GetCapabilities() OVERRIDE; |
| 112 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( | 113 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( |
| 113 size_t width, | 114 size_t width, |
| 114 size_t height, | 115 size_t height, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 222 |
| 222 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 223 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 223 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 224 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 224 | 225 |
| 225 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 226 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 226 }; | 227 }; |
| 227 | 228 |
| 228 } // namespace gpu | 229 } // namespace gpu |
| 229 | 230 |
| 230 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 231 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |