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_PPB_GRAPHICS_3D_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_GRAPHICS_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" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; | 71 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; |
72 | 72 |
73 private: | 73 private: |
74 void OnMsgCreate(PP_Instance instance, | 74 void OnMsgCreate(PP_Instance instance, |
75 const std::vector<int32_t>& attribs, | 75 const std::vector<int32_t>& attribs, |
76 HostResource* result); | 76 HostResource* result); |
77 void OnMsgInitCommandBuffer(const HostResource& context); | 77 void OnMsgInitCommandBuffer(const HostResource& context); |
78 void OnMsgSetGetBuffer(const HostResource& context, | 78 void OnMsgSetGetBuffer(const HostResource& context, |
79 int32 id); | 79 int32 id); |
80 void OnMsgGetState(const HostResource& context, | 80 void OnMsgGetState(const HostResource& context, |
81 gpu::CommandBuffer::State* state); | 81 gpu::CommandBuffer::State* state, |
| 82 bool* success); |
82 void OnMsgFlush(const HostResource& context, | 83 void OnMsgFlush(const HostResource& context, |
83 int32 put_offset, | 84 int32 put_offset, |
84 int32 last_known_get, | 85 int32 last_known_get, |
85 gpu::CommandBuffer::State* state); | 86 gpu::CommandBuffer::State* state, |
| 87 bool* success); |
86 void OnMsgAsyncFlush(const HostResource& context, | 88 void OnMsgAsyncFlush(const HostResource& context, |
87 int32 put_offset); | 89 int32 put_offset); |
88 void OnMsgCreateTransferBuffer(const HostResource& context, | 90 void OnMsgCreateTransferBuffer(const HostResource& context, |
89 int32 size, | 91 int32 size, |
90 int32* id); | 92 int32* id); |
91 void OnMsgDestroyTransferBuffer(const HostResource& context, | 93 void OnMsgDestroyTransferBuffer(const HostResource& context, |
92 int32 id); | 94 int32 id); |
93 void OnMsgGetTransferBuffer(const HostResource& context, | 95 void OnMsgGetTransferBuffer(const HostResource& context, |
94 int32 id, | 96 int32 id, |
95 base::SharedMemoryHandle* transfer_buffer, | 97 base::SharedMemoryHandle* transfer_buffer, |
(...skipping 10 matching lines...) Expand all Loading... |
106 ProxyNonThreadSafeRefCount> callback_factory_; | 108 ProxyNonThreadSafeRefCount> callback_factory_; |
107 | 109 |
108 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 110 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
109 }; | 111 }; |
110 | 112 |
111 } // namespace proxy | 113 } // namespace proxy |
112 } // namespace ppapi | 114 } // namespace ppapi |
113 | 115 |
114 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 116 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
115 | 117 |
OLD | NEW |