Title: [87119] trunk/Source/WebKit2
- Revision
- 87119
- Author
- [email protected]
- Date
- 2011-05-23 19:08:46 -0700 (Mon, 23 May 2011)
Log Message
2011-05-23 Anders Carlsson <[email protected]>
Reviewed by Sam Weinig.
Cap painting to 30fps on Windows
https://bugs.webkit.org/show_bug.cgi?id=61337
<rdar://problem/9213388>
* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::displayTimerFired):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (87118 => 87119)
--- trunk/Source/WebKit2/ChangeLog 2011-05-24 02:04:01 UTC (rev 87118)
+++ trunk/Source/WebKit2/ChangeLog 2011-05-24 02:08:46 UTC (rev 87119)
@@ -1,3 +1,14 @@
+2011-05-23 Anders Carlsson <[email protected]>
+
+ Reviewed by Sam Weinig.
+
+ Cap painting to 30fps on Windows
+ https://bugs.webkit.org/show_bug.cgi?id=61337
+ <rdar://problem/9213388>
+
+ * WebProcess/WebPage/DrawingAreaImpl.cpp:
+ (WebKit::DrawingAreaImpl::displayTimerFired):
+
2011-05-23 Jeremy Noble <[email protected]>
Reviewed by Darin Adler.
Modified: trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp (87118 => 87119)
--- trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp 2011-05-24 02:04:01 UTC (rev 87118)
+++ trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp 2011-05-24 02:08:46 UTC (rev 87119)
@@ -496,8 +496,13 @@
void DrawingAreaImpl::displayTimerFired()
{
+#if PLATFORM(WIN)
+ // For now we'll cap painting on Windows to 30fps because painting is much slower there for some reason.
+ static const double minimumFrameInterval = 1.0 / 30.0;
+#else
static const double minimumFrameInterval = 1.0 / 60.0;
-
+#endif
+
double timeSinceLastDisplay = currentTime() - m_lastDisplayTime;
double timeUntilLayerTreeHostNeedsDisplay = m_layerTreeHost && m_layerTreeHost->participatesInDisplay() ? m_layerTreeHost->timeUntilNextDisplay() : 0;
double timeUntilNextDisplay = max(minimumFrameInterval - timeSinceLastDisplay, timeUntilLayerTreeHostNeedsDisplay);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes