diff options
author | John Reck <jreck@google.com> | 2012-08-01 16:44:39 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-08-01 16:44:39 -0700 |
commit | fca8b82bf07877fea8c7bef46a4b3f0b58db7a36 (patch) | |
tree | 5c40ec79ca51026a974c68d8fb9e0b37d7bae0ae /Source/WebCore/platform/graphics/android/context | |
parent | 95e32410ffa4f84bc6b140640731bd44c50cee88 (diff) | |
download | external_webkit-fca8b82bf07877fea8c7bef46a4b3f0b58db7a36.zip external_webkit-fca8b82bf07877fea8c7bef46a4b3f0b58db7a36.tar.gz external_webkit-fca8b82bf07877fea8c7bef46a4b3f0b58db7a36.tar.bz2 |
Tweak shadow settings
Change-Id: I88dff91a9840c4705c9153cf03d3c6951fcee02a
Diffstat (limited to 'Source/WebCore/platform/graphics/android/context')
-rw-r--r-- | Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.cpp b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.cpp index f9d7f21..367abda 100644 --- a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.cpp +++ b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.cpp @@ -161,7 +161,7 @@ bool PlatformGraphicsContext::State::setupShadowPaint(SkPaint* paint, SkPoint* o // HTMLCanvasElement have shadows ignore transforms set. This // allows us to distinguish between CSS and Canvas shadows which // have different rendering specifications. - uint32_t flags = SkBlurMaskFilter::kHighQuality_BlurFlag; + uint32_t flags = SkBlurMaskFilter::kNone_BlurFlag; if (shadowsIgnoreTransforms) { offset->fY = -offset->fY; flags |= SkBlurMaskFilter::kIgnoreTransform_BlurFlag; @@ -169,7 +169,7 @@ bool PlatformGraphicsContext::State::setupShadowPaint(SkPaint* paint, SkPoint* o if (shadow.blur > 0) { paint->setMaskFilter(SkBlurMaskFilter::Create(shadow.blur, - SkBlurMaskFilter::kNormal_BlurStyle))->unref(); + SkBlurMaskFilter::kNormal_BlurStyle, flags))->unref(); } return SkColorGetA(shadow.color) && (shadow.blur || shadow.dx || shadow.dy); } @@ -395,7 +395,7 @@ void PlatformGraphicsContext::setupPaintCommon(SkPaint* paint) const // allows us to distinguish between CSS and Canvas shadows which // have different rendering specifications. SkScalar dy = m_state->shadow.dy; - uint32_t flags = SkBlurDrawLooper::kHighQuality_BlurFlag; + uint32_t flags = SkBlurDrawLooper::kNone_BlurFlag; if (shadowsIgnoreTransforms()) { dy = -dy; flags |= SkBlurDrawLooper::kIgnoreTransform_BlurFlag; |