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

Unified Diff: ui/gl/wgl_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/wgl_api_unittest.cc
diff --git a/ui/gl/wgl_api_unittest.cc b/ui/gl/wgl_api_unittest.cc
index 65fed3241ff71746066eae3f12a20c7baf4be548..041d3dfaf9f1de54aa5f29a75982ad6551a86e43 100644
--- a/ui/gl/wgl_api_unittest.cc
+++ b/ui/gl/wgl_api_unittest.cc
@@ -25,8 +25,7 @@ class WGLApiTest : public testing::Test {
g_driver_wgl.fn.wglGetExtensionsStringARBFn = &FakeGetExtensionsStringARB;
g_driver_wgl.fn.wglGetExtensionsStringEXTFn = &FakeGetExtensionsStringEXT;
SetGLImplementation(kGLImplementationDesktopGL);
- SetGLGetProcAddressProc(
- static_cast<GLGetProcAddressProc>(&FakeGLGetProcAddress));
+ SetGLGetProcAddressProc(&FakeGLGetProcAddress);
}
void TearDown() override {
@@ -65,7 +64,7 @@ class WGLApiTest : public testing::Test {
stringify(wglGetExtensionsStringEXT()));
}
- static void* GL_BINDING_CALL FakeGLGetProcAddress(const char *proc) {
+ static GLFunctionPointerType WINAPI FakeGLGetProcAddress(const char* proc) {
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698