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

Side by Side Diff: src/gpu/gl/glx/SkNativeGLContext_glx.cpp

Issue 604853003: Add support for EGL on linux (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 "gl/SkNativeGLContext.h" 8 #include "gl/SkNativeGLContext.h"
9 9
10 #include <GL/glu.h> 10 #include <GL/glu.h>
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 void SkNativeGLContext::makeCurrent() const { 280 void SkNativeGLContext::makeCurrent() const {
281 if (!glXMakeCurrent(fDisplay, fGlxPixmap, fContext)) { 281 if (!glXMakeCurrent(fDisplay, fGlxPixmap, fContext)) {
282 SkDebugf("Could not set the context.\n"); 282 SkDebugf("Could not set the context.\n");
283 } 283 }
284 } 284 }
285 285
286 void SkNativeGLContext::swapBuffers() const { 286 void SkNativeGLContext::swapBuffers() const {
287 glXSwapBuffers(fDisplay, fGlxPixmap); 287 glXSwapBuffers(fDisplay, fGlxPixmap);
288 } 288 }
OLDNEW
« no previous file with comments | « src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp ('k') | src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698