Title: [106160] trunk/Source
- Revision
- 106160
- Author
- [email protected]
- Date
- 2012-01-27 15:23:51 -0800 (Fri, 27 Jan 2012)
Log Message
[chromium] Don't ever skip drawing the non-composited content layer
https://bugs.webkit.org/show_bug.cgi?id=77236
Reviewed by James Robinson.
Source/WebCore:
Since the root layer has its textures potentially reserved last in a
front-to-back iteration, don't ever skip drawing it if we can't
reserve its textures. Instead, checkerboard and draw background color
quads instead to fill the viewport. This behavior is tied to the
backgroundFillsViewport setting.
* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::TiledLayerChromium::prepareToUpdateTiles):
* platform/graphics/chromium/cc/CCLayerTilingData.cpp:
(WebCore::CCLayerTilingData::reset):
* platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
(WebCore::CCTiledLayerImpl::appendQuads):
Source/WebKit/chromium:
This is a tiny fix. If the non-composited content layer never gets
painted, then the background color never gets set and it is just
opaque black.
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (106159 => 106160)
--- trunk/Source/WebCore/ChangeLog 2012-01-27 23:22:11 UTC (rev 106159)
+++ trunk/Source/WebCore/ChangeLog 2012-01-27 23:23:51 UTC (rev 106160)
@@ -1,3 +1,23 @@
+2012-01-27 Adrienne Walker <[email protected]>
+
+ [chromium] Don't ever skip drawing the non-composited content layer
+ https://bugs.webkit.org/show_bug.cgi?id=77236
+
+ Reviewed by James Robinson.
+
+ Since the root layer has its textures potentially reserved last in a
+ front-to-back iteration, don't ever skip drawing it if we can't
+ reserve its textures. Instead, checkerboard and draw background color
+ quads instead to fill the viewport. This behavior is tied to the
+ backgroundFillsViewport setting.
+
+ * platform/graphics/chromium/TiledLayerChromium.cpp:
+ (WebCore::TiledLayerChromium::prepareToUpdateTiles):
+ * platform/graphics/chromium/cc/CCLayerTilingData.cpp:
+ (WebCore::CCLayerTilingData::reset):
+ * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
+ (WebCore::CCTiledLayerImpl::appendQuads):
+
2012-01-27 Martin Robinson <[email protected]>
Fix a warning in the GTK+ build.
Modified: trunk/Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp (106159 => 106160)
--- trunk/Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp 2012-01-27 23:22:11 UTC (rev 106159)
+++ trunk/Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp 2012-01-27 23:23:51 UTC (rev 106160)
@@ -392,7 +392,10 @@
if (!tile->managedTexture()->reserve(m_tiler->tileSize(), m_textureFormat)) {
m_skipsIdlePaint = true;
if (!idle) {
- m_skipsDraw = true;
+ // If the background covers the viewport, always draw this
+ // layer so that checkerboarded tiles will still draw.
+ if (!backgroundCoversViewport())
+ m_skipsDraw = true;
cleanupResources();
}
return;
Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTilingData.cpp (106159 => 106160)
--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTilingData.cpp 2012-01-27 23:22:11 UTC (rev 106159)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTilingData.cpp 2012-01-27 23:23:51 UTC (rev 106160)
@@ -96,7 +96,6 @@
void CCLayerTilingData::reset()
{
m_tiles.clear();
- m_tilingData.setTotalSize(0, 0);
}
void CCLayerTilingData::layerRectToTileIndices(const IntRect& layerRect, int& left, int& top, int& right, int& bottom) const
Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp (106159 => 106160)
--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp 2012-01-27 23:22:11 UTC (rev 106159)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp 2012-01-27 23:23:51 UTC (rev 106160)
@@ -127,7 +127,7 @@
appendGutterQuads(quadList, sharedQuadState);
- if (!m_tiler || m_tiler->isEmpty() || layerRect.isEmpty())
+ if (!m_tiler || !m_tiler->numTiles() || layerRect.isEmpty())
return;
int left, top, right, bottom;
Modified: trunk/Source/WebKit/chromium/ChangeLog (106159 => 106160)
--- trunk/Source/WebKit/chromium/ChangeLog 2012-01-27 23:22:11 UTC (rev 106159)
+++ trunk/Source/WebKit/chromium/ChangeLog 2012-01-27 23:23:51 UTC (rev 106160)
@@ -1,3 +1,17 @@
+2012-01-27 Adrienne Walker <[email protected]>
+
+ [chromium] Don't ever skip drawing the non-composited content layer
+ https://bugs.webkit.org/show_bug.cgi?id=77236
+
+ Reviewed by James Robinson.
+
+ This is a tiny fix. If the non-composited content layer never gets
+ painted, then the background color never gets set and it is just
+ opaque black.
+
+ * src/WebViewImpl.cpp:
+ (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
+
2012-01-27 Fady Samuel <[email protected]>
Rename shouldLayoutFixedElementsRelativeToFrame and make it a setting
Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (106159 => 106160)
--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp 2012-01-27 23:22:11 UTC (rev 106159)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp 2012-01-27 23:23:51 UTC (rev 106160)
@@ -3009,6 +3009,10 @@
m_nonCompositedContentHost = NonCompositedContentHost::create(WebViewImplContentPainter::create(this));
m_nonCompositedContentHost->setShowDebugBorders(page()->settings()->showDebugBorders());
+
+ if (page() && page()->mainFrame()->view())
+ m_nonCompositedContentHost->setBackgroundColor(page()->mainFrame()->view()->documentBackgroundColor());
+
m_layerTreeHost = CCLayerTreeHost::create(this, ccSettings);
if (m_layerTreeHost) {
m_layerTreeHost->setHaveWheelEventHandlers(m_haveWheelEventHandlers);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes