summaryrefslogtreecommitdiffstats
path: root/ppapi/lib/gl/gles2
diff options
context:
space:
mode:
authornfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 23:36:26 +0000
committernfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 23:36:26 +0000
commit24efa80adcf956b606bdda62091357510894e5cf (patch)
treee9b63f7e520bd38592f5de2e27e4ca67af8f8f3b /ppapi/lib/gl/gles2
parent844cf21c267a04f519386c2753780531f0dc9214 (diff)
downloadchromium_src-24efa80adcf956b606bdda62091357510894e5cf.zip
chromium_src-24efa80adcf956b606bdda62091357510894e5cf.tar.gz
chromium_src-24efa80adcf956b606bdda62091357510894e5cf.tar.bz2
Revert 99855 - Move PPAPI graphics3d and opengles interfaces out of Dev.
BUG= http://code.google.com/p/chromium/issues/detail?id=94320 TEST= various nacl exmaples, try bots Review URL: http://codereview.chromium.org/7737013 TBR=nfullagar@google.com Review URL: http://codereview.chromium.org/7782020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/lib/gl/gles2')
-rw-r--r--ppapi/lib/gl/gles2/gl2ext_ppapi.c8
-rw-r--r--ppapi/lib/gl/gles2/gl2ext_ppapi.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/ppapi/lib/gl/gles2/gl2ext_ppapi.c b/ppapi/lib/gl/gles2/gl2ext_ppapi.c
index 62d842d..02e3005 100644
--- a/ppapi/lib/gl/gles2/gl2ext_ppapi.c
+++ b/ppapi/lib/gl/gles2/gl2ext_ppapi.c
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -25,7 +25,7 @@
// TODO(alokp): This will need to be thread-safe if we build gles2 as a
// shared library.
-static const struct PPB_OpenGLES2* g_gles2_interface = NULL;
+static const struct PPB_OpenGLES2_Dev* g_gles2_interface = NULL;
// TODO(alokp): Make sure PP_TLS works on all supported platforms.
static PP_TLS PP_Resource g_current_context = 0;
@@ -33,7 +33,7 @@ static PP_TLS PP_Resource g_current_context = 0;
GLboolean GL_APIENTRY glInitializePPAPI(
PPB_GetInterface get_browser_interface) {
if (!g_gles2_interface) {
- g_gles2_interface = get_browser_interface(PPB_OPENGLES2_INTERFACE);
+ g_gles2_interface = get_browser_interface(PPB_OPENGLES2_DEV_INTERFACE);
}
return g_gles2_interface ? GL_TRUE : GL_FALSE;
}
@@ -51,7 +51,7 @@ PP_Resource GL_APIENTRY glGetCurrentContextPPAPI() {
return g_current_context;
}
-const struct PPB_OpenGLES2* GL_APIENTRY glGetInterfacePPAPI() {
+const struct PPB_OpenGLES2_Dev* GL_APIENTRY glGetInterfacePPAPI() {
return g_gles2_interface;
}
diff --git a/ppapi/lib/gl/gles2/gl2ext_ppapi.h b/ppapi/lib/gl/gles2/gl2ext_ppapi.h
index 7c84397..97953ce 100644
--- a/ppapi/lib/gl/gles2/gl2ext_ppapi.h
+++ b/ppapi/lib/gl/gles2/gl2ext_ppapi.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,7 +11,7 @@
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/ppb.h"
-#include "ppapi/c/ppb_opengles.h"
+#include "ppapi/c/dev/ppb_opengles_dev.h"
#ifdef __cplusplus
extern "C" {
@@ -35,7 +35,7 @@ GL_APICALL void GL_APIENTRY glSetCurrentContextPPAPI(PP_Resource context);
GL_APICALL PP_Resource GL_APIENTRY glGetCurrentContextPPAPI();
// Returns OpenGL ES 2.0 interface.
-GL_APICALL const struct PPB_OpenGLES2* GL_APIENTRY glGetInterfacePPAPI();
+GL_APICALL const struct PPB_OpenGLES2_Dev* GL_APIENTRY glGetInterfacePPAPI();
#ifdef __cplusplus
}