Asset updates
- Change how default widget previews look (5509429)
- Improve antialiasing in portal assets
Change-Id: I9993aec46a9a9ab8a732b4fc150120c935523f02
diff --git a/src/com/android/launcher2/HolographicOutlineHelper.java b/src/com/android/launcher2/HolographicOutlineHelper.java
index 748d89e..1faaeef 100644
--- a/src/com/android/launcher2/HolographicOutlineHelper.java
+++ b/src/com/android/launcher2/HolographicOutlineHelper.java
@@ -122,10 +122,18 @@
*/
void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color,
int outlineColor, int thickness) {
+ applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, mAlphaClipPaint,
+ thickness);
+ }
+ void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color,
+ int outlineColor, Paint alphaClipPaint, int thickness) {
// We start by removing most of the alpha channel so as to ignore shadows, and
// other types of partial transparency when defining the shape of the object
- Bitmap glowShape = srcDst.extractAlpha(mAlphaClipPaint, mTempOffset);
+ if (alphaClipPaint == null) {
+ alphaClipPaint = mAlphaClipPaint;
+ }
+ Bitmap glowShape = srcDst.extractAlpha(alphaClipPaint, mTempOffset);
// calculate the outer blur first
BlurMaskFilter outerBlurMaskFilter;
@@ -217,6 +225,12 @@
}
void applyMediumExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color,
+ int outlineColor, Paint alphaClipPaint) {
+ applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, alphaClipPaint,
+ MEDIUM);
+ }
+
+ void applyMediumExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color,
int outlineColor) {
applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, MEDIUM);
}