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

Unified Diff: include/gpu/gl/GrGLFunctions.h

Issue 1674823002: Replace GrGLInterface's function pointers with std::functions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase and address comment Created 4 years, 10 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 | « include/gpu/gl/GrGLExtensions.h ('k') | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/GrGLFunctions.h
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h
index ad59ec0c00b702200e87f7d0934ade1b840cf6ae..118269bc2f0c50a72cb3e425ad2d9680b0c8d1c1 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"
bungeman-skia 2016/02/08 20:22:52 I imagine this include was added in order to repla
bsalomon 2016/02/09 15:21:38 Oops, I did that change locally and then never upl
extern "C" {
@@ -351,4 +353,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
« no previous file with comments | « include/gpu/gl/GrGLExtensions.h ('k') | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698