OLD | NEW |
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 <EGL/egl.h> | 5 #include <EGL/egl.h> |
| 6 #include <stdint.h> |
6 | 7 |
7 #include "base/command_line.h" | 8 #include "base/command_line.h" |
8 #include "gpu/command_buffer/client/gles2_lib.h" | 9 #include "gpu/command_buffer/client/gles2_lib.h" |
9 #include "gpu/gles2_conform_support/egl/display.h" | 10 #include "gpu/gles2_conform_support/egl/display.h" |
10 #include "ui/gl/gl_context.h" | 11 #include "ui/gl/gl_context.h" |
11 #include "ui/gl/gl_surface.h" | 12 #include "ui/gl/gl_surface.h" |
12 | 13 |
13 #if REGAL_STATIC_EGL | 14 #if REGAL_STATIC_EGL |
14 extern "C" { | 15 extern "C" { |
15 | 16 |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 return EGL_FALSE; | 432 return EGL_FALSE; |
432 } | 433 } |
433 | 434 |
434 /* Now, define eglGetProcAddress using the generic function ptr. type */ | 435 /* Now, define eglGetProcAddress using the generic function ptr. type */ |
435 EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY | 436 EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY |
436 eglGetProcAddress(const char* procname) { | 437 eglGetProcAddress(const char* procname) { |
437 return reinterpret_cast<__eglMustCastToProperFunctionPointerType>( | 438 return reinterpret_cast<__eglMustCastToProperFunctionPointerType>( |
438 gles2::GetGLFunctionPointer(procname)); | 439 gles2::GetGLFunctionPointer(procname)); |
439 } | 440 } |
440 } // extern "C" | 441 } // extern "C" |
OLD | NEW |