Title: [105233] trunk/Source/WebCore
- Revision
- 105233
- Author
- [email protected]
- Date
- 2012-01-17 19:24:38 -0800 (Tue, 17 Jan 2012)
Log Message
Clear 'm_size' of DrawingBuffer in the 'clear' function
https://bugs.webkit.org/show_bug.cgi?id=76239
Patch by Yongsheng Zhu <[email protected]> on 2012-01-17
Reviewed by Kenneth Russell.
Clear the resources of DrawingBuffer but don't clear 'm_size'. This makes
's_currentResourceUsePixels' is not calculated correctly.
* platform/graphics/gpu/DrawingBuffer.cpp:
(WebCore::DrawingBuffer::clear):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (105232 => 105233)
--- trunk/Source/WebCore/ChangeLog 2012-01-18 03:19:09 UTC (rev 105232)
+++ trunk/Source/WebCore/ChangeLog 2012-01-18 03:24:38 UTC (rev 105233)
@@ -1,3 +1,16 @@
+2012-01-17 Yongsheng Zhu <[email protected]>
+
+ Clear 'm_size' of DrawingBuffer in the 'clear' function
+ https://bugs.webkit.org/show_bug.cgi?id=76239
+
+ Reviewed by Kenneth Russell.
+
+ Clear the resources of DrawingBuffer but don't clear 'm_size'. This makes
+ 's_currentResourceUsePixels' is not calculated correctly.
+
+ * platform/graphics/gpu/DrawingBuffer.cpp:
+ (WebCore::DrawingBuffer::clear):
+
2012-01-17 Philip Rogers <[email protected]>
Fix getBBox for perpendicular paths
Modified: trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp (105232 => 105233)
--- trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp 2012-01-18 03:19:09 UTC (rev 105232)
+++ trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp 2012-01-18 03:24:38 UTC (rev 105233)
@@ -72,8 +72,10 @@
return;
m_context->makeContextCurrent();
- if (!m_size.isEmpty())
+ if (!m_size.isEmpty()) {
s_currentResourceUsePixels -= m_size.width() * m_size.height();
+ m_size = IntSize();
+ }
if (m_colorBuffer) {
m_context->deleteTexture(m_colorBuffer);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes