| Index: ui/gl/gl_implementation.cc
|
| diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
|
| index 5dac760d2a94feb31b0ec79b935b60b1c434b581..ee874db46e0435e399a79fbea79fa7e759512182 100644
|
| --- a/ui/gl/gl_implementation.cc
|
| +++ b/ui/gl/gl_implementation.cc
|
| @@ -46,21 +46,6 @@ void CleanupNativeLibraries(void* unused) {
|
| }
|
| }
|
|
|
| -bool ExportsCoreFunctionsFromGetProcAddress(GLImplementation implementation) {
|
| - switch (GetGLImplementation()) {
|
| - case kGLImplementationDesktopGL:
|
| - case kGLImplementationOSMesaGL:
|
| - case kGLImplementationAppleGL:
|
| - case kGLImplementationMockGL:
|
| - return true;
|
| - case kGLImplementationEGLGLES2:
|
| - return false;
|
| - default:
|
| - NOTREACHED();
|
| - return true;
|
| - }
|
| -}
|
| -
|
| }
|
|
|
| base::ThreadLocalPointer<GLApi>* g_current_gl_context_tls = NULL;
|
| @@ -138,7 +123,7 @@ void SetGLGetProcAddressProc(GLGetProcAddressProc proc) {
|
| g_get_proc_address = proc;
|
| }
|
|
|
| -void* GetGLCoreProcAddress(const char* name) {
|
| +void* GetGLProcAddress(const char* name) {
|
| DCHECK(g_gl_implementation != kGLImplementationNone);
|
|
|
| if (g_libraries) {
|
| @@ -149,8 +134,7 @@ void* GetGLCoreProcAddress(const char* name) {
|
| return proc;
|
| }
|
| }
|
| - if (ExportsCoreFunctionsFromGetProcAddress(g_gl_implementation) &&
|
| - g_get_proc_address) {
|
| + if (g_get_proc_address) {
|
| void* proc = g_get_proc_address(name);
|
| if (proc)
|
| return proc;
|
| @@ -159,19 +143,6 @@ void* GetGLCoreProcAddress(const char* name) {
|
| return NULL;
|
| }
|
|
|
| -void* GetGLProcAddress(const char* name) {
|
| - DCHECK(g_gl_implementation != kGLImplementationNone);
|
| -
|
| - void* proc = GetGLCoreProcAddress(name);
|
| - if (!proc && g_get_proc_address) {
|
| - proc = g_get_proc_address(name);
|
| - if (proc)
|
| - return proc;
|
| - }
|
| -
|
| - return proc;
|
| -}
|
| -
|
| void InitializeNullDrawGLBindings() {
|
| // This is platform independent, so it does not need to live in a platform
|
| // specific implementation file.
|
|
|