2011-02-10 Naoki Takano <takano.naoki@gmail.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Feb 2011 06:38:37 +0000 (06:38 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Feb 2011 06:38:37 +0000 (06:38 +0000)
commit403efba7b5bb977bf667239f757e03d3ce1566ef
treea2399a0b0044afdf9f1eab03f8e503d96bf3b9f2
parentb52aea0303206f863f6178dea97ef1e40e38e5b0
2011-02-10  Naoki Takano  <takano.naoki@gmail.com>

        Reviewed by James Robinson.

        [Chromium] Layout Test canvas/philip/tests/2d.composite.globalAlpha.fill.html with --accelerated-2d-canvas.
        https://bugs.webkit.org/show_bug.cgi?id=53857

        This fix is for 2d.composite.globalAlpha.fill.html with --accelerated-2d-canvas. Add 2d.composite.globalAlpha.fillPath.html as a new test for the combination with globalAlpha and fillPath().

        * fast/canvas/2d.composite.globalAlpha.fillPath-expected.txt: Added.
        * fast/canvas/2d.composite.globalAlpha.fillPath.html: Added.
2011-02-10  Naoki Takano  <takano.naoki@gmail.com>

        Reviewed by James Robinson.

        [Chromium] Layout Test canvas/philip/tests/2d.composite.globalAlpha.fill.html with --accelerated-2d-canvas.
        https://bugs.webkit.org/show_bug.cgi?id=53857

        globalAlpha is not applied to fillPath() and fillRect().

        Test: fast/canvas/2d.composite.globalAlpha.fillPath.html and canvas/philip/tests/2d.composite.globalAlpha.fill.html with --accelerated-2d-canvas.

        * platform/graphics/chromium/GLES2Canvas.cpp:
        (WebCore::GLES2Canvas::State::applyAlpha): Append a new function to apply global alpha when fillRect() and fillPath() are called.
        (WebCore::GLES2Canvas::fillRect): Global alpha is applied to m_fillColor.
        (WebCore::GLES2Canvas::fillPath): Global alpha is applied to m_fillColor.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@78315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/2d.composite.globalAlpha.fillPath-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/2d.composite.globalAlpha.fillPath.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/GLES2Canvas.cpp