summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map_context.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Convert MapContext to Map::Impl; eliminate indirectionJohn Firebaugh2016-04-151-316/+0
|
* [core] Clean up ThreadContext vestigesJohn Firebaugh2016-04-151-11/+0
|
* [core] Render from the main threadJohn Firebaugh2016-04-141-27/+6
| | | | Do not create a thread for the MapContext anymore.
* Merge branch 'release-ios-3.2.0-android-4.0.0'John Firebaugh2016-03-301-5/+0
|\
| * [core] Localize and simplify state for MapChangeDidFinishLoadingMap eventJohn Firebaugh2016-03-301-5/+0
| | | | | | | | Only Map needs to track this state, and it can simply be set when beginning to load a style and reset when finished.
* | [core] Update time point in map context on every updateBruno de Oliveira Abinader2016-03-241-6/+7
| | | | | | | | | | | | | | | | Previous behavior prevented view from notifying when map was fully loaded, because the style sources relies on a future time point for checking if their tiles are updated. This was first caught only in still mode, but also happens in continuous mode for platforms that rely on View::notifyMapChange for updating the view.
* | [core] Get rid of MapData::{get,set}animationTimeBruno de Oliveira Abinader2016-03-181-8/+11
| |
* | [core] Remove default transition durationBruno de Oliveira Abinader2016-03-181-1/+1
| |
* | [core] s/Update::Zoom/Update/RecalculateStyle/Bruno de Oliveira Abinader2016-03-181-3/+3
| |
* | [core] Added user-defined transition properties when modifying classesBruno de Oliveira Abinader2016-03-181-6/+7
| |
* | [core] Cleaned up duplicate code in MapContextBruno de Oliveira Abinader2016-03-181-27/+16
| |
* | [core] Move class handling to StyleBruno de Oliveira Abinader2016-03-181-0/+28
|/
* Fixes an issue where rendering without Vertex Array Objects would cause a ↵Henry Dooley2016-03-041-3/+3
| | | | massive slowdown in the driver on Nvidia hardware. Unconfirmed if the issue is present on other GPUs.
* [core] Fix style cascade loop when transitioningBruno de Oliveira Abinader2016-03-031-1/+1
|
* [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
|