| 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_THUNK_RESOURCE_CREATION_API_H_ | 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "ppapi/shared_impl/ppb_image_data_shared.h" | 29 #include "ppapi/shared_impl/ppb_image_data_shared.h" |
| 30 | 30 |
| 31 struct PP_Flash_Menu; | 31 struct PP_Flash_Menu; |
| 32 struct PP_BrowserFont_Trusted_Description; | 32 struct PP_BrowserFont_Trusted_Description; |
| 33 struct PP_NetAddress_IPv4; | 33 struct PP_NetAddress_IPv4; |
| 34 struct PP_NetAddress_IPv6; | 34 struct PP_NetAddress_IPv6; |
| 35 struct PP_NetAddress_Private; | 35 struct PP_NetAddress_Private; |
| 36 struct PP_Size; | 36 struct PP_Size; |
| 37 | 37 |
| 38 namespace gpu { | 38 namespace gpu { |
| 39 namespace gles2 { | |
| 40 struct ContextCreationAttribHelper; | |
| 41 } | |
| 42 struct Capabilities; | 39 struct Capabilities; |
| 43 } | 40 } |
| 44 | 41 |
| 45 namespace ppapi { | 42 namespace ppapi { |
| 46 | 43 |
| 47 struct FileRefCreateInfo; | 44 struct FileRefCreateInfo; |
| 48 struct URLRequestInfoData; | 45 struct URLRequestInfoData; |
| 49 struct URLResponseInfoData; | 46 struct URLResponseInfoData; |
| 50 | 47 |
| 51 namespace thunk { | 48 namespace thunk { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const PP_Var& accept_types) = 0; | 135 const PP_Var& accept_types) = 0; |
| 139 virtual PP_Resource CreateGraphics2D(PP_Instance instance, | 136 virtual PP_Resource CreateGraphics2D(PP_Instance instance, |
| 140 const PP_Size* size, | 137 const PP_Size* size, |
| 141 PP_Bool is_always_opaque) = 0; | 138 PP_Bool is_always_opaque) = 0; |
| 142 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 139 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
| 143 PP_Resource share_context, | 140 PP_Resource share_context, |
| 144 const int32_t* attrib_list) = 0; | 141 const int32_t* attrib_list) = 0; |
| 145 virtual PP_Resource CreateGraphics3DRaw( | 142 virtual PP_Resource CreateGraphics3DRaw( |
| 146 PP_Instance instance, | 143 PP_Instance instance, |
| 147 PP_Resource share_context, | 144 PP_Resource share_context, |
| 148 const gpu::gles2::ContextCreationAttribHelper& attrib_helper, | 145 const int32_t* attrib_list, |
| 149 gpu::Capabilities* capabilities, | 146 gpu::Capabilities* capabilities, |
| 150 base::SharedMemoryHandle* shared_state, | 147 base::SharedMemoryHandle* shared_state, |
| 151 gpu::CommandBufferId* command_buffer_id) = 0; | 148 gpu::CommandBufferId* command_buffer_id) = 0; |
| 152 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0; | 149 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0; |
| 153 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; | 150 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; |
| 154 virtual PP_Resource CreateImageData(PP_Instance instance, | 151 virtual PP_Resource CreateImageData(PP_Instance instance, |
| 155 PP_ImageDataFormat format, | 152 PP_ImageDataFormat format, |
| 156 const PP_Size* size, | 153 const PP_Size* size, |
| 157 PP_Bool init_to_zero) = 0; | 154 PP_Bool init_to_zero) = 0; |
| 158 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, | 155 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 PP_VideoDecoder_Profile profile) = 0; | 206 PP_VideoDecoder_Profile profile) = 0; |
| 210 #endif // !defined(OS_NACL) | 207 #endif // !defined(OS_NACL) |
| 211 | 208 |
| 212 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 209 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
| 213 }; | 210 }; |
| 214 | 211 |
| 215 } // namespace thunk | 212 } // namespace thunk |
| 216 } // namespace ppapi | 213 } // namespace ppapi |
| 217 | 214 |
| 218 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 215 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |