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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" | 9 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
10 #include "ppapi/shared_impl/resource.h" | 10 #include "ppapi/shared_impl/resource.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 PP_Resource share_context, | 22 PP_Resource share_context, |
23 const int32_t* attrib_list); | 23 const int32_t* attrib_list); |
24 static PP_Resource CreateRaw(PP_Instance instance, | 24 static PP_Resource CreateRaw(PP_Instance instance, |
25 PP_Resource share_context, | 25 PP_Resource share_context, |
26 const int32_t* attrib_list); | 26 const int32_t* attrib_list); |
27 | 27 |
28 // Resource override. | 28 // Resource override. |
29 virtual ::ppapi::thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE; | 29 virtual ::ppapi::thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE; |
30 | 30 |
31 // PPB_Graphics3D_API trusted implementation. | 31 // PPB_Graphics3D_API trusted implementation. |
32 virtual PP_Bool InitCommandBuffer(int32_t size) OVERRIDE; | 32 virtual PP_Bool InitCommandBuffer() OVERRIDE; |
33 virtual PP_Bool GetRingBuffer(int* shm_handle, | 33 virtual PP_Bool SetGetBuffer(int32_t transfer_buffer_id) OVERRIDE; |
34 uint32_t* shm_size) OVERRIDE; | |
35 virtual PP_Graphics3DTrustedState GetState() OVERRIDE; | 34 virtual PP_Graphics3DTrustedState GetState() OVERRIDE; |
36 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; | 35 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; |
37 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; | 36 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; |
38 virtual PP_Bool GetTransferBuffer(int32_t id, | 37 virtual PP_Bool GetTransferBuffer(int32_t id, |
39 int* shm_handle, | 38 int* shm_handle, |
40 uint32_t* shm_size) OVERRIDE; | 39 uint32_t* shm_size) OVERRIDE; |
41 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; | 40 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; |
42 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; | 41 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; |
43 virtual PP_Graphics3DTrustedState FlushSyncFast( | 42 virtual PP_Graphics3DTrustedState FlushSyncFast( |
44 int32_t put_offset, | 43 int32_t put_offset, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; | 87 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; |
89 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; | 88 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); | 90 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); |
92 }; | 91 }; |
93 | 92 |
94 } // namespace ppapi | 93 } // namespace ppapi |
95 } // namespace webkit | 94 } // namespace webkit |
96 | 95 |
97 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 96 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
OLD | NEW |