Changeset 81317 in webkit


Ignore:
Timestamp:
Mar 16, 2011 8:56:13 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-03-16 John Bauman <jbauman@chromium.org>

Reviewed by James Robinson.

texImage2D gets old contents of canvas
https://bugs.webkit.org/show_bug.cgi?id=56414

  • platform/chromium/test_expectations.txt: premultiply-alpha test now works

2011-03-16 John Bauman <jbauman@chromium.org>

Reviewed by James Robinson.

texImage2D gets old contents of canvas
https://bugs.webkit.org/show_bug.cgi?id=56414

Always update the canvas contents in copiedImage, as there's no reason
to ask for an out-of-date image.

  • html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::copiedImage):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r81315 r81317  
     12011-03-16  John Bauman  <jbauman@chromium.org>
     2
     3        Reviewed by James Robinson.
     4
     5        texImage2D gets old contents of canvas
     6        https://bugs.webkit.org/show_bug.cgi?id=56414
     7
     8        * platform/chromium/test_expectations.txt: premultiply-alpha test now works
     9
    1102011-03-16  Sam Weinig  <sam@webkit.org>
    211
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r81284 r81317  
    23532353BUGWEBGL GPU WIN DEBUG SLOW : fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html = PASS
    23542354BUGWEBGL GPU WIN DEBUG SLOW : fast/canvas/webgl/index-validation-with-resized-buffer.html = PASS
    2355 
    2356 BUGWK56414 : fast/canvas/webgl/premultiplyalpha-test.html = TEXT
    23572355
    23582356// These were not fixed by the Mesa 7.9 upgrade. Need to investigate.
  • trunk/Source/WebCore/ChangeLog

    r81316 r81317  
     12011-03-16  John Bauman  <jbauman@chromium.org>
     2
     3        Reviewed by James Robinson.
     4
     5        texImage2D gets old contents of canvas
     6        https://bugs.webkit.org/show_bug.cgi?id=56414
     7
     8        Always update the canvas contents in copiedImage, as there's no reason
     9        to ask for an out-of-date image.
     10
     11        * html/HTMLCanvasElement.cpp:
     12        (WebCore::HTMLCanvasElement::copiedImage):
     13
    1142011-03-16  Adam Barth  <abarth@webkit.org>
    215
  • trunk/Source/WebCore/html/HTMLCanvasElement.cpp

    r81213 r81317  
    462462{
    463463    if (!m_copiedImage && buffer()) {
    464         if (m_context) {
    465             // If we're not rendering to the ImageBuffer, copy the rendering results to it.
    466             if (!m_context->paintsIntoCanvasBuffer())
    467                 m_context->paintRenderingResultsToCanvas();
    468         }
     464        if (m_context)
     465            m_context->paintRenderingResultsToCanvas();
    469466        m_copiedImage = buffer()->copyImage();
    470467    }
Note: See TracChangeset for help on using the changeset viewer.