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

Unified Diff: ui/gl/glx_api_unittest.cc

Issue 2588263005: Change GLGetProcAddress typedef to function returning function pointer (Closed)
Patch Set: fix cast Created 4 years 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
Index: ui/gl/glx_api_unittest.cc
diff --git a/ui/gl/glx_api_unittest.cc b/ui/gl/glx_api_unittest.cc
index 16f50f4af874e1be2c32079878dc5ec1bd409950..c36c725922823e2fb3ca0da5c27399ca0ebd08cf 100644
--- a/ui/gl/glx_api_unittest.cc
+++ b/ui/gl/glx_api_unittest.cc
@@ -57,9 +57,11 @@ class GLXApiTest : public testing::Test {
return static_cast<GLXContext>(nullptr);
}
- static void* GL_BINDING_CALL FakeGLGetProcAddress(const char *proc) {
+ static GLFunctionPointerType GL_BINDING_CALL
+ FakeGLGetProcAddress(const char* proc) {
if (!strcmp("glXCreateContextAttribsARB", proc)) {
- return reinterpret_cast<void *>(&FakeCreateContextAttribsARB);
+ return reinterpret_cast<GLFunctionPointerType>(
+ &FakeCreateContextAttribsARB);
}
return NULL;
}
« ui/gl/gl_implementation.h ('K') | « ui/gl/gl_mock.h ('k') | ui/gl/wgl_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698