kopia lustrzana https://github.com/ge0rg/aprsdroid
benchmark the Map draw() call
rodzic
fa66dc90ae
commit
353e8be4ab
|
@ -113,6 +113,7 @@ class StationOverlay(icons : Drawable, context : Context, db : StorageDatabase)
|
||||||
|
|
||||||
override def draw(c : Canvas, m : MapView, shadow : Boolean) : Unit = {
|
override def draw(c : Canvas, m : MapView, shadow : Boolean) : Unit = {
|
||||||
if (shadow) return;
|
if (shadow) return;
|
||||||
|
Benchmark("draw") {
|
||||||
|
|
||||||
val textPaint = new Paint()
|
val textPaint = new Paint()
|
||||||
textPaint.setARGB(255, 200, 255, 200)
|
textPaint.setARGB(255, 200, 255, 200)
|
||||||
|
@ -158,6 +159,7 @@ class StationOverlay(icons : Drawable, context : Context, db : StorageDatabase)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def loadDb() {
|
def loadDb() {
|
||||||
stations.clear()
|
stations.clear()
|
||||||
|
|
Ładowanie…
Reference in New Issue