Title: [185372] trunk/Source/WebCore
Revision
185372
Author
[email protected]
Date
2015-06-09 12:29:57 -0700 (Tue, 09 Jun 2015)

Log Message

Fix unused private field warning in GraphicsLayerUpdater.h
https://bugs.webkit.org/show_bug.cgi?id=145757

Reviewed by Darin Adler.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (185371 => 185372)


--- trunk/Source/WebCore/ChangeLog	2015-06-09 19:29:31 UTC (rev 185371)
+++ trunk/Source/WebCore/ChangeLog	2015-06-09 19:29:57 UTC (rev 185372)
@@ -1,3 +1,14 @@
+2015-06-09  Csaba Osztrogonác  <[email protected]>
+
+        Fix unused private field warning in GraphicsLayerUpdater.h
+        https://bugs.webkit.org/show_bug.cgi?id=145757
+
+        Reviewed by Darin Adler.
+
+        * platform/graphics/GraphicsLayerUpdater.cpp:
+        (WebCore::GraphicsLayerUpdater::GraphicsLayerUpdater):
+        * platform/graphics/GraphicsLayerUpdater.h:
+
 2015-06-09  Yusuke Suzuki  <[email protected]>
 
         Crash when passing Symbol to NPAPI plugin objects

Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayerUpdater.cpp (185371 => 185372)


--- trunk/Source/WebCore/platform/graphics/GraphicsLayerUpdater.cpp	2015-06-09 19:29:31 UTC (rev 185371)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayerUpdater.cpp	2015-06-09 19:29:57 UTC (rev 185372)
@@ -31,17 +31,19 @@
 
 namespace WebCore {
 
+#if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
 GraphicsLayerUpdater::GraphicsLayerUpdater(GraphicsLayerUpdaterClient& client, PlatformDisplayID displayID)
     : m_client(client)
 {
-#if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
     DisplayRefreshMonitorManager::sharedManager().registerClient(*this);
     DisplayRefreshMonitorManager::sharedManager().windowScreenDidChange(displayID, *this);
     DisplayRefreshMonitorManager::sharedManager().scheduleAnimation(*this);
+}
 #else
-    UNUSED_PARAM(displayID);
+GraphicsLayerUpdater::GraphicsLayerUpdater(GraphicsLayerUpdaterClient&, PlatformDisplayID)
+{
+}
 #endif
-}
 
 GraphicsLayerUpdater::~GraphicsLayerUpdater()
 {

Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayerUpdater.h (185371 => 185372)


--- trunk/Source/WebCore/platform/graphics/GraphicsLayerUpdater.h	2015-06-09 19:29:31 UTC (rev 185371)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayerUpdater.h	2015-06-09 19:29:57 UTC (rev 185372)
@@ -61,9 +61,8 @@
 private:
 #if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
     virtual void displayRefreshFired(double timestamp) override;
-#endif
-
     GraphicsLayerUpdaterClient& m_client;
+#endif
     bool m_scheduled { false };
 };
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to