Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 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:

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)

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

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by michael2402

comment:1 Changed 3 years ago by Don-vip

Milestone: 16.03

comment:2 Changed 3 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 10031/josm:

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

comment:3 Changed 3 years ago by Don-vip

Milestone: 16.0316.04

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.