Index: include/gpu/gl/GrGLFunctions.h |
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h |
index 3fd912f222e236bf97fbde3b00a78aaf9b827b5c..4d0d6540cdac778ca32835001603c2fdec4dde6d 100644 |
--- a/include/gpu/gl/GrGLFunctions.h |
+++ b/include/gpu/gl/GrGLFunctions.h |
@@ -9,7 +9,9 @@ |
#ifndef GrGLFunctions_DEFINED |
#define GrGLFunctions_DEFINED |
+#include <functional> |
#include "GrGLTypes.h" |
+#include "../private/SkTLogic.h" |
extern "C" { |
@@ -352,4 +354,7 @@ typedef GrEGLImage (GR_GL_FUNCTION_TYPE* GrEGLCreateImageProc)(GrEGLDisplay dpy, |
typedef GrEGLBoolean (GR_GL_FUNCTION_TYPE* GrEGLDestroyImageProc)(GrEGLDisplay dpy, GrEGLImage image); |
} // extern "C" |
+template <typename GLPTR> using GrGLFunction = |
+ std::function<typename std::remove_pointer<GLPTR>::type>; |
+ |
#endif |