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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 10796064: PPAPI/NaCl: Make nacl_ipc_adapter handle ImageData creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sketch of idea for extracting handles generally Created 8 years, 5 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 | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | 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 #include "webkit/plugins/ppapi/resource_creation_impl.h" 5 #include "webkit/plugins/ppapi/resource_creation_impl.h"
6 6
7 #include "ppapi/c/pp_size.h" 7 #include "ppapi/c/pp_size.h"
8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" 10 #include "ppapi/shared_impl/ppb_input_event_shared.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( 168 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate(
169 PP_Instance instance) { 169 PP_Instance instance) {
170 return (new PPB_HostResolver_Private_Impl(instance))->GetReference(); 170 return (new PPB_HostResolver_Private_Impl(instance))->GetReference();
171 } 171 }
172 172
173 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, 173 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance,
174 PP_ImageDataFormat format, 174 PP_ImageDataFormat format,
175 const PP_Size& size, 175 const PP_Size& size,
176 PP_Bool init_to_zero) { 176 PP_Bool init_to_zero) {
177 return PPB_ImageData_Impl::Create(instance, format, size, init_to_zero); 177 return PPB_ImageData_Impl::CreatePlatform(instance, format, size,
178 init_to_zero);
179 }
180
181 PP_Resource ResourceCreationImpl::CreateImageDataNaCl(PP_Instance instance,
182 PP_ImageDataFormat format,
183 const PP_Size& size,
184 PP_Bool init_to_zero) {
185 return PPB_ImageData_Impl::CreateNaCl(instance, format, size, init_to_zero);
178 } 186 }
179 187
180 PP_Resource ResourceCreationImpl::CreateIMEInputEvent( 188 PP_Resource ResourceCreationImpl::CreateIMEInputEvent(
181 PP_Instance instance, 189 PP_Instance instance,
182 PP_InputEvent_Type type, 190 PP_InputEvent_Type type,
183 PP_TimeTicks time_stamp, 191 PP_TimeTicks time_stamp,
184 struct PP_Var text, 192 struct PP_Var text,
185 uint32_t segment_number, 193 uint32_t segment_number,
186 const uint32_t* segment_offsets, 194 const uint32_t* segment_offsets,
187 int32_t target_segment, 195 int32_t target_segment,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 wheel_delta, wheel_ticks, scroll_by_page); 320 wheel_delta, wheel_ticks, scroll_by_page);
313 } 321 }
314 322
315 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 323 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
316 PP_Instance instance) { 324 PP_Instance instance) {
317 return PPB_X509Certificate_Private_Impl::CreateResource(instance); 325 return PPB_X509Certificate_Private_Impl::CreateResource(instance);
318 } 326 }
319 327
320 } // namespace ppapi 328 } // namespace ppapi
321 } // namespace webkit 329 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698