Changeset 74001 in webkit


Ignore:
Timestamp:
Dec 13, 2010 9:53:03 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-12-13 Mike Lawther <mikelawther@chromium.org>

Reviewed by Daniel Bates.

[skia] ignore transform for canvas shadows
https://bugs.webkit.org/show_bug.cgi?id=50437

  • platform/graphics/skia/GraphicsContextSkia.cpp: (WebCore::GraphicsContext::setPlatformShadow):
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r73994 r74001  
    23912391BUGWK45991 LINUX WIN : canvas/philip/tests/2d.shadow.pattern.basic.html = TEXT
    23922392BUGWK45991 LINUX WIN : canvas/philip/tests/2d.shadow.pattern.transparent.2.html = TEXT
    2393 BUGWK45991 LINUX WIN : canvas/philip/tests/2d.shadow.transform.2.html = TEXT
    23942393BUGWK45991 LINUX WIN : canvas/philip/tests/2d.transformation.setTransform.skewed.html = TEXT
    23952394BUGWK45991 LINUX WIN : canvas/philip/tests/2d.transformation.transform.skewed.html = TEXT
     
    30333032BUGWK50112 WIN LINUX : fast/canvas/canvas-createPattern-fillRect-shadow.html = TEXT
    30343033
    3035 BUGCR64647 WIN LINUX : fast/canvas/canvas-scale-fillRect-shadow.html = TEXT
    3036 BUGCR64647 WIN LINUX : fast/canvas/canvas-scale-fillPath-shadow.html = TEXT
    30373034BUGCR64647 WIN LINUX : fast/canvas/canvas-scale-strokePath-shadow.html = TEXT
    30383035BUGCR64647 WIN LINUX : fast/canvas/canvas-scale-drawImage-shadow.html = TEXT
  • trunk/WebCore/ChangeLog

    r73999 r74001  
     12010-12-13  Mike Lawther  <mikelawther@chromium.org>
     2
     3        Reviewed by Daniel Bates.
     4
     5        [skia] ignore transform for canvas shadows
     6        https://bugs.webkit.org/show_bug.cgi?id=50437
     7
     8        * platform/graphics/skia/GraphicsContextSkia.cpp:
     9        (WebCore::GraphicsContext::setPlatformShadow):
     10
    1112010-12-13  Dai Mikurube  <dmikurube@google.com>
    212
  • trunk/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

    r73729 r74001  
    10671067    double blur = blurFloat;
    10681068
    1069     // TODO(tc): This still does not address the issue that shadows
    1070     // within canvas elements should ignore transforms.
     1069    SkBlurDrawLooper::BlurFlags blurFlags = SkBlurDrawLooper::kNone_BlurFlag;
     1070
    10711071    if (m_state.shadowsIgnoreTransforms)  {
    10721072        // Currently only the GraphicsContext associated with the
     
    10741074        // Transforms. So with this flag set, we know this state is associated
    10751075        // with a CanvasRenderingContext.
     1076        blurFlags = SkBlurDrawLooper::kIgnoreTransform_BlurFlag;
     1077       
    10761078        // CG uses natural orientation for Y axis, but the HTML5 canvas spec
    10771079        // does not.
     
    10891091    // TODO(tc): Should we have a max value for the blur?  CG clamps at 1000.0
    10901092    // for perf reasons.
    1091     SkDrawLooper* dl = new SkBlurDrawLooper(blur / 2, width, height, c);
     1093    SkDrawLooper* dl = new SkBlurDrawLooper(blur / 2, width, height, c, blurFlags);
    10921094    platformContext()->setDrawLooper(dl);
    10931095    dl->unref();
Note: See TracChangeset for help on using the changeset viewer.