OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <EGL/egl.h> | 5 #include <EGL/egl.h> |
6 #include <EGL/eglext.h> | 6 #include <EGL/eglext.h> |
7 #include <gdk/gdkx.h> | 7 #include <gdk/gdkx.h> |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 extern "C" { | 10 extern "C" { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 return static_cast<EGLImageKHR>(NULL); | 112 return static_cast<EGLImageKHR>(NULL); |
113 } | 113 } |
114 | 114 |
115 void GTFDestroyEGLImage(EGLImageKHR image) { | 115 void GTFDestroyEGLImage(EGLImageKHR image) { |
116 PFNEGLDESTROYIMAGEKHRPROC egl_destroy_image_khr_; | 116 PFNEGLDESTROYIMAGEKHRPROC egl_destroy_image_khr_; |
117 egl_destroy_image_khr_ = reinterpret_cast<PFNEGLDESTROYIMAGEKHRPROC> | 117 egl_destroy_image_khr_ = reinterpret_cast<PFNEGLDESTROYIMAGEKHRPROC> |
118 (eglGetProcAddress("eglDestroyImageKHR")); | 118 (eglGetProcAddress("eglDestroyImageKHR")); |
119 | 119 |
120 egl_destroy_image_khr_(eglGetCurrentDisplay(), image); | 120 egl_destroy_image_khr_(eglGetCurrentDisplay(), image); |
121 } | 121 } |
OLD | NEW |