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

Side by Side Diff: src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp

Issue 1434813002: Add support for EGLImage to GrGLInterface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 5 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
« no previous file with comments | « src/gpu/gl/SkNullGLContext.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.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 1
2 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "SkTypes.h" 8 #include "SkTypes.h"
9 #if defined(SK_BUILD_FOR_ANDROID) 9 #if defined(SK_BUILD_FOR_ANDROID)
10 10
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } else if (0 == strcmp("glGenFramebuffers", name)) { 216 } else if (0 == strcmp("glGenFramebuffers", name)) {
217 return (GrGLFuncPtr) glGenFramebuffers; 217 return (GrGLFuncPtr) glGenFramebuffers;
218 } else if (0 == strcmp("glGenRenderbuffers", name)) { 218 } else if (0 == strcmp("glGenRenderbuffers", name)) {
219 return (GrGLFuncPtr) glGenRenderbuffers; 219 return (GrGLFuncPtr) glGenRenderbuffers;
220 } else if (0 == strcmp("glGetFramebufferAttachmentParameteriv", name)) { 220 } else if (0 == strcmp("glGetFramebufferAttachmentParameteriv", name)) {
221 return (GrGLFuncPtr) glGetFramebufferAttachmentParameteriv; 221 return (GrGLFuncPtr) glGetFramebufferAttachmentParameteriv;
222 } else if (0 == strcmp("glGetRenderbufferParameteriv", name)) { 222 } else if (0 == strcmp("glGetRenderbufferParameteriv", name)) {
223 return (GrGLFuncPtr) glGetRenderbufferParameteriv; 223 return (GrGLFuncPtr) glGetRenderbufferParameteriv;
224 } else if (0 == strcmp("glRenderbufferStorage", name)) { 224 } else if (0 == strcmp("glRenderbufferStorage", name)) {
225 return (GrGLFuncPtr) glRenderbufferStorage; 225 return (GrGLFuncPtr) glRenderbufferStorage;
226 } else if (0 == strcmp("eglQueryString", name)) {
227 return (GrGLFuncPtr) eglQueryString;
228 } else if (0 == strcmp("eglGetCurrentDisplay", name)) {
229 return (GrGLFuncPtr) eglGetCurrentDisplay;
226 } 230 }
227 return eglGetProcAddress(name); 231 return eglGetProcAddress(name);
228 } 232 }
229 233
230 const GrGLInterface* GrGLCreateNativeInterface() { 234 const GrGLInterface* GrGLCreateNativeInterface() {
231 return GrGLAssembleInterface(nullptr, android_get_gl_proc); 235 return GrGLAssembleInterface(nullptr, android_get_gl_proc);
232 } 236 }
233 237
234 #endif//defined(SK_BUILD_FOR_ANDROID) 238 #endif//defined(SK_BUILD_FOR_ANDROID)
OLDNEW
« no previous file with comments | « src/gpu/gl/SkNullGLContext.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698