commit | 70aa79ffa14350059105d1b69a7ca712d17989ec | [log] [tgz] |
---|---|---|
author | Kevin <kevhan@google.com> | Thu May 02 11:14:01 2019 -0700 |
committer | Kevin <kevhan@google.com> | Thu May 02 11:14:01 2019 -0700 |
tree | ad2dcdde6e295f6908eaf49ccb9891713153b58a | |
parent | d16f87f52d969578613abb3f17ed960ff1fefc56 [diff] |
Anti-alias thumbnail corners to look smoother Thumbnail corners should be anti-aliased so that they look smoother and less rough. Bug: 131779031 Test: Manual, go to recents and see corners Change-Id: I49a299671ec37f56b6eebe2dd2eb71790e8cb2b4
diff --git a/go/quickstep/src/com/android/quickstep/ThumbnailDrawable.java b/go/quickstep/src/com/android/quickstep/ThumbnailDrawable.java index a8cc0a1..922e68a 100644 --- a/go/quickstep/src/com/android/quickstep/ThumbnailDrawable.java +++ b/go/quickstep/src/com/android/quickstep/ThumbnailDrawable.java
@@ -57,6 +57,7 @@ mCornerRadius = (int) res.getDimension(R.dimen.task_thumbnail_corner_radius); mShader = new BitmapShader(mThumbnailData.thumbnail, CLAMP, CLAMP); mPaint.setShader(mShader); + mPaint.setAntiAlias(true); updateMatrix(); }