GraphicsSurfaceGLX: remove redundant parameter from resolveGLMethods.
authorzeno.albisser@digia.com <zeno.albisser@digia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2012 17:07:34 +0000 (17:07 +0000)
committerzeno.albisser@digia.com <zeno.albisser@digia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2012 17:07:34 +0000 (17:07 +0000)
https://bugs.webkit.org/show_bug.cgi?id=103636

Reviewed by Kenneth Rohde Christiansen.

* platform/graphics/surfaces/qt/GraphicsSurfaceGLX.cpp:
(WebCore::resolveGLMethods):
(WebCore::GraphicsSurface::platformCreate):
(WebCore::GraphicsSurface::platformImport):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136135 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/surfaces/qt/GraphicsSurfaceGLX.cpp

index bf06631..25aa2d6 100644 (file)
@@ -1,3 +1,15 @@
+2012-11-29  Zeno Albisser  <zeno@webkit.org>
+
+        GraphicsSurfaceGLX: remove redundant parameter from resolveGLMethods.
+        https://bugs.webkit.org/show_bug.cgi?id=103636
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        * platform/graphics/surfaces/qt/GraphicsSurfaceGLX.cpp:
+        (WebCore::resolveGLMethods):
+        (WebCore::GraphicsSurface::platformCreate):
+        (WebCore::GraphicsSurface::platformImport):
+
 2012-11-29  Mike West  <mkwst@chromium.org>
 
         Typo in 'autofocus' sandboxing error message.
index 01b72fb..a8a430a 100644 (file)
@@ -384,7 +384,7 @@ private:
     bool m_isReceiver;
 };
 
-static bool resolveGLMethods(GraphicsSurfacePrivate*)
+static bool resolveGLMethods()
 {
     static bool resolved = false;
     if (resolved)
@@ -470,7 +470,7 @@ PassRefPtr<GraphicsSurface> GraphicsSurface::platformCreate(const IntSize& size,
     RefPtr<GraphicsSurface> surface = adoptRef(new GraphicsSurface(size, flags));
 
     surface->m_private = new GraphicsSurfacePrivate(shareContext);
-    if (!resolveGLMethods(surface->m_private))
+    if (!resolveGLMethods())
         return PassRefPtr<GraphicsSurface>();
 
     surface->m_platformSurface = surface->m_private->createSurface(size);
@@ -490,7 +490,7 @@ PassRefPtr<GraphicsSurface> GraphicsSurface::platformImport(const IntSize& size,
     surface->m_platformSurface = token.frontBufferHandle;
 
     surface->m_private = new GraphicsSurfacePrivate(surface->m_platformSurface);
-    if (!resolveGLMethods(surface->m_private))
+    if (!resolveGLMethods())
         return PassRefPtr<GraphicsSurface>();
 
     return surface;