keep the whole LocalGlyphRasterizer class to prevent constructor minification

This commit is contained in:
Łukasz Paczos
2019-12-16 19:01:46 +01:00
parent 7b903283a4
commit e274d6e28e
2 changed files with 6 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ import android.support.annotation.WorkerThread;
* LocalGlyphRasterizer is the Android-specific platform implementation used
* by the portable local_glyph_rasterizer.hpp
*/
@Keep
public class LocalGlyphRasterizer {
private final Bitmap bitmap;
@NonNull
@@ -49,7 +50,6 @@ public class LocalGlyphRasterizer {
* @return Return a {@link Bitmap} to be displayed in the requested tile.
*/
@WorkerThread
@Keep
protected Bitmap drawGlyphBitmap(String fontFamily, boolean bold, char glyphID) {
paint.setTypeface(Typeface.create(fontFamily, bold ? Typeface.BOLD : Typeface.NORMAL));
canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);