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

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

Issue 10386145: Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, whic… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments; remove createOffscreenGraphicsContext3D Created 8 years, 7 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
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 27 matching lines...) Expand all
38 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" 38 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h"
39 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" 39 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h"
40 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" 40 #include "webkit/plugins/ppapi/ppb_websocket_impl.h"
41 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" 41 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h"
42 #include "webkit/plugins/ppapi/resource_helper.h" 42 #include "webkit/plugins/ppapi/resource_helper.h"
43 43
44 using ppapi::InputEventData; 44 using ppapi::InputEventData;
45 using ppapi::PPB_InputEvent_Shared; 45 using ppapi::PPB_InputEvent_Shared;
46 using ppapi::PPB_ResourceArray_Shared; 46 using ppapi::PPB_ResourceArray_Shared;
47 using ppapi::StringVar; 47 using ppapi::StringVar;
48 using ppapi::thunk::PPB_Graphics3D_API;
48 49
49 namespace webkit { 50 namespace webkit {
50 namespace ppapi { 51 namespace ppapi {
51 52
52 ResourceCreationImpl::ResourceCreationImpl(PluginInstance* instance) { 53 ResourceCreationImpl::ResourceCreationImpl(PluginInstance* instance) {
53 } 54 }
54 55
55 ResourceCreationImpl::~ResourceCreationImpl() { 56 ResourceCreationImpl::~ResourceCreationImpl() {
56 } 57 }
57 58
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 152
152 PP_Resource ResourceCreationImpl::CreateGraphics2D( 153 PP_Resource ResourceCreationImpl::CreateGraphics2D(
153 PP_Instance instance, 154 PP_Instance instance,
154 const PP_Size& size, 155 const PP_Size& size,
155 PP_Bool is_always_opaque) { 156 PP_Bool is_always_opaque) {
156 return PPB_Graphics2D_Impl::Create(instance, size, is_always_opaque); 157 return PPB_Graphics2D_Impl::Create(instance, size, is_always_opaque);
157 } 158 }
158 159
159 PP_Resource ResourceCreationImpl::CreateGraphics3D( 160 PP_Resource ResourceCreationImpl::CreateGraphics3D(
160 PP_Instance instance, 161 PP_Instance instance,
161 PP_Resource share_context, 162 PPB_Graphics3D_API* share_context,
162 const int32_t* attrib_list) { 163 const int32_t* attrib_list) {
163 return PPB_Graphics3D_Impl::Create(instance, share_context, attrib_list); 164 return PPB_Graphics3D_Impl::Create(instance, share_context, attrib_list);
164 } 165 }
165 166
166 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( 167 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw(
167 PP_Instance instance, 168 PP_Instance instance,
168 PP_Resource share_context, 169 PPB_Graphics3D_API* share_context,
169 const int32_t* attrib_list) { 170 const int32_t* attrib_list) {
170 return PPB_Graphics3D_Impl::CreateRaw(instance, share_context, attrib_list); 171 return PPB_Graphics3D_Impl::CreateRaw(instance, share_context, attrib_list);
171 } 172 }
172 173
173 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( 174 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate(
174 PP_Instance instance) { 175 PP_Instance instance) {
175 return (new PPB_HostResolver_Private_Impl(instance))->GetReference(); 176 return (new PPB_HostResolver_Private_Impl(instance))->GetReference();
176 } 177 }
177 178
178 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, 179 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 instance, data))->GetReference(); 343 instance, data))->GetReference();
343 } 344 }
344 345
345 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 346 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
346 PP_Instance instance) { 347 PP_Instance instance) {
347 return PPB_X509Certificate_Private_Impl::CreateResource(instance); 348 return PPB_X509Certificate_Private_Impl::CreateResource(instance);
348 } 349 }
349 350
350 } // namespace ppapi 351 } // namespace ppapi
351 } // namespace webkit 352 } // namespace webkit
OLDNEW
« webkit/plugins/ppapi/ppb_graphics_3d_impl.cc ('K') | « 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