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

Unified Diff: ui/gl/gl_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/gl_api_unittest.cc
diff --git a/ui/gl/gl_api_unittest.cc b/ui/gl/gl_api_unittest.cc
index 23c3075b1939659598bddcafdd115ef93c31670c..6f274b467347a3b49bec37f2f4bb2ff05ce35ecd 100644
--- a/ui/gl/gl_api_unittest.cc
+++ b/ui/gl/gl_api_unittest.cc
@@ -51,8 +51,9 @@ class GLApiTest : public testing::Test {
static_cast<GLGetProcAddressProc>(&FakeGLGetProcAddress));
}
- static void* GL_BINDING_CALL FakeGLGetProcAddress(const char *proc) {
- return reinterpret_cast<void*>(0x1);
+ static GLFunctionPointerType GL_BINDING_CALL
+ FakeGLGetProcAddress(const char* proc) {
+ return reinterpret_cast<GLFunctionPointerType>(0x1);
}
void TearDown() override {

Powered by Google App Engine
This is Rietveld 408576698