Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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:


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)

patch-layer-invalidate-listener.patch (18.9 KB ) - added by michael2402 8 years ago.

Download all attachments as: .zip

Change History (4)

by michael2402, 8 years ago

comment:1 by Don-vip, 8 years ago

Milestone: 16.03

comment:2 by Don-vip, 8 years ago

Resolution: fixed
Status: newclosed

In 10031/josm:

fix #12654 - Add layer invalidation listener (patch by michael2402)

comment:3 by Don-vip, 8 years ago

Milestone: 16.0316.04

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.