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

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

Issue 9601020: Add OpenGL occlusion query support to pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to trunk Created 8 years, 9 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 if (strcmp(name, PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE) == 0) 349 if (strcmp(name, PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE) == 0)
350 return ::ppapi::PPB_OpenGLES2_Shared::GetInstancedArraysInterface(); 350 return ::ppapi::PPB_OpenGLES2_Shared::GetInstancedArraysInterface();
351 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE) == 0) 351 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE) == 0)
352 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferBlitInterface(); 352 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferBlitInterface();
353 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE) == 0) 353 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE) == 0)
354 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface(); 354 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface();
355 if (strcmp(name, PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE) == 0) 355 if (strcmp(name, PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE) == 0)
356 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface(); 356 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface();
357 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE) == 0) 357 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE) == 0)
358 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); 358 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface();
359 if (strcmp(name, PPB_OPENGLES2_QUERY_DEV_INTERFACE) == 0)
360 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface();
359 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 361 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
360 return PPB_Proxy_Impl::GetInterface(); 362 return PPB_Proxy_Impl::GetInterface();
361 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 363 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
362 return PPB_UMA_Private_Impl::GetInterface(); 364 return PPB_UMA_Private_Impl::GetInterface();
363 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0) 365 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0)
364 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk(); 366 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk();
365 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) 367 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
366 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); 368 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
367 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) 369 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
368 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); 370 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0();
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 619 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
618 if (retval != 0) { 620 if (retval != 0) {
619 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 621 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
620 return false; 622 return false;
621 } 623 }
622 return true; 624 return true;
623 } 625 }
624 626
625 } // namespace ppapi 627 } // namespace ppapi
626 } // namespace webkit 628 } // namespace webkit
OLDNEW
« ppapi/shared_impl/ppb_opengles2_shared.cc ('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