Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: ui/gfx/gl/egl_util.cc

Issue 8588059: Upstream: GL implementation on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/gfx/gl/gl.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/gfx/gl/egl_util.h" 5 #include "ui/gfx/gl/egl_util.h"
6 6
7 #if defined(OS_ANDROID)
8 #include <EGL/egl.h>
9 #else
7 #include "third_party/angle/include/EGL/egl.h" 10 #include "third_party/angle/include/EGL/egl.h"
11 #endif
8 12
9 // This needs to be after the EGL includes 13 // This needs to be after the EGL includes
10 #include "ui/gfx/gl/gl_bindings.h" 14 #include "ui/gfx/gl/gl_bindings.h"
11 15
12 namespace gfx { 16 namespace gfx {
13 17
14 // Returns the last EGL error as a string. 18 // Returns the last EGL error as a string.
15 const char* GetLastEGLErrorString() { 19 const char* GetLastEGLErrorString() {
16 EGLint error = eglGetError(); 20 EGLint error = eglGetError();
17 switch (error) { 21 switch (error) {
(...skipping 22 matching lines...) Expand all
40 case EGL_BAD_NATIVE_PIXMAP: 44 case EGL_BAD_NATIVE_PIXMAP:
41 return "EGL_BAD_NATIVE_PIXMAP"; 45 return "EGL_BAD_NATIVE_PIXMAP";
42 case EGL_BAD_NATIVE_WINDOW: 46 case EGL_BAD_NATIVE_WINDOW:
43 return "EGL_BAD_NATIVE_WINDOW"; 47 return "EGL_BAD_NATIVE_WINDOW";
44 default: 48 default:
45 return "UNKNOWN"; 49 return "UNKNOWN";
46 } 50 }
47 } 51 }
48 52
49 } // namespace gfx 53 } // namespace gfx
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/gl/gl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698