2011-04-11 Stephen White <senorblanco@chromium.org>
authorsenorblanco@chromium.org <senorblanco@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Apr 2011 12:57:03 +0000 (12:57 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Apr 2011 12:57:03 +0000 (12:57 +0000)
commit06e64d2d90b559270f07f1538b5862518c91e7c2
tree9464e08fabac65e271d06c00d60a67ade5db5e18
parentd433081b39da94ff3d691ee1e7e5665f4ca8d98e
2011-04-11  Stephen White  <senorblanco@chromium.org>

        Reviewed by James Robinson.

        [chromium] GPU-accelerated canvas-to-canvas drawImage is incorrect.
        https://bugs.webkit.org/show_bug.cgi?id=58258

        When one accelerated canvas is drawn to another via drawImage(), if the
        prior call in the source canvas was non-accelerated, the
        hardware canvas is not up-to-date, and the results will be incorrect.
        Fixed by calling prepareForHardwareDraw() on the source context.

        Test: fast/canvas/canvas-to-canvas.html

        * platform/graphics/skia/ImageBufferSkia.cpp:
        (WebCore::ImageBuffer::draw):
2011-04-11  Stephen White  <senorblanco@chromium.org>

        Reviewed by James Robinson.

        [chromium] Accelerated canvas-to-canvas drawImage() is incorrect.
        https://bugs.webkit.org/show_bug.cgi?id=58258

        Add a new test to cover canvas-to-canvas drawImage() after a
        non-accelerated (strokeRect()) call.

        * fast/canvas/canvas-to-canvas-expected.txt: Added.
        * fast/canvas/canvas-to-canvas.html: Added.
        * fast/canvas/script-tests/canvas-to-canvas.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/canvas-to-canvas-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/canvas-to-canvas.html [new file with mode: 0644]
LayoutTests/fast/canvas/script-tests/canvas-to-canvas.js [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp