Commit 5ba37427 by Tobin Ehlis Committed by Commit Bot

Move PlatformMethods constructor to header

Move the default constructor for PlatformMethods struct from Platform.cpp into Platform.h. This allows other projects to include Platform.h and use PlatformMethods without having to link against ANGLE Bug: angleproject:2528 Change-Id: Icb4b9e149e78e9ec7be85804d711d8a2216e61c4 Reviewed-on: https://chromium-review.googlesource.com/1115212 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 87637b13
...@@ -266,7 +266,7 @@ inline void DefaultCacheProgram(PlatformMethods *platform, ...@@ -266,7 +266,7 @@ inline void DefaultCacheProgram(PlatformMethods *platform,
struct ANGLE_PLATFORM_EXPORT PlatformMethods struct ANGLE_PLATFORM_EXPORT PlatformMethods
{ {
PlatformMethods(); PlatformMethods() {}
// User data pointer for any implementation specific members. Put it at the start of the // User data pointer for any implementation specific members. Put it at the start of the
// platform structure so it doesn't become overwritten if one version of the platform // platform structure so it doesn't become overwritten if one version of the platform
......
...@@ -18,10 +18,6 @@ namespace ...@@ -18,10 +18,6 @@ namespace
angle::PlatformMethods g_platformMethods; angle::PlatformMethods g_platformMethods;
} // anonymous namespace } // anonymous namespace
angle::PlatformMethods::PlatformMethods()
{
}
angle::PlatformMethods *ANGLEPlatformCurrent() angle::PlatformMethods *ANGLEPlatformCurrent()
{ {
return &g_platformMethods; return &g_platformMethods;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment