Changeset 19508 in josm for trunk/src/org
- Timestamp:
- 2026-02-11T09:15:31+01:00 (41 hours ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/vectortile/mapbox/MapboxVectorCachedTileLoader.java
r17867 r19508 77 77 return DEFAULT_DOWNLOAD_JOB_DISPATCHER; 78 78 } 79 80 public static void shutdown() { 81 DEFAULT_DOWNLOAD_JOB_DISPATCHER.shutdownNow(); 82 } 79 83 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledTiledMapRenderer.java
r19220 r19508 52 52 private int zoom; 53 53 private Consumer<TileZXY> notifier; 54 private final ExecutorService worker;55 54 56 55 /** … … 66 65 public StyledTiledMapRenderer(Graphics2D g, NavigatableComponent nc, boolean isInactiveMode) { 67 66 super(g, nc, isInactiveMode); 68 this.worker = MainApplication.worker;69 67 } 70 68 … … 76 74 return; 77 75 } 78 final Executor worker = this.worker;79 76 final BufferedImage tempImage; 80 77 final Graphics2D tempG2d; … … 132 129 // FIXME figure out how to make this thread safe? Probably not necessary, since UI isn't blocked, but it would be a nice to have 133 130 TileLoader loader = new TileLoader(data, tile, tileSize, new ArrayList<>()); 134 worker.execute(loader); 131 MainApplication.worker.execute(loader); 135 132 if (tImg == null) { 136 133 this.cache.put(tile, new ImageCache(null, loader, false)); … … 162 159 // Force another render pass if there may be more tiles to render 163 160 if (submittedTile <= 0) { 164 worker.execute(nc::invalidate); 161 MainApplication.worker.execute(nc::invalidate); 165 162 } 166 163 final double percentDrawn = 100 * painted / (double) toRender.size();
Note:
See TracChangeset
for help on using the changeset viewer.
