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

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

Issue 7431001: Re-land r92885, which was reverted in r92891. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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) 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 #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 "webkit/plugins/ppapi/common.h" 8 #include "webkit/plugins/ppapi/common.h"
9 #include "webkit/plugins/ppapi/ppb_audio_impl.h" 9 #include "webkit/plugins/ppapi/ppb_audio_impl.h"
10 #include "webkit/plugins/ppapi/ppb_broker_impl.h" 10 #include "webkit/plugins/ppapi/ppb_broker_impl.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 PP_Resource ResourceCreationImpl::CreateGraphics3D( 176 PP_Resource ResourceCreationImpl::CreateGraphics3D(
177 PP_Instance instance, 177 PP_Instance instance,
178 PP_Config3D_Dev config, 178 PP_Config3D_Dev config,
179 PP_Resource share_context, 179 PP_Resource share_context,
180 const int32_t* attrib_list) { 180 const int32_t* attrib_list) {
181 return PPB_Graphics3D_Impl::Create(instance_, config, share_context, 181 return PPB_Graphics3D_Impl::Create(instance_, config, share_context,
182 attrib_list); 182 attrib_list);
183 } 183 }
184 184
185 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw(
186 PP_Instance instance,
187 PP_Config3D_Dev config,
188 PP_Resource share_context,
189 const int32_t* attrib_list) {
190 return PPB_Graphics3D_Impl::CreateRaw(instance_, config, share_context,
191 attrib_list);
192 }
193
185 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance pp_instance, 194 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance pp_instance,
186 PP_ImageDataFormat format, 195 PP_ImageDataFormat format,
187 const PP_Size& size, 196 const PP_Size& size,
188 PP_Bool init_to_zero) { 197 PP_Bool init_to_zero) {
189 return PPB_ImageData_Impl::Create(instance_, format, size, init_to_zero); 198 return PPB_ImageData_Impl::Create(instance_, format, size, init_to_zero);
190 } 199 }
191 200
192 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, 201 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance,
193 PP_Bool vertical) { 202 PP_Bool vertical) {
194 return ReturnResource(new PPB_Scrollbar_Impl(instance_, PP_ToBool(vertical))); 203 return ReturnResource(new PPB_Scrollbar_Impl(instance_, PP_ToBool(vertical)));
(...skipping 24 matching lines...) Expand all
219 return ReturnResource(new PPB_VideoDecoder_Impl(instance_)); 228 return ReturnResource(new PPB_VideoDecoder_Impl(instance_));
220 } 229 }
221 230
222 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance, 231 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance,
223 PP_VideoLayerMode_Dev mode) { 232 PP_VideoLayerMode_Dev mode) {
224 return PPB_VideoLayer_Impl::Create(instance_, mode); 233 return PPB_VideoLayer_Impl::Create(instance_, mode);
225 } 234 }
226 235
227 } // namespace ppapi 236 } // namespace ppapi
228 } // namespace webkit 237 } // 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