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

Unified Diff: include/gpu/gl/GrGLExtensions.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 | « no previous file | include/gpu/gl/GrGLFunctions.h » ('j') | include/gpu/gl/GrGLFunctions.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/GrGLExtensions.h
diff --git a/include/gpu/gl/GrGLExtensions.h b/include/gpu/gl/GrGLExtensions.h
index d64a268a46be24d107bde46e4593251b07ea6791..fe3187057c95b4e145b3d29c2e8a1fe478fac87a 100644
--- a/include/gpu/gl/GrGLExtensions.h
+++ b/include/gpu/gl/GrGLExtensions.h
@@ -39,10 +39,10 @@ public:
* NULL if on desktop GL with version 3.0 or higher. Otherwise it will fail.
*/
bool init(GrGLStandard standard,
- GrGLGetStringProc getString,
- GrGLGetStringiProc getStringi,
- GrGLGetIntegervProc getIntegerv,
- GrEGLQueryStringProc queryString = nullptr,
+ GrGLFunction<GrGLGetStringProc> getString,
+ GrGLFunction<GrGLGetStringiProc> getStringi,
+ GrGLFunction<GrGLGetIntegervProc> getIntegerv,
+ GrGLFunction<GrEGLQueryStringProc> queryString = nullptr,
GrEGLDisplay eglDisplay = nullptr);
bool isInitialized() const { return fInitialized; }
« no previous file with comments | « no previous file | include/gpu/gl/GrGLFunctions.h » ('j') | include/gpu/gl/GrGLFunctions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698