summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map_context.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Thread GLObjectStore through to Holder objectsJohn Firebaugh2016-02-181-3/+1
| | | | | | This eliminates the reliance on ThreadContext to provide GLObjectStore, and statically enforces that GL cleanup functions happen only when GLObjectStore::performCleanup is called. With the elimination of the Map thread, this becomes important because there may be multiple GLObjectStore's per-thread, and Map will need to ensure that the correct context is active when calling GLObjectStore::performCleanup.
* [core] Remove ThreadContext::getFileSource; instead thread FileSource throughJohn Firebaugh2016-02-181-6/+5
|
* [gl] Moved TexturePool to gl namespaceBruno de Oliveira Abinader2016-02-181-2/+3
|
* [gl] Moved GLObjectStore to gl namespaceBruno de Oliveira Abinader2016-02-181-1/+1
|
* [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-101-6/+3
|
* [core] Remove TransformState::getNormalizedZoomJohn Firebaugh2016-02-021-1/+1
| | | | It calculated the same value as TransformState::getZoom.
* [core] Rationalize Resource initializationJohn Firebaugh2016-01-291-1/+1
|
* [core] Use notModified to check for style changeJohn Firebaugh2016-01-221-5/+7
|
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-1/+1
|
* [core] use stale stylesKonstantin Käfer2016-01-151-9/+6
| | | | This adds support for using cached styles that are stale. They're treated like changing styles; when the refreshed style changed compared to the one we've already had, we're swapping out the entire style, which might cause a slight flicker.
* [core] Get rid of ::unref() for Timer and AsyncTaskThiago Marcos P. Santos2016-01-091-3/+0
| | | | | Not need, legacy from libuv. The RunLoop keep the main loop running until is explicitly no longer needed.
* [core] unify URL prefix detection (asset:// and mapbox://)Konstantin Käfer2016-01-081-1/+3
|
* [core] Rationalize error handling for resource loadingJohn Firebaugh2015-12-231-6/+3
| | | | | | | | | * Standardize on std::exception_ptr as the error representation (fixes #2854). * Don't format textual strings at the error source; pass on the constituent data via observer method parameters instead. * Use the null object pattern to simplify observer notification code. * Further refactoring for ResourceLoading tests.
* [ios, android] Add methods to remove a custom layerJohn Firebaugh2015-12-171-0/+6
|
* [android] Custom layer bindingsJohn Firebaugh2015-12-161-0/+2
|
* 2210: Sprites can be removed / updated correctlyRomain Quidet2015-12-151-1/+6
|
* [core] Custom layersJohn Firebaugh2015-12-091-0/+5
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-1/+1
|
* [core] Fix std::move() misuse that disables copy elisionKonstantin Käfer2015-12-031-1/+1
|
* [core] Map::setSprite ⇢ Map::addAnnotationIconJohn Firebaugh2015-12-011-7/+7
| | | | Fixes #3084
* [core] Privatize layers and sourcesJohn Firebaugh2015-12-011-7/+2
|
* [core] Use a separate atlas and store for annotation spritesAdam Hunter2015-12-011-15/+4
| | | | Fixes #1488
* [core] Move MapData storage to MapContextJohn Firebaugh2015-12-011-2/+4
| | | | | This allows MapData members to hold GL resources which must be released on the MapContext thread -- necessary for the following commit.
* [core] Use AsyncTask on the MapContextThiago Marcos P. Santos2015-12-011-15/+14
|
* [core] Rewrite image handlingJohn Firebaugh2015-11-251-7/+6
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* [core] Followup fix to #3037John Firebaugh2015-11-191-1/+1
| | | | | | | | | The previous fix resulted in annotations sometimes never being added. This would happen if, during the execution of MapContext::update where Update::Annotations was set, the style itself was loaded but some of its subresources (sprite or sources) were not. #3082 is a follow up issue to make MapContext::update less error-prone.
* [core] Avoid calling AnnotationManager::updateStyle until the style is loadedJohn Firebaugh2015-11-181-1/+1
| | | Fixes #3037
* [core] Avoid extra copy of TransformState in Painter::renderBruno de Oliveira Abinader2015-11-181-2/+2
| | | | | | In MapContext thread, TransformState gets updated from main thread to MapContext and Painter can safely reference MapContext's TransformState instead of copying it upon each Painter::render call.
* [core] Pass a value to response callback, not a referenceJohn Firebaugh2015-11-161-1/+1
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-161-1/+1
| | | | This should be abstracted by util::RunLoop
* [core] Merge Sprite into SpriteStoreJohn Firebaugh2015-11-121-1/+1
|
* [core] Reorganize sprite related filesJohn Firebaugh2015-11-121-3/+3
|
* Revert "[core] only update the render order array when there are changes to ↵Konstantin Käfer2015-11-091-15/+1
| | | | | | tiles" This reverts commit ec1a58d8effb3292ec46cca3fcad17218fa8c016 and 177372b83657cda9696ff68fd5cbb872b87ce324.
* [core] Update::Classes already implies repaintBruno de Oliveira Abinader2015-11-091-3/+1
|
* [core] clear the render order when we're loading a new styleKonstantin Käfer2015-11-061-0/+6
| | | | regression introduced by #2908
* [core] only update the render order array when there are changes to tilesKonstantin Käfer2015-11-051-1/+9
|
* [core] move retry logic to DefaultFileSourceKonstantin Käfer2015-11-021-6/+9
|
* [node] Output debug logs when a render test times outJohn Firebaugh2015-10-281-0/+11
|
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-261-1/+1
|
* [core] add support for stale responsesKonstantin Käfer2015-10-261-0/+4
| | | | We're now returning stale responses from cache. Those responses will have the `stale` flag set to true. Currently, all requesters in the core code discard stale responses, and cancel the request immediately after they got a non-stale response.
* [core] use RAII-style lifetime tracking of Request objectsKonstantin Käfer2015-10-261-12/+3
|
* [core] all requests have to be canceled explicitly nowKonstantin Käfer2015-10-261-2/+3
| | | | By not automatically destroying Request objects after the result has been delivered, we are making sure that we can potentially fire the callback multiple times without adverse effects. This means that you have to hold on to the result of fs->request(), can explicitly cancel it if you don't want to be notified of data changes anymore. Not doing so will monitor the request indefinitely and will prevent the app from exiting.
* [core] Removed time param from Painter::renderBruno de Oliveira Abinader2015-10-211-1/+1
| | | | Animation time can be obtained directly from MapData.
* [core] Moved Painter::setup() to Painter ctorBruno de Oliveira Abinader2015-10-211-5/+1
|
* [core] Remove redundant setDebug() from PainterBruno de Oliveira Abinader2015-10-211-1/+0
| | | | This information can be obtained directly from MapData.
* [core] only check for mapbox:// at the start of the failed request's URLJason Wray2015-10-211-1/+1
|
* [core] Improve error message when style is not found or is incompatibleJason Wray2015-10-211-0/+2
| | | | | | | Attempting to use a Mapbox-hosted incompatible raster map/style with GL would throw a simple 404, without any indication of the real issue. Fix #1724, ref #1841
* [core] MapContext setStyle{URL,JSON} should ignore redundant callsBruno de Oliveira Abinader2015-10-161-0/+8
| | | | | | Our engine should be robust enough to ignore redundant calls and avoid triggering a whole style update if the style URL and/or JSON are the same.
* [core] [android] Fix InfoWindow topOffsetPixels adjustment when switching stylesLeith Bade2015-10-161-8/+5
| | | | | | | Fixes #2599 Make getTopOffsetPixelsForAnnotationSymbol private Also implements MapChangeWillStartLoadingMap, MapChangeDidFinishLoadingMap Paritally implements #630
* [core] MapContext setStyle{URL,JSON} should ignore redundant callsBruno de Oliveira Abinader2015-10-141-0/+8
| | | | | | Our engine should be robust enough to ignore redundant calls and avoid triggering a whole style update if the style URL and/or JSON are the same.