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

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

Issue 9420017: Add Pepper support for several GL extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change name Created 8 years, 10 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
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/plugin_module.h" 5 #include "webkit/plugins/ppapi/plugin_module.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) 332 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0)
333 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); 333 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk();
334 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) 334 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0)
335 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); 335 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk();
336 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) 336 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0)
337 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk(); 337 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk();
338 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0) 338 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0)
339 return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(); 339 return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk();
340 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0) 340 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0)
341 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface(); 341 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface();
342 if (strcmp(name, PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE) == 0)
343 return ::ppapi::PPB_OpenGLES2_Shared::GetInstancedArraysInterface();
344 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE) == 0)
345 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferBlitInterface();
346 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE) == 0)
347 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface();
348 if (strcmp(name, PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE) == 0)
349 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface();
350 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0)
351 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface();
342 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 352 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
343 return PPB_Proxy_Impl::GetInterface(); 353 return PPB_Proxy_Impl::GetInterface();
344 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 354 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
345 return PPB_UMA_Private_Impl::GetInterface(); 355 return PPB_UMA_Private_Impl::GetInterface();
346 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0) 356 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0)
347 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk(); 357 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk();
348 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) 358 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
349 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); 359 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
350 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) 360 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
351 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); 361 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0();
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 609 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
600 if (retval != 0) { 610 if (retval != 0) {
601 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 611 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
602 return false; 612 return false;
603 } 613 }
604 return true; 614 return true;
605 } 615 }
606 616
607 } // namespace ppapi 617 } // namespace ppapi
608 } // namespace webkit 618 } // namespace webkit
OLDNEW
« ppapi/c/ppb_opengles2.h ('K') | « ppapi/shared_impl/ppb_opengles2_shared.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698