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 <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 void Flush(int32_t put_offset) override; | 47 void Flush(int32_t put_offset) override; |
48 void OrderingBarrier(int32_t put_offset) override; | 48 void OrderingBarrier(int32_t put_offset) override; |
49 void WaitForTokenInRange(int32_t start, int32_t end) override; | 49 void WaitForTokenInRange(int32_t start, int32_t end) override; |
50 void WaitForGetOffsetInRange(int32_t start, int32_t end) override; | 50 void WaitForGetOffsetInRange(int32_t start, int32_t end) override; |
51 void SetGetBuffer(int32_t transfer_buffer_id) override; | 51 void SetGetBuffer(int32_t transfer_buffer_id) override; |
52 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, | 52 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, |
53 int32_t* id) override; | 53 int32_t* id) override; |
54 void DestroyTransferBuffer(int32_t id) override; | 54 void DestroyTransferBuffer(int32_t id) override; |
55 | 55 |
56 // gpu::GpuControl implementation: | 56 // gpu::GpuControl implementation: |
| 57 void SetGpuControlClient(gpu::GpuControlClient*) override; |
57 gpu::Capabilities GetCapabilities() override; | 58 gpu::Capabilities GetCapabilities() override; |
58 int32_t CreateImage(ClientBuffer buffer, | 59 int32_t CreateImage(ClientBuffer buffer, |
59 size_t width, | 60 size_t width, |
60 size_t height, | 61 size_t height, |
61 unsigned internalformat) override; | 62 unsigned internalformat) override; |
62 void DestroyImage(int32_t id) override; | 63 void DestroyImage(int32_t id) override; |
63 int32_t CreateGpuMemoryBufferImage(size_t width, | 64 int32_t CreateGpuMemoryBufferImage(size_t width, |
64 size_t height, | 65 size_t height, |
65 unsigned internalformat, | 66 unsigned internalformat, |
66 unsigned usage) override; | 67 unsigned usage) override; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 uint64_t flushed_fence_sync_release_; | 110 uint64_t flushed_fence_sync_release_; |
110 uint64_t validated_fence_sync_release_; | 111 uint64_t validated_fence_sync_release_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 113 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace proxy | 116 } // namespace proxy |
116 } // namespace ppapi | 117 } // namespace ppapi |
117 | 118 |
118 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 119 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
OLD | NEW |