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 PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 5 #ifndef PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 ProxyChannel* channel, | 31 ProxyChannel* channel, |
32 const gpu::Capabilities& capabilities, | 32 const gpu::Capabilities& capabilities, |
33 const SerializedHandle& shared_state); | 33 const SerializedHandle& shared_state); |
34 virtual ~PpapiCommandBufferProxy(); | 34 virtual ~PpapiCommandBufferProxy(); |
35 | 35 |
36 // gpu::CommandBuffer implementation: | 36 // gpu::CommandBuffer implementation: |
37 virtual bool Initialize() override; | 37 virtual bool Initialize() override; |
38 virtual State GetLastState() override; | 38 virtual State GetLastState() override; |
39 virtual int32 GetLastToken() override; | 39 virtual int32 GetLastToken() override; |
40 virtual void Flush(int32 put_offset) override; | 40 virtual void Flush(int32 put_offset) override; |
| 41 virtual void OrderingBarrier(int32 put_offset) override; |
41 virtual void WaitForTokenInRange(int32 start, int32 end) override; | 42 virtual void WaitForTokenInRange(int32 start, int32 end) override; |
42 virtual void WaitForGetOffsetInRange(int32 start, int32 end) override; | 43 virtual void WaitForGetOffsetInRange(int32 start, int32 end) override; |
43 virtual void SetGetBuffer(int32 transfer_buffer_id) override; | 44 virtual void SetGetBuffer(int32 transfer_buffer_id) override; |
44 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, | 45 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, |
45 int32* id) override; | 46 int32* id) override; |
46 virtual void DestroyTransferBuffer(int32 id) override; | 47 virtual void DestroyTransferBuffer(int32 id) override; |
47 | 48 |
48 // gpu::GpuControl implementation: | 49 // gpu::GpuControl implementation: |
49 virtual gpu::Capabilities GetCapabilities() override; | 50 virtual gpu::Capabilities GetCapabilities() override; |
50 virtual int32 CreateImage(ClientBuffer buffer, | 51 virtual int32 CreateImage(ClientBuffer buffer, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 86 |
86 base::Closure channel_error_callback_; | 87 base::Closure channel_error_callback_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 89 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace proxy | 92 } // namespace proxy |
92 } // namespace ppapi | 93 } // namespace ppapi |
93 | 94 |
94 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 95 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
OLD | NEW |