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

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

Issue 7398033: Revert 92885 - Completed the implementation for PPB_Graphics3D interface. (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
194 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance pp_instance, 185 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance pp_instance,
195 PP_ImageDataFormat format, 186 PP_ImageDataFormat format,
196 const PP_Size& size, 187 const PP_Size& size,
197 PP_Bool init_to_zero) { 188 PP_Bool init_to_zero) {
198 return PPB_ImageData_Impl::Create(instance_, format, size, init_to_zero); 189 return PPB_ImageData_Impl::Create(instance_, format, size, init_to_zero);
199 } 190 }
200 191
201 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, 192 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance,
202 PP_Bool vertical) { 193 PP_Bool vertical) {
203 return ReturnResource(new PPB_Scrollbar_Impl(instance_, PP_ToBool(vertical))); 194 return ReturnResource(new PPB_Scrollbar_Impl(instance_, PP_ToBool(vertical)));
(...skipping 24 matching lines...) Expand all
228 return ReturnResource(new PPB_VideoDecoder_Impl(instance_)); 219 return ReturnResource(new PPB_VideoDecoder_Impl(instance_));
229 } 220 }
230 221
231 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance, 222 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance,
232 PP_VideoLayerMode_Dev mode) { 223 PP_VideoLayerMode_Dev mode) {
233 return PPB_VideoLayer_Impl::Create(instance_, mode); 224 return PPB_VideoLayer_Impl::Create(instance_, mode);
234 } 225 }
235 226
236 } // namespace ppapi 227 } // namespace ppapi
237 } // namespace webkit 228 } // 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