Unused parameters on GraphicsLayerUpdater.cpp
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2012 13:35:21 +0000 (13:35 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2012 13:35:21 +0000 (13:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=101577

Patch by KyungTae Kim <ktf.kim@samsung.com> on 2012-11-08
Reviewed by Kentaro Hara.

The parameter 'displayID' is not used when !USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
Use UNUSED_PARAM macro for removing -Wunused-parameter warnings

* platform/graphics/GraphicsLayerUpdater.cpp:
(WebCore::GraphicsLayerUpdater::GraphicsLayerUpdater):
(WebCore::GraphicsLayerUpdater::screenDidChange):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/GraphicsLayerUpdater.cpp

index 1e55ac5..966cf6a 100644 (file)
@@ -1,3 +1,17 @@
+2012-11-08  KyungTae Kim  <ktf.kim@samsung.com>
+
+        Unused parameters on GraphicsLayerUpdater.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=101577
+
+        Reviewed by Kentaro Hara.
+
+        The parameter 'displayID' is not used when !USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
+        Use UNUSED_PARAM macro for removing -Wunused-parameter warnings
+
+        * platform/graphics/GraphicsLayerUpdater.cpp:
+        (WebCore::GraphicsLayerUpdater::GraphicsLayerUpdater):
+        (WebCore::GraphicsLayerUpdater::screenDidChange):
+
 2012-11-08  Alexander Pavlov  <apavlov@chromium.org>
 
         Web Inspector: Add option to disable rulers (Elements panel)
index 2eb6569..b3c9436 100644 (file)
@@ -41,6 +41,8 @@ GraphicsLayerUpdater::GraphicsLayerUpdater(GraphicsLayerUpdaterClient* client, P
     DisplayRefreshMonitorManager::sharedManager()->registerClient(this);
     DisplayRefreshMonitorManager::sharedManager()->windowScreenDidChange(displayID, this);
     DisplayRefreshMonitorManager::sharedManager()->scheduleAnimation(this);
+#else
+    UNUSED_PARAM(displayID);
 #endif
 }
 
@@ -64,6 +66,8 @@ void GraphicsLayerUpdater::screenDidChange(PlatformDisplayID displayID)
 {
 #if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
     DisplayRefreshMonitorManager::sharedManager()->windowScreenDidChange(displayID, this);
+#else
+    UNUSED_PARAM(displayID);
 #endif
 }