bug 1250485 - make the ctor for GLXLibrary constexpr r=jrmuizel
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Mon, 22 Feb 2016 13:54:24 -0500
changeset 324396 e77b8212fd9df56e29fce6ad26f2103a6d0649b7
parent 324395 42f4ce691c603a3242fc891f3607b0b0ab2d5ac9
child 324397 5388023bea228c19228b20852727dc23218c0d6d
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1250485
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1250485 - make the ctor for GLXLibrary constexpr r=jrmuizel
gfx/gl/GLXLibrary.h
--- a/gfx/gl/GLXLibrary.h
+++ b/gfx/gl/GLXLibrary.h
@@ -27,17 +27,17 @@ struct PRLibrary;
 class gfxASurface;
 
 namespace mozilla {
 namespace gl {
 
 class GLXLibrary
 {
 public:
-    GLXLibrary()
+    MOZ_CONSTEXPR GLXLibrary()
     : xDestroyContextInternal(nullptr)
     , xMakeCurrentInternal(nullptr)
     , xGetCurrentContextInternal(nullptr)
     , xGetProcAddressInternal(nullptr)
     , xChooseFBConfigInternal(nullptr)
     , xGetFBConfigsInternal(nullptr)
     , xCreateNewContextInternal(nullptr)
     , xGetFBConfigAttribInternal(nullptr)