OLD | NEW |
1 // Copyright (c) 2011 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 "ui/gfx/gl/gl_context.h" | |
8 #include "ui/gfx/gl/gl_surface.h" | |
9 #include "base/command_line.h" | 7 #include "base/command_line.h" |
10 #include "gpu/gles2_conform_support/egl/display.h" | 8 #include "gpu/gles2_conform_support/egl/display.h" |
| 9 #include "ui/gl/gl_context.h" |
| 10 #include "ui/gl/gl_surface.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 void SetCurrentError(EGLint error_code) { | 13 void SetCurrentError(EGLint error_code) { |
14 } | 14 } |
15 | 15 |
16 template<typename T> | 16 template<typename T> |
17 T EglError(EGLint error_code, T return_value) { | 17 T EglError(EGLint error_code, T return_value) { |
18 SetCurrentError(error_code); | 18 SetCurrentError(error_code); |
19 return return_value; | 19 return return_value; |
20 } | 20 } |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 EGLNativePixmapType target) { | 368 EGLNativePixmapType target) { |
369 return EGL_FALSE; | 369 return EGL_FALSE; |
370 } | 370 } |
371 | 371 |
372 /* Now, define eglGetProcAddress using the generic function ptr. type */ | 372 /* Now, define eglGetProcAddress using the generic function ptr. type */ |
373 __eglMustCastToProperFunctionPointerType | 373 __eglMustCastToProperFunctionPointerType |
374 eglGetProcAddress(const char* procname) { | 374 eglGetProcAddress(const char* procname) { |
375 return NULL; | 375 return NULL; |
376 } | 376 } |
377 } // extern "C" | 377 } // extern "C" |
OLD | NEW |