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

Side by Side Diff: ppapi/proxy/interface_list.cc

Issue 10354004: Move gles2 extensions out of dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | 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 "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"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // proxy and the impl and there's no obvious message routing. 186 // proxy and the impl and there's no obvious message routing.
187 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); 187 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create);
188 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); 188 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create);
189 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, 189 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE,
190 PPB_Core_Proxy::GetPPB_Core_Interface()); 190 PPB_Core_Proxy::GetPPB_Core_Interface());
191 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE, 191 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE,
192 PPB_MessageLoop_Proxy::GetInterface()); 192 PPB_MessageLoop_Proxy::GetInterface());
193 #if !defined(OS_NACL) 193 #if !defined(OS_NACL)
194 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, 194 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE,
195 PPB_OpenGLES2_Shared::GetInterface()); 195 PPB_OpenGLES2_Shared::GetInterface());
196 AddPPB(PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE_1_0, API_ID_NONE, 196 AddPPB(PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0, API_ID_NONE,
197 PPB_OpenGLES2_Shared::GetInstancedArraysInterface()); 197 PPB_OpenGLES2_Shared::GetInstancedArraysInterface());
198 AddPPB(PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE_1_0, API_ID_NONE, 198 AddPPB(PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0, API_ID_NONE,
199 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface()); 199 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface());
200 AddPPB(PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0, API_ID_NONE, 200 AddPPB(PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0, API_ID_NONE,
201 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface()); 201 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface());
202 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0, API_ID_NONE, 202 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0, API_ID_NONE,
203 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface()); 203 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface());
204 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0, API_ID_NONE,
205 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface());
204 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, API_ID_NONE, 206 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, API_ID_NONE,
205 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface()); 207 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface());
206 AddPPB(PPB_OPENGLES2_QUERY_DEV_INTERFACE_1_0, API_ID_NONE, 208 AddPPB(PPB_OPENGLES2_QUERY_INTERFACE_1_0, API_ID_NONE,
207 PPB_OpenGLES2_Shared::GetQueryInterface()); 209 PPB_OpenGLES2_Shared::GetQueryInterface());
208 #endif 210 #endif
209 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, API_ID_NONE, 211 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, API_ID_NONE,
210 PPB_Var_Shared::GetVarArrayBufferInterface1_0()); 212 PPB_Var_Shared::GetVarArrayBufferInterface1_0());
211 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, 213 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE,
212 PPB_Var_Shared::GetVarInterface1_1()); 214 PPB_Var_Shared::GetVarInterface1_1());
213 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, 215 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE,
214 PPB_Var_Shared::GetVarInterface1_0()); 216 PPB_Var_Shared::GetVarInterface1_0());
215 217
216 #if !defined(OS_NACL) 218 #if !defined(OS_NACL)
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 AddPPB(info->name, info->id, info->interface_ptr); 335 AddPPB(info->name, info->id, info->interface_ptr);
334 } 336 }
335 337
336 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 338 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
337 AddProxy(info->id, info->create_proxy); 339 AddProxy(info->id, info->create_proxy);
338 AddPPP(info->name, info->id, info->interface_ptr); 340 AddPPP(info->name, info->id, info->interface_ptr);
339 } 341 }
340 342
341 } // namespace proxy 343 } // namespace proxy
342 } // namespace ppapi 344 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698