- Revision
- 105961
- Author
- [email protected]
- Date
- 2012-01-25 19:08:22 -0800 (Wed, 25 Jan 2012)
Log Message
[chromium] Rollout r100751, this mechanism does not work and is very slow
https://bugs.webkit.org/show_bug.cgi?id=77055
Unreviewed rollout of http://trac.webkit.org/changeset/100751. The refresh rate mechanism is not implemented,
but it still triggers a very slow codepath and triggers races on some platforms.
Patch by James Robinson <[email protected]> on 2012-01-25
Source/WebCore:
* platform/PlatformScreen.h:
(WebCore):
* platform/chromium/PlatformScreenChromium.cpp:
* platform/chromium/PlatformSupport.h:
(PlatformSupport):
():
* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(WebCore::CCSettings::CCSettings):
(CCSettings):
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WebCore::CCThreadProxy::initializeImplOnImplThread):
Source/WebKit/chromium:
* public/WebScreenInfo.h:
(WebScreenInfo):
(WebKit::WebScreenInfo::WebScreenInfo):
* src/PlatformSupport.cpp:
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
* tests/CCLayerTreeHostTest.cpp:
(WTF::CCLayerTreeHostTest::runTest):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (105960 => 105961)
--- trunk/Source/WebCore/ChangeLog 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebCore/ChangeLog 2012-01-26 03:08:22 UTC (rev 105961)
@@ -1,3 +1,23 @@
+2012-01-25 James Robinson <[email protected]>
+
+ [chromium] Rollout r100751, this mechanism does not work and is very slow
+ https://bugs.webkit.org/show_bug.cgi?id=77055
+
+ Unreviewed rollout of http://trac.webkit.org/changeset/100751. The refresh rate mechanism is not implemented,
+ but it still triggers a very slow codepath and triggers races on some platforms.
+
+ * platform/PlatformScreen.h:
+ (WebCore):
+ * platform/chromium/PlatformScreenChromium.cpp:
+ * platform/chromium/PlatformSupport.h:
+ (PlatformSupport):
+ ():
+ * platform/graphics/chromium/cc/CCLayerTreeHost.h:
+ (WebCore::CCSettings::CCSettings):
+ (CCSettings):
+ * platform/graphics/chromium/cc/CCThreadProxy.cpp:
+ (WebCore::CCThreadProxy::initializeImplOnImplThread):
+
2012-01-25 Mark Rowe <[email protected]>
Reapply Daniel Bates's build fix from r105847 after the exact same issue was reintroduced in r105930.
Modified: trunk/Source/WebCore/platform/PlatformScreen.h (105960 => 105961)
--- trunk/Source/WebCore/platform/PlatformScreen.h 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebCore/platform/PlatformScreen.h 2012-01-26 03:08:22 UTC (rev 105961)
@@ -51,11 +51,6 @@
FloatRect screenRect(Widget*);
FloatRect screenAvailableRect(Widget*);
-#if PLATFORM(CHROMIUM)
- // Measured in frames per second. 0 if the refresh rate is unknown, or not applicable.
- double screenRefreshRate(Widget*);
-#endif
-
#if PLATFORM(MAC)
NSScreen *screenForWindow(NSWindow *);
Modified: trunk/Source/WebCore/platform/chromium/PlatformScreenChromium.cpp (105960 => 105961)
--- trunk/Source/WebCore/platform/chromium/PlatformScreenChromium.cpp 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebCore/platform/chromium/PlatformScreenChromium.cpp 2012-01-26 03:08:22 UTC (rev 105961)
@@ -71,9 +71,4 @@
return PlatformSupport::screenAvailableRect(widget);
}
-double screenRefreshRate(Widget* widget)
-{
- return PlatformSupport::screenRefreshRate(widget);
-}
-
} // namespace WebCore
Modified: trunk/Source/WebCore/platform/chromium/PlatformSupport.h (105960 => 105961)
--- trunk/Source/WebCore/platform/chromium/PlatformSupport.h 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebCore/platform/chromium/PlatformSupport.h 2012-01-26 03:08:22 UTC (rev 105961)
@@ -247,7 +247,6 @@
static bool screenIsMonochrome(Widget*);
static IntRect screenRect(Widget*);
static IntRect screenAvailableRect(Widget*);
- static double screenRefreshRate(Widget*);
// SharedTimers -------------------------------------------------------
static void setSharedTimerFiredFunction(void (*func)());
Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp (105960 => 105961)
--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp 2012-01-26 03:08:22 UTC (rev 105961)
@@ -533,8 +533,7 @@
TRACE_EVENT("CCThreadProxy::initializeImplOnImplThread", this, 0);
ASSERT(isImplThread());
m_layerTreeHostImpl = m_layerTreeHost->createLayerTreeHostImpl(this);
- ASSERT(m_layerTreeHostImpl->settings().refreshRate > 0);
- const double displayRefreshIntervalMs = 1000.0 / m_layerTreeHostImpl->settings().refreshRate;
+ const double displayRefreshIntervalMs = 1000.0 / 60.0;
OwnPtr<CCFrameRateController> frameRateController = adoptPtr(new CCFrameRateController(CCDelayBasedTimeSource::create(displayRefreshIntervalMs, CCProxy::implThread())));
m_schedulerOnImplThread = CCScheduler::create(this, frameRateController.release());
m_schedulerOnImplThread->setVisible(m_layerTreeHostImpl->visible());
Modified: trunk/Source/WebKit/chromium/ChangeLog (105960 => 105961)
--- trunk/Source/WebKit/chromium/ChangeLog 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebKit/chromium/ChangeLog 2012-01-26 03:08:22 UTC (rev 105961)
@@ -1,3 +1,20 @@
+2012-01-25 James Robinson <[email protected]>
+
+ [chromium] Rollout r100751, this mechanism does not work and is very slow
+ https://bugs.webkit.org/show_bug.cgi?id=77055
+
+ Unreviewed rollout of http://trac.webkit.org/changeset/100751. The refresh rate mechanism is not implemented,
+ but it still triggers a very slow codepath and triggers races on some platforms.
+
+ * public/WebScreenInfo.h:
+ (WebScreenInfo):
+ (WebKit::WebScreenInfo::WebScreenInfo):
+ * src/PlatformSupport.cpp:
+ * src/WebViewImpl.cpp:
+ (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
+ * tests/CCLayerTreeHostTest.cpp:
+ (WTF::CCLayerTreeHostTest::runTest):
+
2012-01-25 Eric Uhrhane <[email protected]>
Add full support for filesystem URLs.
Modified: trunk/Source/WebKit/chromium/public/WebScreenInfo.h (105960 => 105961)
--- trunk/Source/WebKit/chromium/public/WebScreenInfo.h 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebKit/chromium/public/WebScreenInfo.h 2012-01-26 03:08:22 UTC (rev 105961)
@@ -69,16 +69,12 @@
// some of the rectangle's coordinates may be negative values".
WebRect availableRect;
- // Measured in frames per second. 0 if the rate is unknown or not applicable.
- double refreshRate;
-
WebScreenInfo()
: horizontalDPI(0)
, verticalDPI(0)
, depth(0)
, depthPerComponent(0)
- , isMonochrome(false)
- , refreshRate(0) { }
+ , isMonochrome(false) { }
};
} // namespace WebKit
Modified: trunk/Source/WebKit/chromium/src/PlatformSupport.cpp (105960 => 105961)
--- trunk/Source/WebKit/chromium/src/PlatformSupport.cpp 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebKit/chromium/src/PlatformSupport.cpp 2012-01-26 03:08:22 UTC (rev 105961)
@@ -1108,14 +1108,6 @@
return client->screenInfo().availableRect;
}
-double PlatformSupport::screenRefreshRate(Widget* widget)
-{
- WebWidgetClient* client = toWebWidgetClient(widget);
- if (!client)
- return 0;
- return client->screenInfo().refreshRate;
-}
-
bool PlatformSupport::popupsAllowed(NPP npp)
{
// FIXME: Give the embedder a way to control this.
Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (105960 => 105961)
--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp 2012-01-26 03:08:22 UTC (rev 105961)
@@ -87,7 +87,6 @@
#include "PlatformContextSkia.h"
#include "PlatformKeyboardEvent.h"
#include "PlatformMouseEvent.h"
-#include "PlatformScreen.h"
#include "PlatformThemeChromiumLinux.h"
#include "PlatformWheelEvent.h"
#include "PopupContainer.h"
@@ -3010,19 +3009,12 @@
} else {
TRACE_EVENT("WebViewImpl::setIsAcceleratedCompositingActive(true)", this, 0);
- static const double defaultRefreshRate = 60.0;
-
WebCore::CCSettings ccSettings;
ccSettings.acceleratePainting = page()->settings()->acceleratedDrawingEnabled();
ccSettings.compositeOffscreen = settings()->compositeToTextureEnabled();
ccSettings.showFPSCounter = settings()->showFPSCounter();
ccSettings.showPlatformLayerTree = settings()->showPlatformLayerTree();
- ccSettings.refreshRate = screenRefreshRate(page()->mainFrame()->view());
- ASSERT(ccSettings.refreshRate >= 0);
- if (!ccSettings.refreshRate)
- ccSettings.refreshRate = defaultRefreshRate;
-
ccSettings.perTilePainting = page()->settings()->perTileDrawingEnabled();
ccSettings.partialSwapEnabled = page()->settings()->partialSwapEnabled();
Modified: trunk/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp (105960 => 105961)
--- trunk/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp 2012-01-26 02:27:32 UTC (rev 105960)
+++ trunk/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp 2012-01-26 03:08:22 UTC (rev 105961)
@@ -396,8 +396,6 @@
virtual void runTest(bool threaded)
{
- m_settings.refreshRate = 100.0;
-
if (threaded) {
m_webThread = adoptPtr(webKitPlatformSupport()->createThread("CCLayerTreeHostTest"));
WebCompositor::initialize(m_webThread.get());