| 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_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
| 10 #include "gpu/command_buffer/common/command_buffer.h" | 10 #include "gpu/command_buffer/common/command_buffer.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool Initialize() override; | 51 bool Initialize() override; |
| 52 State GetLastState() override; | 52 State GetLastState() override; |
| 53 int32 GetLastToken() override; | 53 int32 GetLastToken() override; |
| 54 void Flush(int32 put_offset) override; | 54 void Flush(int32 put_offset) override; |
| 55 void OrderingBarrier(int32 put_offset) override; | 55 void OrderingBarrier(int32 put_offset) override; |
| 56 void WaitForTokenInRange(int32 start, int32 end) override; | 56 void WaitForTokenInRange(int32 start, int32 end) override; |
| 57 void WaitForGetOffsetInRange(int32 start, int32 end) override; | 57 void WaitForGetOffsetInRange(int32 start, int32 end) override; |
| 58 void SetGetBuffer(int32 transfer_buffer_id) override; | 58 void SetGetBuffer(int32 transfer_buffer_id) override; |
| 59 scoped_refptr<Buffer> CreateTransferBuffer(size_t size, int32* id) override; | 59 scoped_refptr<Buffer> CreateTransferBuffer(size_t size, int32* id) override; |
| 60 void DestroyTransferBuffer(int32 id) override; | 60 void DestroyTransferBuffer(int32 id) override; |
| 61 void GetRouteInformation(int* channel_id, uint32_t* route_id) override; |
| 61 | 62 |
| 62 // CommandBufferServiceBase implementation: | 63 // CommandBufferServiceBase implementation: |
| 63 void SetGetOffset(int32 get_offset) override; | 64 void SetGetOffset(int32 get_offset) override; |
| 64 scoped_refptr<Buffer> GetTransferBuffer(int32 id) override; | 65 scoped_refptr<Buffer> GetTransferBuffer(int32 id) override; |
| 65 void SetToken(int32 token) override; | 66 void SetToken(int32 token) override; |
| 66 void SetParseError(error::Error error) override; | 67 void SetParseError(error::Error error) override; |
| 67 void SetContextLostReason(error::ContextLostReason) override; | 68 void SetContextLostReason(error::ContextLostReason) override; |
| 68 int32 GetPutOffset() override; | 69 int32 GetPutOffset() override; |
| 69 | 70 |
| 70 // Sets a callback that is called whenever the put offset is changed. When | 71 // Sets a callback that is called whenever the put offset is changed. When |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 uint32 generation_; | 108 uint32 generation_; |
| 108 error::Error error_; | 109 error::Error error_; |
| 109 error::ContextLostReason context_lost_reason_; | 110 error::ContextLostReason context_lost_reason_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(CommandBufferService); | 112 DISALLOW_COPY_AND_ASSIGN(CommandBufferService); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace gpu | 115 } // namespace gpu |
| 115 | 116 |
| 116 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ | 117 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ |
| OLD | NEW |