Changeset 105233 in webkit


Ignore:
Timestamp:
Jan 17, 2012 7:24:38 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Clear 'm_size' of DrawingBuffer in the 'clear' function
https://bugs.webkit.org/show_bug.cgi?id=76239

Patch by Yongsheng Zhu <yongsheng.zhu@intel.com> 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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r105231 r105233  
     12012-01-17  Yongsheng Zhu  <yongsheng.zhu@intel.com>
     2
     3        Clear 'm_size' of DrawingBuffer in the 'clear' function
     4        https://bugs.webkit.org/show_bug.cgi?id=76239
     5
     6        Reviewed by Kenneth Russell.
     7       
     8        Clear the resources of DrawingBuffer but don't clear 'm_size'. This makes
     9        's_currentResourceUsePixels' is not calculated correctly.
     10
     11        * platform/graphics/gpu/DrawingBuffer.cpp:
     12        (WebCore::DrawingBuffer::clear):
     13
    1142012-01-17  Philip Rogers  <pdr@google.com>
    215
  • trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp

    r101181 r105233  
    7373
    7474    m_context->makeContextCurrent();
    75     if (!m_size.isEmpty())
     75    if (!m_size.isEmpty()) {
    7676        s_currentResourceUsePixels -= m_size.width() * m_size.height();
     77        m_size = IntSize();
     78    }
    7779
    7880    if (m_colorBuffer) {
Note: See TracChangeset for help on using the changeset viewer.