Title: [125961] trunk/Source/WebCore
Revision
125961
Author
[email protected]
Date
2012-08-17 19:06:57 -0700 (Fri, 17 Aug 2012)

Log Message

[chromium] Fix random noise around text in FPS HUD.
https://bugs.webkit.org/show_bug.cgi?id=94400

Reviewed by James Robinson.

This was the result of an incorrect clear operation on the canvas
that stores the font atlas used by the HUD.

* platform/graphics/chromium/CompositorHUDFontAtlas.cpp:
(WebCore::CompositorHUDFontAtlas::generateFontAtlas):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (125960 => 125961)


--- trunk/Source/WebCore/ChangeLog	2012-08-18 02:00:40 UTC (rev 125960)
+++ trunk/Source/WebCore/ChangeLog	2012-08-18 02:06:57 UTC (rev 125961)
@@ -1,3 +1,17 @@
+2012-08-17  Vangelis Kokkevis  <[email protected]>
+
+        [chromium] Fix random noise around text in FPS HUD.
+        https://bugs.webkit.org/show_bug.cgi?id=94400
+
+        Reviewed by James Robinson.
+
+        This was the result of an incorrect clear operation on the canvas
+        that stores the font atlas used by the HUD.
+
+
+        * platform/graphics/chromium/CompositorHUDFontAtlas.cpp:
+        (WebCore::CompositorHUDFontAtlas::generateFontAtlas):
+
 2012-08-17  Dirk Pranke  <[email protected]>
 
         Unreviewed, rolling out r125897.

Modified: trunk/Source/WebCore/platform/graphics/chromium/CompositorHUDFontAtlas.cpp (125960 => 125961)


--- trunk/Source/WebCore/platform/graphics/chromium/CompositorHUDFontAtlas.cpp	2012-08-18 02:00:40 UTC (rev 125960)
+++ trunk/Source/WebCore/platform/graphics/chromium/CompositorHUDFontAtlas.cpp	2012-08-18 02:06:57 UTC (rev 125961)
@@ -65,7 +65,7 @@
 
     // Clear the entire texture atlas to transparent before drawing fonts.
     atlasContext.setFillColor(Color(0, 0, 0, 0), ColorSpaceDeviceRGB);
-    atlasContext.fillRect(FloatRect(0, 0, ATLAS_SIZE, ATLAS_SIZE));
+    atlasContext.clearRect(FloatRect(0, 0, ATLAS_SIZE, ATLAS_SIZE));
 
     // FIXME: monospace font does not work as expected.
     FontDescription fontDescription;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to