OLD | NEW |
1 // Copyright (c) 2011 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 #include "ppapi/thunk/thunk.h" | 5 #include "ppapi/thunk/thunk.h" |
6 #include "ppapi/thunk/enter.h" | 6 #include "ppapi/thunk/enter.h" |
7 #include "ppapi/thunk/ppb_graphics_3d_api.h" | 7 #include "ppapi/thunk/ppb_graphics_3d_api.h" |
8 #include "ppapi/thunk/resource_creation_api.h" | 8 #include "ppapi/thunk/resource_creation_api.h" |
9 | 9 |
10 namespace ppapi { | 10 namespace ppapi { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 PP_Graphics3DTrustedState FlushSyncFast(PP_Resource context, | 94 PP_Graphics3DTrustedState FlushSyncFast(PP_Resource context, |
95 int32_t put_offset, | 95 int32_t put_offset, |
96 int32_t last_known_get) { | 96 int32_t last_known_get) { |
97 EnterGraphics3D enter(context, true); | 97 EnterGraphics3D enter(context, true); |
98 if (enter.failed()) | 98 if (enter.failed()) |
99 return GetErrorState(); | 99 return GetErrorState(); |
100 return enter.object()->FlushSyncFast(put_offset, last_known_get); | 100 return enter.object()->FlushSyncFast(put_offset, last_known_get); |
101 } | 101 } |
102 | 102 |
103 const PPB_Graphics3DTrusted g_ppb_graphics_3d_trusted_thunk = { | 103 const PPB_Graphics3DTrusted_Dev g_ppb_graphics_3d_trusted_thunk = { |
104 &CreateRaw, | 104 &CreateRaw, |
105 &InitCommandBuffer, | 105 &InitCommandBuffer, |
106 &GetRingBuffer, | 106 &GetRingBuffer, |
107 &GetState, | 107 &GetState, |
108 &CreateTransferBuffer, | 108 &CreateTransferBuffer, |
109 &DestroyTransferBuffer, | 109 &DestroyTransferBuffer, |
110 &GetTransferBuffer, | 110 &GetTransferBuffer, |
111 &Flush, | 111 &Flush, |
112 &FlushSync, | 112 &FlushSync, |
113 &FlushSyncFast, | 113 &FlushSyncFast, |
114 }; | 114 }; |
115 | 115 |
116 } // namespace | 116 } // namespace |
117 | 117 |
118 const PPB_Graphics3DTrusted* GetPPB_Graphics3DTrusted_Thunk() { | 118 const PPB_Graphics3DTrusted_Dev* GetPPB_Graphics3DTrusted_Thunk() { |
119 return &g_ppb_graphics_3d_trusted_thunk; | 119 return &g_ppb_graphics_3d_trusted_thunk; |
120 } | 120 } |
121 | 121 |
122 } // namespace thunk | 122 } // namespace thunk |
123 } // namespace ppapi | 123 } // namespace ppapi |
124 | 124 |
OLD | NEW |