Title: [86788] trunk/Source/WebCore
Revision
86788
Author
[email protected]
Date
2011-05-18 14:16:15 -0700 (Wed, 18 May 2011)

Log Message

2011-05-18  Adrienne Walker  <[email protected]>

        Reviewed by James Robinson.

        [chromium] Check HUD texture reserve status before using texture
        https://bugs.webkit.org/show_bug.cgi?id=61082

        This only changes behavior behind a flag, so shouldn't impact any tests.

        * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
        (WebCore::CCHeadsUpDisplay::draw):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (86787 => 86788)


--- trunk/Source/WebCore/ChangeLog	2011-05-18 21:04:20 UTC (rev 86787)
+++ trunk/Source/WebCore/ChangeLog	2011-05-18 21:16:15 UTC (rev 86788)
@@ -1,3 +1,15 @@
+2011-05-18  Adrienne Walker  <[email protected]>
+
+        Reviewed by James Robinson.
+
+        [chromium] Check HUD texture reserve status before using texture
+        https://bugs.webkit.org/show_bug.cgi?id=61082
+
+        This only changes behavior behind a flag, so shouldn't impact any tests.
+
+        * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
+        (WebCore::CCHeadsUpDisplay::draw):
+
 2011-05-18  Oliver Hunt  <[email protected]>
 
         Reviewed by Sam Weinig.

Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp (86787 => 86788)


--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp	2011-05-18 21:04:20 UTC (rev 86787)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp	2011-05-18 21:16:15 UTC (rev 86788)
@@ -93,7 +93,8 @@
         hudSize.setHeight(128);
     }
 
-    m_hudTexture->reserve(hudSize, GraphicsContext3D::RGBA);
+    if (!m_hudTexture->reserve(hudSize, GraphicsContext3D::RGBA))
+        return;
 
     // Render pixels into the texture.
     PlatformCanvas canvas;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to