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

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: fix build_gles2_cmd_buffer 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
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_api.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/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"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/message_loop_proxy.h" 14 #include "base/message_loop_proxy.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "ppapi/c/dev/ppb_audio_input_dev.h" 16 #include "ppapi/c/dev/ppb_audio_input_dev.h"
17 #include "ppapi/c/dev/ppb_buffer_dev.h" 17 #include "ppapi/c/dev/ppb_buffer_dev.h"
18 #include "ppapi/c/dev/ppb_char_set_dev.h" 18 #include "ppapi/c/dev/ppb_char_set_dev.h"
19 #include "ppapi/c/dev/ppb_console_dev.h" 19 #include "ppapi/c/dev/ppb_console_dev.h"
20 #include "ppapi/c/dev/ppb_crypto_dev.h" 20 #include "ppapi/c/dev/ppb_crypto_dev.h"
21 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 21 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
22 #include "ppapi/c/dev/ppb_device_ref_dev.h" 22 #include "ppapi/c/dev/ppb_device_ref_dev.h"
23 #include "ppapi/c/dev/ppb_directory_reader_dev.h" 23 #include "ppapi/c/dev/ppb_directory_reader_dev.h"
24 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 24 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
25 #include "ppapi/c/dev/ppb_find_dev.h" 25 #include "ppapi/c/dev/ppb_find_dev.h"
26 #include "ppapi/c/dev/ppb_font_dev.h" 26 #include "ppapi/c/dev/ppb_font_dev.h"
27 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 27 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
28 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
29 #include "ppapi/c/dev/ppb_layer_compositor_dev.h" 28 #include "ppapi/c/dev/ppb_layer_compositor_dev.h"
30 #include "ppapi/c/dev/ppb_memory_dev.h" 29 #include "ppapi/c/dev/ppb_memory_dev.h"
30 #include "ppapi/c/dev/ppb_opengles2ext_dev.h"
31 #include "ppapi/c/dev/ppb_resource_array_dev.h" 31 #include "ppapi/c/dev/ppb_resource_array_dev.h"
32 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 32 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
33 #include "ppapi/c/dev/ppb_testing_dev.h" 33 #include "ppapi/c/dev/ppb_testing_dev.h"
34 #include "ppapi/c/dev/ppb_text_input_dev.h" 34 #include "ppapi/c/dev/ppb_text_input_dev.h"
35 #include "ppapi/c/dev/ppb_transport_dev.h" 35 #include "ppapi/c/dev/ppb_transport_dev.h"
36 #include "ppapi/c/dev/ppb_url_util_dev.h" 36 #include "ppapi/c/dev/ppb_url_util_dev.h"
37 #include "ppapi/c/dev/ppb_var_deprecated.h" 37 #include "ppapi/c/dev/ppb_var_deprecated.h"
38 #include "ppapi/c/dev/ppb_video_capture_dev.h" 38 #include "ppapi/c/dev/ppb_video_capture_dev.h"
39 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 39 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
40 #include "ppapi/c/dev/ppb_video_layer_dev.h" 40 #include "ppapi/c/dev/ppb_video_layer_dev.h"
(...skipping 291 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_DEV_INTERFACE) == 0)
343 return ::ppapi::PPB_OpenGLES2_Shared::GetInstancedArraysInterface();
344 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE) == 0)
345 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferBlitInterface();
346 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE) == 0)
347 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface();
348 if (strcmp(name, PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE) == 0)
349 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface();
350 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_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
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698