Changeset 80514 in webkit


Ignore:
Timestamp:
Mar 7, 2011 5:37:00 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-03-07 Justin Novosad <junov@chromium.org>

Reviewed by Kenneth Russell.

Fix for blurs behind bitmap images in Chromium, and boosting
shadow blur quality
Bug URLs:

https://bugs.webkit.org/show_bug.cgi?id=55410
https://bugs.webkit.org/show_bug.cgi?id=55506

No new tests. Covered by existing layout tests.

  • platform/graphics/skia/GraphicsContextSkia.cpp: (WebCore::GraphicsContext::setPlatformShadow): Turn on high quality shadows and fix shadow color
  • platform/graphics/skia/ImageSkia.cpp: (WebCore::paintSkBitmap): Propagate the draw looper from context to painter
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r80512 r80514  
     12011-03-07  Justin Novosad  <junov@chromium.org>
     2
     3        Reviewed by Kenneth Russell.
     4
     5        Fix for blurs behind bitmap images in Chromium, and boosting
     6        shadow blur quality
     7        Bug URLs:
     8                https://bugs.webkit.org/show_bug.cgi?id=55410
     9                https://bugs.webkit.org/show_bug.cgi?id=55506
     10
     11        No new tests. Covered by existing layout tests.
     12
     13        * platform/graphics/skia/GraphicsContextSkia.cpp:
     14        (WebCore::GraphicsContext::setPlatformShadow): Turn on high quality shadows and fix shadow color
     15        * platform/graphics/skia/ImageSkia.cpp:
     16        (WebCore::paintSkBitmap): Propagate the draw looper from context to painter
     17
    1182011-03-07  Andreas Kling  <kling@webkit.org>
    219
  • trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

    r79437 r80514  
    10361036    double blur = blurFloat;
    10371037
    1038     SkBlurDrawLooper::BlurFlags blurFlags = SkBlurDrawLooper::kNone_BlurFlag;
     1038    uint32_t blurFlags = SkBlurDrawLooper::kHighQuality_BlurFlag |
     1039        SkBlurDrawLooper::kOverrideColor_BlurFlag;
    10391040
    10401041    if (m_state.shadowsIgnoreTransforms)  {
     
    10431044        // Transforms. So with this flag set, we know this state is associated
    10441045        // with a CanvasRenderingContext.
    1045         blurFlags = SkBlurDrawLooper::kIgnoreTransform_BlurFlag;
     1046        blurFlags |= SkBlurDrawLooper::kIgnoreTransform_BlurFlag;
    10461047       
    10471048        // CG uses natural orientation for Y axis, but the HTML5 canvas spec
  • trunk/Source/WebCore/platform/graphics/skia/ImageSkia.cpp

    r75469 r80514  
    261261    paint.setFilterBitmap(true);
    262262    paint.setAlpha(platformContext->getNormalizedAlpha());
     263    paint.setLooper(platformContext->getDrawLooper());
    263264
    264265    skia::PlatformCanvas* canvas = platformContext->canvas();
Note: See TracChangeset for help on using the changeset viewer.