Chromium Code Reviews| 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 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "gpu/command_buffer/client/gles2_lib.h" | 8 #include "gpu/command_buffer/client/gles2_lib.h" |
| 9 #include "gpu/gles2_conform_support/egl/display.h" | 9 #include "gpu/gles2_conform_support/egl/display.h" |
| 10 #include "ui/gl/gl_context.h" | 10 #include "ui/gl/gl_context.h" |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 392 | 392 |
| 393 EGLBoolean eglCopyBuffers(EGLDisplay dpy, | 393 EGLBoolean eglCopyBuffers(EGLDisplay dpy, |
| 394 EGLSurface surface, | 394 EGLSurface surface, |
| 395 EGLNativePixmapType target) { | 395 EGLNativePixmapType target) { |
| 396 return EGL_FALSE; | 396 return EGL_FALSE; |
| 397 } | 397 } |
| 398 | 398 |
| 399 /* Now, define eglGetProcAddress using the generic function ptr. type */ | 399 /* Now, define eglGetProcAddress using the generic function ptr. type */ |
| 400 __eglMustCastToProperFunctionPointerType | 400 __eglMustCastToProperFunctionPointerType |
| 401 eglGetProcAddress(const char* procname) { | 401 eglGetProcAddress(const char* procname) { |
| 402 return gles2::GetGLFunctionPointer(procname); | 402 return (__eglMustCastToProperFunctionPointerType)gles2::GetGLFunctionPointer( |
|
piman
2015/07/28 18:43:16
nit: no c-style cast, use a static_cast (if possib
| |
| 403 procname); | |
| 403 } | 404 } |
| 404 } // extern "C" | 405 } // extern "C" |
| OLD | NEW |