#12654 closed enhancement (fixed)
[Patch] Add layer invalidation listener
| Reported by: | michael2402 | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 16.04 |
| Component: | Core mappaint | Version: | |
| Keywords: | Cc: |
Description
This patch allows you to register a listener on every layer that gets notified whenever that layer needs to be repainted.
This is intended to replace those MapView#repaint() calls. After changing to this system, we might use more efficient caching of the individual layers to allow e.g. the background to be re-rendered without requiring to render the osm data layers again.
It makes code cleaner as well and removes a dependency on the MapView.
I only replaced a hand full of repaint() calls, we might replace more of them in the future.
Attachments (1)
Change History (4)
by , 10 years ago
| Attachment: | patch-layer-invalidate-listener.patch added |
|---|
comment:1 by , 10 years ago
| Milestone: | → 16.03 |
|---|
comment:2 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |



In 10031/josm: