summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-08-01 18:23:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-08-01 18:23:54 -0700
commitf0ad26a937ebc7c889abf512e2ec83914ccbf01f (patch)
tree25d4052772e52e7fc37718e516519bb06860c450
parent7b227cf2e1a760763e73bb4ceccd3125cd120559 (diff)
parentfca8b82bf07877fea8c7bef46a4b3f0b58db7a36 (diff)
downloadexternal_webkit-f0ad26a937ebc7c889abf512e2ec83914ccbf01f.zip
external_webkit-f0ad26a937ebc7c889abf512e2ec83914ccbf01f.tar.gz
external_webkit-f0ad26a937ebc7c889abf512e2ec83914ccbf01f.tar.bz2
Merge "Tweak shadow settings" into jb-mr1-dev
-rw-r--r--Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.cpp6
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;