| 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 "base/memory/shared_memory.h" |
| 8 #include "ppapi/c/dev/pp_video_dev.h" | 9 #include "ppapi/c/dev/pp_video_dev.h" |
| 9 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 10 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
| 10 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 11 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
| 11 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 14 #include "ppapi/c/ppb_audio.h" | 15 #include "ppapi/c/ppb_audio.h" |
| 15 #include "ppapi/c/ppb_audio_config.h" | 16 #include "ppapi/c/ppb_audio_config.h" |
| 16 #include "ppapi/c/ppb_file_system.h" | 17 #include "ppapi/c/ppb_file_system.h" |
| 17 #include "ppapi/c/ppb_graphics_3d.h" | 18 #include "ppapi/c/ppb_graphics_3d.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 virtual PP_Resource CreateCompositor(PP_Instance instance) = 0; | 123 virtual PP_Resource CreateCompositor(PP_Instance instance) = 0; |
| 123 virtual PP_Resource CreateFileChooser(PP_Instance instance, | 124 virtual PP_Resource CreateFileChooser(PP_Instance instance, |
| 124 PP_FileChooserMode_Dev mode, | 125 PP_FileChooserMode_Dev mode, |
| 125 const PP_Var& accept_types) = 0; | 126 const PP_Var& accept_types) = 0; |
| 126 virtual PP_Resource CreateGraphics2D(PP_Instance instance, | 127 virtual PP_Resource CreateGraphics2D(PP_Instance instance, |
| 127 const PP_Size* size, | 128 const PP_Size* size, |
| 128 PP_Bool is_always_opaque) = 0; | 129 PP_Bool is_always_opaque) = 0; |
| 129 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 130 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
| 130 PP_Resource share_context, | 131 PP_Resource share_context, |
| 131 const int32_t* attrib_list) = 0; | 132 const int32_t* attrib_list) = 0; |
| 132 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, | 133 virtual PP_Resource CreateGraphics3DRaw( |
| 133 PP_Resource share_context, | 134 PP_Instance instance, |
| 134 const int32_t* attrib_list) = 0; | 135 PP_Resource share_context, |
| 136 const int32_t* attrib_list, |
| 137 base::SharedMemoryHandle* shared_state) = 0; |
| 135 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0; | 138 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0; |
| 136 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; | 139 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; |
| 137 virtual PP_Resource CreateImageData(PP_Instance instance, | 140 virtual PP_Resource CreateImageData(PP_Instance instance, |
| 138 PP_ImageDataFormat format, | 141 PP_ImageDataFormat format, |
| 139 const PP_Size* size, | 142 const PP_Size* size, |
| 140 PP_Bool init_to_zero) = 0; | 143 PP_Bool init_to_zero) = 0; |
| 141 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, | 144 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, |
| 142 PP_ImageDataFormat format, | 145 PP_ImageDataFormat format, |
| 143 const PP_Size* size, | 146 const PP_Size* size, |
| 144 PP_Bool init_to_zero) = 0; | 147 PP_Bool init_to_zero) = 0; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 PP_VideoDecoder_Profile profile) = 0; | 196 PP_VideoDecoder_Profile profile) = 0; |
| 194 #endif // !defined(OS_NACL) | 197 #endif // !defined(OS_NACL) |
| 195 | 198 |
| 196 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 199 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
| 197 }; | 200 }; |
| 198 | 201 |
| 199 } // namespace thunk | 202 } // namespace thunk |
| 200 } // namespace ppapi | 203 } // namespace ppapi |
| 201 | 204 |
| 202 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 205 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |