summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-05-29 20:41:06 -0700
committerJohn Reck <jreck@google.com>2012-05-29 20:44:15 -0700
commitd3bac753aa885a5dd91c4e608cc6c770d3d80daf (patch)
tree418eedd3ae784bb6e86a028365667595768605f8 /Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.h
parent86ba073431c8ddf2e9d1f2d5d4f89157dd32ec33 (diff)
downloadexternal_webkit-d3bac753aa885a5dd91c4e608cc6c770d3d80daf.zip
external_webkit-d3bac753aa885a5dd91c4e608cc6c770d3d80daf.tar.gz
external_webkit-d3bac753aa885a5dd91c4e608cc6c770d3d80daf.tar.bz2
Don't use setupPaintFill for drawBitmap
Bug: 6505013 When drawing a bitmap, don't use setupPaintFill(). The reason is that setupPaintFill will use the fillColor to influence the alpha set on the SkPaint. However, that fillColor does not apply to the bitmap, and can have the result of applying the wrong alpha (as the alpha set is fillColor alpha * graphicsContext's alpha). Instead, set the alpha on the paint directly and use setupPaintCommon Change-Id: Ib8d7ef494593a2896e6e3ed03c00d8d4d4b7232a
Diffstat (limited to 'Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.h')
-rw-r--r--Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.h b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.h
index 601de0f..1916014 100644
--- a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.h
+++ b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContext.h
@@ -59,6 +59,7 @@ public:
// State values
virtual void setAlpha(float alpha);
+ int getNormalizedAlpha() const;
virtual void setCompositeOperation(CompositeOperator op);
virtual void setFillColor(const Color& c);
virtual void setFillShader(SkShader* fillShader);