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

Side by Side Diff: src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months 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
« no previous file with comments | « src/gpu/gl/debug/SkDebugGLContext.cpp ('k') | src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1
2 /* 1 /*
3 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
4 * 3 *
5 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 #include "gl/GrGLInterface.h" 7 #include "gl/GrGLInterface.h"
9 #include "gl/GrGLAssembleInterface.h" 8 #include "gl/GrGLAssembleInterface.h"
10 #include "gl/GrGLUtil.h" 9 #include "gl/GrGLUtil.h"
11 10
12 #include <EGL/egl.h> 11 #include <EGL/egl.h>
13 #include <GLES2/gl2.h> 12 #include <GLES2/gl2.h>
14 13
15 static GrGLFuncPtr egl_get_gl_proc(void* ctx, const char name[]) { 14 static GrGLFuncPtr egl_get_gl_proc(void* ctx, const char name[]) {
16 SkASSERT(nullptr == ctx); 15 SkASSERT(nullptr == ctx);
17 GrGLFuncPtr ptr = eglGetProcAddress(name); 16 GrGLFuncPtr ptr = eglGetProcAddress(name);
18 if (!ptr) { 17 if (!ptr) {
19 if (0 == strcmp("eglQueryString", name)) { 18 if (0 == strcmp("eglQueryString", name)) {
20 return (GrGLFuncPtr)eglQueryString; 19 return (GrGLFuncPtr)eglQueryString;
21 } else if (0 == strcmp("eglGetCurrentDisplay", name)) { 20 } else if (0 == strcmp("eglGetCurrentDisplay", name)) {
22 return (GrGLFuncPtr)eglGetCurrentDisplay; 21 return (GrGLFuncPtr)eglGetCurrentDisplay;
23 } 22 }
24 } 23 }
25 return ptr; 24 return ptr;
26 } 25 }
27 26
28 const GrGLInterface* GrGLCreateNativeInterface() { 27 const GrGLInterface* GrGLCreateNativeInterface() {
29 return GrGLAssembleInterface(nullptr, egl_get_gl_proc); 28 return GrGLAssembleInterface(nullptr, egl_get_gl_proc);
30 } 29 }
OLDNEW
« no previous file with comments | « src/gpu/gl/debug/SkDebugGLContext.cpp ('k') | src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698