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

Unified Diff: src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp

Issue 604853003: Add support for EGL on linux (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/glx/SkNativeGLContext_glx.cpp ('k') | src/gpu/gl/unix/SkNativeGLContext_unix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
diff --git a/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp b/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
deleted file mode 100644
index 19eec7e8acea66ea78ddce2d7102c2432a6c10e2..0000000000000000000000000000000000000000
--- a/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#include "gl/GrGLInterface.h"
-#include "gl/GrGLAssembleInterface.h"
-#include "gl/GrGLUtil.h"
-
-#include <GL/glx.h>
-
-static GrGLFuncPtr glx_get(void* ctx, const char name[]) {
- SkASSERT(NULL == ctx);
- SkASSERT(glXGetCurrentContext());
- return glXGetProcAddress(reinterpret_cast<const GLubyte*>(name));
-}
-
-const GrGLInterface* GrGLCreateNativeInterface() {
- if (NULL == glXGetCurrentContext()) {
- return NULL;
- }
-
- return GrGLAssembleInterface(NULL, glx_get);
-}
« no previous file with comments | « src/gpu/gl/glx/SkNativeGLContext_glx.cpp ('k') | src/gpu/gl/unix/SkNativeGLContext_unix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698