Title: [113456] trunk/Source/WebCore
Revision
113456
Author
[email protected]
Date
2012-04-06 10:37:35 -0700 (Fri, 06 Apr 2012)

Log Message

[chromium] Draw debug borders for tiles on layers with skipsDraw
https://bugs.webkit.org/show_bug.cgi?id=83352

Patch by Dana Jansens <[email protected]> on 2012-04-06
Reviewed by Adrienne Walker.

The tiles are given the same color as other missing tiles.

* platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
(WebCore::CCTiledLayerImpl::appendQuads):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (113455 => 113456)


--- trunk/Source/WebCore/ChangeLog	2012-04-06 17:35:52 UTC (rev 113455)
+++ trunk/Source/WebCore/ChangeLog	2012-04-06 17:37:35 UTC (rev 113456)
@@ -1,3 +1,15 @@
+2012-04-06  Dana Jansens  <[email protected]>
+
+        [chromium] Draw debug borders for tiles on layers with skipsDraw
+        https://bugs.webkit.org/show_bug.cgi?id=83352
+
+        Reviewed by Adrienne Walker.
+
+        The tiles are given the same color as other missing tiles.
+
+        * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
+        (WebCore::CCTiledLayerImpl::appendQuads):
+
 2012-04-06  Rob Buis  <[email protected]>
 
         Fix cast-align warnings in JSC

Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp (113455 => 113456)


--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp	2012-04-06 17:35:52 UTC (rev 113455)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp	2012-04-06 17:37:35 UTC (rev 113456)
@@ -139,9 +139,6 @@
 {
     const IntRect& layerRect = visibleLayerRect();
 
-    if (m_skipsDraw)
-        return;
-
     appendGutterQuads(quadList, sharedQuadState);
 
     if (!m_tiler || m_tiler->hasEmptyBounds() || layerRect.isEmpty())
@@ -157,7 +154,7 @@
                 IntRect tileRect = m_tiler->tileBounds(i, j);
                 Color borderColor;
 
-                if (!tile || !tile->textureId())
+                if (m_skipsDraw || !tile || !tile->textureId())
                     borderColor = Color(debugTileBorderMissingTileColorRed, debugTileBorderMissingTileColorGreen, debugTileBorderMissingTileColorBlue, debugTileBorderAlpha);
                 else
                     borderColor = Color(debugTileBorderColorRed, debugTileBorderColorGreen, debugTileBorderColorBlue, debugTileBorderAlpha);
@@ -166,6 +163,9 @@
         }
     }
 
+    if (m_skipsDraw)
+        return;
+
     for (int j = top; j <= bottom; ++j) {
         for (int i = left; i <= right; ++i) {
             DrawableTile* tile = tileAt(i, j);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to