Changeset 76658 in webkit


Ignore:
Timestamp:
Jan 25, 2011 6:13:46 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-25 Mike Reed <reed@google.com>

Reviewed by James Robinson.

DrawingBufer::reset() today checks if the new size is the same as its
m_size, and if so, returns immediately. This does not match the
semantics of <canvas>, which wants to clear its contents anytime the
size is specified.
https://bugs.webkit.org/show_bug.cgi?id=53149

Test: Covered by existing <canvas> tests using gpu.

  • platform/graphics/chromium/DrawingBufferChromium.cpp: (WebCore::DrawingBuffer::DrawingBuffer):
  • platform/graphics/gpu/DrawingBuffer.cpp: (WebCore::DrawingBuffer::reset):
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r76652 r76658  
     12011-01-25  Mike Reed  <reed@google.com>
     2
     3        Reviewed by James Robinson.
     4
     5        DrawingBufer::reset() today checks if the new size is the same as its
     6        m_size, and if so, returns immediately. This does not match the
     7        semantics of <canvas>, which wants to clear its contents anytime the
     8        size is specified.
     9        https://bugs.webkit.org/show_bug.cgi?id=53149
     10
     11        Test: Covered by existing <canvas> tests using gpu.
     12
     13        * platform/graphics/chromium/DrawingBufferChromium.cpp:
     14        (WebCore::DrawingBuffer::DrawingBuffer):
     15        * platform/graphics/gpu/DrawingBuffer.cpp:
     16        (WebCore::DrawingBuffer::reset):
     17
    1182011-01-25  Cris Neckar  <cdn@chromium.org>
    219
  • trunk/Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp

    r76235 r76658  
    7373                             bool packedDepthStencilExtensionSupported)
    7474    : m_context(context)
    75     , m_size(-1, -1)
     75    , m_size(size)
    7676    , m_multisampleExtensionSupported(multisampleExtensionSupported)
    7777    , m_packedDepthStencilExtensionSupported(packedDepthStencilExtensionSupported)
  • trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp

    r76600 r76658  
    146146void DrawingBuffer::reset(const IntSize& newSize)
    147147{
    148     if (m_size == newSize)
    149         return;
    150148    m_size = newSize;
    151149
Note: See TracChangeset for help on using the changeset viewer.