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

Side by Side Diff: ppapi/proxy/interface_list.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/ppapi_shared.gypi ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.h » ('j') | 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 "ppapi/proxy/interface_list.h" 5 #include "ppapi/proxy/interface_list.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" 8 #include "ppapi/c/dev/ppb_audio_input_dev.h"
9 #include "ppapi/c/dev/ppb_buffer_dev.h" 9 #include "ppapi/c/dev/ppb_buffer_dev.h"
10 #include "ppapi/c/dev/ppb_char_set_dev.h" 10 #include "ppapi/c/dev/ppb_char_set_dev.h"
11 #include "ppapi/c/dev/ppb_console_dev.h" 11 #include "ppapi/c/dev/ppb_console_dev.h"
12 #include "ppapi/c/dev/ppb_crypto_dev.h" 12 #include "ppapi/c/dev/ppb_crypto_dev.h"
13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
14 #include "ppapi/c/dev/ppb_device_ref_dev.h" 14 #include "ppapi/c/dev/ppb_device_ref_dev.h"
15 #include "ppapi/c/dev/ppb_font_dev.h" 15 #include "ppapi/c/dev/ppb_font_dev.h"
16 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 16 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
17 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
18 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" 17 #include "ppapi/c/dev/ppb_ime_input_event_dev.h"
19 #include "ppapi/c/dev/ppb_memory_dev.h" 18 #include "ppapi/c/dev/ppb_memory_dev.h"
20 #include "ppapi/c/dev/ppb_message_loop_dev.h" 19 #include "ppapi/c/dev/ppb_message_loop_dev.h"
20 #include "ppapi/c/dev/ppb_opengles2ext_dev.h"
21 #include "ppapi/c/dev/ppb_resource_array_dev.h" 21 #include "ppapi/c/dev/ppb_resource_array_dev.h"
22 #include "ppapi/c/dev/ppb_testing_dev.h" 22 #include "ppapi/c/dev/ppb_testing_dev.h"
23 #include "ppapi/c/dev/ppb_text_input_dev.h" 23 #include "ppapi/c/dev/ppb_text_input_dev.h"
24 #include "ppapi/c/dev/ppb_url_util_dev.h" 24 #include "ppapi/c/dev/ppb_url_util_dev.h"
25 #include "ppapi/c/dev/ppb_var_deprecated.h" 25 #include "ppapi/c/dev/ppb_var_deprecated.h"
26 #include "ppapi/c/dev/ppb_video_capture_dev.h" 26 #include "ppapi/c/dev/ppb_video_capture_dev.h"
27 #include "ppapi/c/ppb_audio_config.h" 27 #include "ppapi/c/ppb_audio_config.h"
28 #include "ppapi/c/ppb_audio.h" 28 #include "ppapi/c/ppb_audio.h"
29 #include "ppapi/c/ppb_core.h" 29 #include "ppapi/c/ppb_core.h"
30 #include "ppapi/c/ppb_file_io.h" 30 #include "ppapi/c/ppb_file_io.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // for message routing. Others have different implementations between the 172 // for message routing. Others have different implementations between the
173 // proxy and the impl and there's no obvious message routing. 173 // proxy and the impl and there's no obvious message routing.
174 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); 174 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create);
175 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); 175 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create);
176 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, 176 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE,
177 PPB_Core_Proxy::GetPPB_Core_Interface()); 177 PPB_Core_Proxy::GetPPB_Core_Interface());
178 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE, 178 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE,
179 PPB_MessageLoop_Proxy::GetInterface()); 179 PPB_MessageLoop_Proxy::GetInterface());
180 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, 180 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE,
181 PPB_OpenGLES2_Shared::GetInterface()); 181 PPB_OpenGLES2_Shared::GetInterface());
182 AddPPB(PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE_1_0, API_ID_NONE,
183 PPB_OpenGLES2_Shared::GetInstancedArraysInterface());
184 AddPPB(PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE_1_0, API_ID_NONE,
185 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface());
186 AddPPB(PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0, API_ID_NONE,
187 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface());
188 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0, API_ID_NONE,
189 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface());
190 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, API_ID_NONE,
191 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface());
182 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, API_ID_NONE, 192 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, API_ID_NONE,
183 PPB_Var_Shared::GetVarArrayBufferInterface1_0()); 193 PPB_Var_Shared::GetVarArrayBufferInterface1_0());
184 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, 194 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE,
185 PPB_Var_Shared::GetVarInterface1_1()); 195 PPB_Var_Shared::GetVarInterface1_1());
186 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, 196 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE,
187 PPB_Var_Shared::GetVarInterface1_0()); 197 PPB_Var_Shared::GetVarInterface1_0());
188 198
189 AddFlashInterfaces(); 199 AddFlashInterfaces();
190 200
191 // PPB (browser) interfaces. 201 // PPB (browser) interfaces.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 AddPPB(info->name, info->id, info->interface_ptr); 355 AddPPB(info->name, info->id, info->interface_ptr);
346 } 356 }
347 357
348 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 358 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
349 AddProxy(info->id, info->create_proxy); 359 AddProxy(info->id, info->create_proxy);
350 AddPPP(info->name, info->id, info->interface_ptr); 360 AddPPP(info->name, info->id, info->interface_ptr);
351 } 361 }
352 362
353 } // namespace proxy 363 } // namespace proxy
354 } // namespace ppapi 364 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/ppapi_shared.gypi ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698