OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PPB_CONTEXT_3D_PROXY_H_ | 5 #ifndef PPAPI_PPB_CONTEXT_3D_PROXY_H_ |
6 #define PPAPI_PPB_CONTEXT_3D_PROXY_H_ | 6 #define PPAPI_PPB_CONTEXT_3D_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
11 #include "gpu/command_buffer/common/command_buffer.h" | 11 #include "gpu/command_buffer/common/command_buffer.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 const HostResource& draw, | 93 const HostResource& draw, |
94 const HostResource& read, | 94 const HostResource& read, |
95 int32_t* result); | 95 int32_t* result); |
96 void OnMsgInitialize(const HostResource& context, | 96 void OnMsgInitialize(const HostResource& context, |
97 int32 size, | 97 int32 size, |
98 base::SharedMemoryHandle* ring_buffer); | 98 base::SharedMemoryHandle* ring_buffer); |
99 void OnMsgGetState(const HostResource& context, | 99 void OnMsgGetState(const HostResource& context, |
100 gpu::CommandBuffer::State* state); | 100 gpu::CommandBuffer::State* state); |
101 void OnMsgFlush(const HostResource& context, | 101 void OnMsgFlush(const HostResource& context, |
102 int32 put_offset, | 102 int32 put_offset, |
| 103 int32 last_known_get, |
103 gpu::CommandBuffer::State* state); | 104 gpu::CommandBuffer::State* state); |
104 void OnMsgAsyncFlush(const HostResource& context, | 105 void OnMsgAsyncFlush(const HostResource& context, |
105 int32 put_offset); | 106 int32 put_offset); |
106 void OnMsgCreateTransferBuffer(const HostResource& context, | 107 void OnMsgCreateTransferBuffer(const HostResource& context, |
107 int32 size, | 108 int32 size, |
108 int32* id); | 109 int32* id); |
109 void OnMsgDestroyTransferBuffer(const HostResource& context, | 110 void OnMsgDestroyTransferBuffer(const HostResource& context, |
110 int32 id); | 111 int32 id); |
111 void OnMsgGetTransferBuffer(const HostResource& context, | 112 void OnMsgGetTransferBuffer(const HostResource& context, |
112 int32 id, | 113 int32 id, |
113 base::SharedMemoryHandle* transfer_buffer, | 114 base::SharedMemoryHandle* transfer_buffer, |
114 uint32* size); | 115 uint32* size); |
115 }; | 116 }; |
116 | 117 |
117 } // namespace proxy | 118 } // namespace proxy |
118 } // namespace pp | 119 } // namespace pp |
119 | 120 |
120 #endif // PPAPI_PPB_CONTEXT_3D_PROXY_H_ | 121 #endif // PPAPI_PPB_CONTEXT_3D_PROXY_H_ |
OLD | NEW |