| 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_CONTEXT_3D_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_callback_factory.h" | 8 #include "base/memory/scoped_callback_factory.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/thunk/ppb_context_3d_api.h" | 10 #include "ppapi/thunk/ppb_context_3d_api.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 static PP_Resource Create(PP_Instance instance, | 34 static PP_Resource Create(PP_Instance instance, |
| 35 PP_Config3D_Dev config, | 35 PP_Config3D_Dev config, |
| 36 PP_Resource share_context, | 36 PP_Resource share_context, |
| 37 const int32_t* attrib_list); | 37 const int32_t* attrib_list); |
| 38 static PP_Resource CreateRaw(PP_Instance instance, | 38 static PP_Resource CreateRaw(PP_Instance instance, |
| 39 PP_Config3D_Dev config, | 39 PP_Config3D_Dev config, |
| 40 PP_Resource share_context, | 40 PP_Resource share_context, |
| 41 const int32_t* attrib_list); | 41 const int32_t* attrib_list); |
| 42 | 42 |
| 43 // ResourceObjectBase override. | 43 // Resource override. |
| 44 virtual ::ppapi::thunk::PPB_Context3D_API* AsPPB_Context3D_API(); | 44 virtual ::ppapi::thunk::PPB_Context3D_API* AsPPB_Context3D_API(); |
| 45 | 45 |
| 46 // PPB_Context3D_API implementation. | 46 // PPB_Context3D_API implementation. |
| 47 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) OVERRIDE; | 47 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) OVERRIDE; |
| 48 virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) OVERRIDE; | 48 virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) OVERRIDE; |
| 49 virtual int32_t GetBoundSurfaces(PP_Resource* draw, | 49 virtual int32_t GetBoundSurfaces(PP_Resource* draw, |
| 50 PP_Resource* read) OVERRIDE; | 50 PP_Resource* read) OVERRIDE; |
| 51 virtual PP_Bool InitializeTrusted(int32_t size) OVERRIDE; | 51 virtual PP_Bool InitializeTrusted(int32_t size) OVERRIDE; |
| 52 virtual PP_Bool GetRingBuffer(int* shm_handle, | 52 virtual PP_Bool GetRingBuffer(int* shm_handle, |
| 53 uint32_t* shm_size) OVERRIDE; | 53 uint32_t* shm_size) OVERRIDE; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 base::ScopedCallbackFactory<PPB_Context3D_Impl> callback_factory_; | 116 base::ScopedCallbackFactory<PPB_Context3D_Impl> callback_factory_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(PPB_Context3D_Impl); | 118 DISALLOW_COPY_AND_ASSIGN(PPB_Context3D_Impl); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace ppapi | 121 } // namespace ppapi |
| 122 } // namespace webkit | 122 } // namespace webkit |
| 123 | 123 |
| 124 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ | 124 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ |
| OLD | NEW |