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

Side by Side Diff: src/gpu/gl/angle/SkANGLEGLContext.cpp

Issue 1814233003: Fix ANGLE build (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | 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 2012 Google Inc. 3 * Copyright 2012 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 8
9 #include "gl/angle/SkANGLEGLContext.h" 9 #include "gl/angle/SkANGLEGLContext.h"
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 void SkANGLEGLContext::destroyEGLImage(GrEGLImage image) const { 150 void SkANGLEGLContext::destroyEGLImage(GrEGLImage image) const {
151 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image)); 151 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image));
152 } 152 }
153 153
154 GrGLuint SkANGLEGLContext::eglImageToExternalTexture(GrEGLImage image) const { 154 GrGLuint SkANGLEGLContext::eglImageToExternalTexture(GrEGLImage image) const {
155 GrGLClearErr(this->gl()); 155 GrGLClearErr(this->gl());
156 if (!this->gl()->hasExtension("GL_OES_EGL_image_external")) { 156 if (!this->gl()->hasExtension("GL_OES_EGL_image_external")) {
157 return 0; 157 return 0;
158 } 158 }
159 GrGLEGLImageTargetTexture2DProc glEGLImageTargetTexture2D = 159 typedef GrGLvoid (*EGLImageTargetTexture2DProc)(GrGLenum, GrGLeglImage);
160 (GrGLEGLImageTargetTexture2DProc)eglGetProcAddress("glEGLImageTargetText ure2DOES"); 160
161 EGLImageTargetTexture2DProc glEGLImageTargetTexture2D =
162 (EGLImageTargetTexture2DProc)eglGetProcAddress("glEGLImageTargetTexture2 DOES");
161 if (!glEGLImageTargetTexture2D) { 163 if (!glEGLImageTargetTexture2D) {
162 return 0; 164 return 0;
163 } 165 }
164 GrGLuint texID; 166 GrGLuint texID;
165 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); 167 GR_GL_CALL(this->gl(), GenTextures(1, &texID));
166 if (!texID) { 168 if (!texID) {
167 return 0; 169 return 0;
168 } 170 }
169 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID)); 171 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID));
170 if (GR_GL_GET_ERROR(this->gl()) != GR_GL_NO_ERROR) { 172 if (GR_GL_GET_ERROR(this->gl()) != GR_GL_NO_ERROR) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 221
220 void SkANGLEGLContext::onPlatformSwapBuffers() const { 222 void SkANGLEGLContext::onPlatformSwapBuffers() const {
221 if (!eglSwapBuffers(fDisplay, fSurface)) { 223 if (!eglSwapBuffers(fDisplay, fSurface)) {
222 SkDebugf("Could not complete eglSwapBuffers.\n"); 224 SkDebugf("Could not complete eglSwapBuffers.\n");
223 } 225 }
224 } 226 }
225 227
226 GrGLFuncPtr SkANGLEGLContext::onPlatformGetProcAddress(const char* name) const { 228 GrGLFuncPtr SkANGLEGLContext::onPlatformGetProcAddress(const char* name) const {
227 return eglGetProcAddress(name); 229 return eglGetProcAddress(name);
228 } 230 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698