Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(847)

Side by Side Diff: ppapi/thunk/resource_creation_api.h

Issue 16605006: Clean up Pepper ImageData resource class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NOTREACHED if creating PlatformImageData in NaCl. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_image_data_thunk.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ppapi/c/dev/ppb_file_chooser_dev.h" 8 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
9 #include "ppapi/c/pp_bool.h" 9 #include "ppapi/c/pp_bool.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/ppb_audio.h" 12 #include "ppapi/c/ppb_audio.h"
13 #include "ppapi/c/ppb_audio_config.h" 13 #include "ppapi/c/ppb_audio_config.h"
14 #include "ppapi/c/ppb_file_system.h" 14 #include "ppapi/c/ppb_file_system.h"
15 #include "ppapi/c/ppb_graphics_3d.h" 15 #include "ppapi/c/ppb_graphics_3d.h"
16 #include "ppapi/c/ppb_image_data.h" 16 #include "ppapi/c/ppb_image_data.h"
17 #include "ppapi/c/ppb_input_event.h" 17 #include "ppapi/c/ppb_input_event.h"
18 #include "ppapi/c/ppb_websocket.h" 18 #include "ppapi/c/ppb_websocket.h"
19 #include "ppapi/c/dev/pp_video_dev.h" 19 #include "ppapi/c/dev/pp_video_dev.h"
20 #include "ppapi/c/dev/ppb_truetype_font_dev.h" 20 #include "ppapi/c/dev/ppb_truetype_font_dev.h"
21 #include "ppapi/c/private/pp_private_font_charset.h" 21 #include "ppapi/c/private/pp_private_font_charset.h"
22 #include "ppapi/c/private/ppb_network_monitor_private.h" 22 #include "ppapi/c/private/ppb_network_monitor_private.h"
23 #include "ppapi/shared_impl/api_id.h" 23 #include "ppapi/shared_impl/api_id.h"
24 #include "ppapi/shared_impl/ppb_image_data_shared.h"
24 25
25 struct PP_Flash_Menu; 26 struct PP_Flash_Menu;
26 struct PP_FontDescription_Dev; 27 struct PP_FontDescription_Dev;
27 struct PP_BrowserFont_Trusted_Description; 28 struct PP_BrowserFont_Trusted_Description;
28 struct PP_NetAddress_IPv4_Dev; 29 struct PP_NetAddress_IPv4_Dev;
29 struct PP_NetAddress_IPv6_Dev; 30 struct PP_NetAddress_IPv6_Dev;
30 struct PP_Size; 31 struct PP_Size;
31 32
32 namespace ppapi { 33 namespace ppapi {
33 34
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const PP_Size* size, 124 const PP_Size* size,
124 PP_Bool is_always_opaque) = 0; 125 PP_Bool is_always_opaque) = 0;
125 virtual PP_Resource CreateGraphics3D(PP_Instance instance, 126 virtual PP_Resource CreateGraphics3D(PP_Instance instance,
126 PP_Resource share_context, 127 PP_Resource share_context,
127 const int32_t* attrib_list) = 0; 128 const int32_t* attrib_list) = 0;
128 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, 129 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance,
129 PP_Resource share_context, 130 PP_Resource share_context,
130 const int32_t* attrib_list) = 0; 131 const int32_t* attrib_list) = 0;
131 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; 132 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0;
132 virtual PP_Resource CreateImageData(PP_Instance instance, 133 virtual PP_Resource CreateImageData(PP_Instance instance,
134 PPB_ImageData_Shared::ImageDataType type,
133 PP_ImageDataFormat format, 135 PP_ImageDataFormat format,
134 const PP_Size* size, 136 const PP_Size* size,
135 PP_Bool init_to_zero) = 0; 137 PP_Bool init_to_zero) = 0;
136 virtual PP_Resource CreateImageDataNaCl(PP_Instance instance,
137 PP_ImageDataFormat format,
138 const PP_Size* size,
139 PP_Bool init_to_zero) = 0;
140 virtual PP_Resource CreateNetAddressFromIPv4Address( 138 virtual PP_Resource CreateNetAddressFromIPv4Address(
141 PP_Instance instance, 139 PP_Instance instance,
142 const PP_NetAddress_IPv4_Dev* ipv4_addr) = 0; 140 const PP_NetAddress_IPv4_Dev* ipv4_addr) = 0;
143 virtual PP_Resource CreateNetAddressFromIPv6Address( 141 virtual PP_Resource CreateNetAddressFromIPv6Address(
144 PP_Instance instance, 142 PP_Instance instance,
145 const PP_NetAddress_IPv6_Dev* ipv6_addr) = 0; 143 const PP_NetAddress_IPv6_Dev* ipv6_addr) = 0;
146 virtual PP_Resource CreateNetworkMonitor( 144 virtual PP_Resource CreateNetworkMonitor(
147 PP_Instance instance, 145 PP_Instance instance,
148 PPB_NetworkMonitor_Callback callback, 146 PPB_NetworkMonitor_Callback callback,
149 void* user_data) = 0; 147 void* user_data) = 0;
(...skipping 30 matching lines...) Expand all
180 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; 178 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0;
181 #endif // !defined(OS_NACL) 179 #endif // !defined(OS_NACL)
182 180
183 static const ApiID kApiID = API_ID_RESOURCE_CREATION; 181 static const ApiID kApiID = API_ID_RESOURCE_CREATION;
184 }; 182 };
185 183
186 } // namespace thunk 184 } // namespace thunk
187 } // namespace ppapi 185 } // namespace ppapi
188 186
189 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 187 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_image_data_thunk.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698