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

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

Issue 397183002: Add PPAPI interface for OpenGL ES 2.0 Vertex Array Objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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/lib/gl/gles2/gles2.c ('k') | ppapi/shared_impl/ppb_opengles2_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/hash.h" 7 #include "base/hash.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 PERMISSION_NONE); 234 PERMISSION_NONE);
235 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0, 235 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0,
236 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface(), 236 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface(),
237 PERMISSION_NONE); 237 PERMISSION_NONE);
238 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0, 238 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0,
239 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(), PERMISSION_NONE); 239 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(), PERMISSION_NONE);
240 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, 240 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0,
241 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(), PERMISSION_NONE); 241 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(), PERMISSION_NONE);
242 AddPPB(PPB_OPENGLES2_QUERY_INTERFACE_1_0, 242 AddPPB(PPB_OPENGLES2_QUERY_INTERFACE_1_0,
243 PPB_OpenGLES2_Shared::GetQueryInterface(), PERMISSION_NONE); 243 PPB_OpenGLES2_Shared::GetQueryInterface(), PERMISSION_NONE);
244 AddPPB(PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE_1_0,
245 PPB_OpenGLES2_Shared::GetVertexArrayObjectInterface(),
246 PERMISSION_NONE);
244 AddPPB(PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE_1_0, 247 AddPPB(PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE_1_0,
245 PPB_OpenGLES2_Shared::GetDrawBuffersInterface(), 248 PPB_OpenGLES2_Shared::GetDrawBuffersInterface(),
246 PERMISSION_DEV); 249 PERMISSION_DEV);
247 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, 250 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0,
248 PPB_Var_Shared::GetVarArrayBufferInterface1_0(), 251 PPB_Var_Shared::GetVarArrayBufferInterface1_0(),
249 PERMISSION_NONE); 252 PERMISSION_NONE);
250 AddPPB(PPB_VAR_INTERFACE_1_2, 253 AddPPB(PPB_VAR_INTERFACE_1_2,
251 PPB_Var_Shared::GetVarInterface1_2(), PERMISSION_NONE); 254 PPB_Var_Shared::GetVarInterface1_2(), PERMISSION_NONE);
252 AddPPB(PPB_VAR_INTERFACE_1_1, 255 AddPPB(PPB_VAR_INTERFACE_1_1,
253 PPB_Var_Shared::GetVarInterface1_1(), PERMISSION_NONE); 256 PPB_Var_Shared::GetVarInterface1_1(), PERMISSION_NONE);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // static 395 // static
393 int InterfaceList::HashInterfaceName(const std::string& name) { 396 int InterfaceList::HashInterfaceName(const std::string& name) {
394 uint32 data = base::Hash(name.c_str(), name.size()); 397 uint32 data = base::Hash(name.c_str(), name.size());
395 // Strip off the signed bit because UMA doesn't support negative values, 398 // Strip off the signed bit because UMA doesn't support negative values,
396 // but takes a signed int as input. 399 // but takes a signed int as input.
397 return static_cast<int>(data & 0x7fffffff); 400 return static_cast<int>(data & 0x7fffffff);
398 } 401 }
399 402
400 } // namespace proxy 403 } // namespace proxy
401 } // namespace ppapi 404 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/lib/gl/gles2/gles2.c ('k') | ppapi/shared_impl/ppb_opengles2_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698