summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] Use optional where SpriteAtlas return values might not existJohn Firebaugh2015-12-016-47/+55
| | | | Fixes #3162
* [core] Map::setSprite ⇢ Map::addAnnotationIconJohn Firebaugh2015-12-015-28/+23
| | | | Fixes #3084
* [core] Remove mutex from StyleJohn Firebaugh2015-12-012-4/+0
| | | | There's no cross-thread sharing to be protected here.
* [core] Privatize layers and sourcesJohn Firebaugh2015-12-015-124/+130
|
* [core] Don't share util::ptr<StyleLayer> across threadsJohn Firebaugh2015-12-0111-78/+81
|
* [core] Don't share Style& across threadsJohn Firebaugh2015-12-014-18/+26
|
* [core] Use a separate atlas and store for annotation spritesAdam Hunter2015-12-0113-26/+66
| | | | Fixes #1488
* [core] Move MapData storage to MapContextJohn Firebaugh2015-12-013-5/+13
| | | | | This allows MapData members to hold GL resources which must be released on the MapContext thread -- necessary for the following commit.
* [core] Introduce StyleUpdateParametersJohn Firebaugh2015-12-016-44/+91
|
* Partially revert "[core] Source should receive a ref to MapData just once"John Firebaugh2015-12-018-34/+21
| | | | This partially reverts commit d55aa7929cb10d40a58b6b7a8ed73bddd4f0a407.
* [core] Remove mbgl/util/uv.hppThiago Marcos P. Santos2015-12-012-415/+0
| | | | Now only a few things depend on libuv and they can use it directly.
* [core] Do not use uv::rwlock on StyleThiago Marcos P. Santos2015-12-012-3/+3
| | | | It was being used as a normal mutex anyway.
* [core] Port uv::tls to pthreadsThiago Marcos P. Santos2015-12-014-69/+144
|
* [core] Privatize internal headersJohn Firebaugh2015-12-013-0/+359
|
* [core] Expose fewer RunLoop implementation details in headerJohn Firebaugh2015-12-011-1/+2
|
* [core] Merge uv_detail.hpp into uv.hppJohn Firebaugh2015-12-012-2/+1
|
* [core] Remove unused libuv includesThiago Marcos P. Santos2015-12-017-8/+6
|
* [core] Introduce Timer abstractionThiago Marcos P. Santos2015-12-012-5/+4
|
* [core] Removed dependency on uv_loop from the file sourceThiago Marcos P. Santos2015-12-015-24/+18
|
* [core] Abstract main loop inside RunLoop classThiago Marcos P. Santos2015-12-013-53/+9
|
* [core] Use AsyncTask on the MapContextThiago Marcos P. Santos2015-12-013-49/+17
|
* [core] Introduce the AsyncTaskThiago Marcos P. Santos2015-12-011-0/+28
|
* [core] Collision debug is now MapDebugOptions::CollisionBruno de Oliveira Abinader2015-11-273-28/+5
|
* [core] Source should receive a ref to MapData just onceBruno de Oliveira Abinader2015-11-278-37/+50
|
* [core] Added MapDebugOptionsBruno de Oliveira Abinader2015-11-275-23/+40
| | | | | Map debug options are now cycled up to all debug options enabled, then back to none.
* [core] Display modify, expires debug informationBruno de Oliveira Abinader2015-11-274-4/+29
|
* [core] Added modified, expires information to TileDataBruno de Oliveira Abinader2015-11-2710-14/+37
|
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-276-28/+43
| | | | | | | Added aliases for std::chrono typedefs (eg. 'Seconds' for std::chrono::seconds). These aliases are used together with templated helper functions to replace time_t with std::chrono::seconds for most cases, in particular for 'modified' and 'expires' values in Response.
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-253-7/+31
| | | | | | | It's a premultiplied image. This implies that we were misusing encodePNG in most cases, as we were passing premultiplied pixels which were then interpreted as unmultiplied. I changed encodePNG to accept premultipled pixels, and unpremultiply in the implementations.
* [core] Always manually premultiply libpng outputJohn Firebaugh2015-11-252-0/+44
| | | | It appears to be the only way to get the results we want in all cases.
* [core] Rewrite image handlingJohn Firebaugh2015-11-259-41/+38
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* [core] [iOS] Completion handlers for animated methodsMinh Nguyễn2015-11-251-0/+9
| | | | | | Added transition frame and finish functions to CameraOptions. Added Objective-C equivalents to the three main entry points to easeTo() in MGLMapView. Fixes #1581.
* Fix GCC5 complaining about -Wunused-variable.Thomas Voß2015-11-252-0/+6
|
* [core] more robust max-age parsingKonstantin Käfer2015-11-203-5/+56
|
* [core] Force style-sourced annotations to be visibleJohn Firebaugh2015-11-191-0/+1
|
* [core] Followup fix to #3037John Firebaugh2015-11-192-2/+2
| | | | | | | | | 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-183-1/+8
| | | Fixes #3037
* [core] Added ConstrainMode::{HeightOnly,WidthAndHeight}Bruno de Oliveira Abinader2015-11-185-22/+34
| | | | | | | | | | ConstrainMode gives flexibility to our engine to choose between constraining both vertically and horizontally, or just vertically (default behavior). Constrain in both axis means we can no longer pan the map beyond the map boundaries. This fixes an issue where e.g. annotations disappear upon crossing the map boundaries.
* [core] Fix LatLngBounds default coordinatesBruno de Oliveira Abinader2015-11-181-1/+1
| | | | | | | | | LatLngBounds southwest and northeast coordinate points were inverted, so they could be extended via LatLngBounds::extend(). However, this looks confusing and error-prone. A static LatLngBounds::getExtendable() is added to address cases when we want to extend LatLngBounds.
* [core] Avoid extra copy of TransformState in Painter::renderBruno de Oliveira Abinader2015-11-188-21/+20
| | | | | | 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] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-1617-200/+93
|
* [core] Pass a value to response callback, not a referenceJohn Firebaugh2015-11-166-7/+7
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-1612-438/+9
| | | | This should be abstracted by util::RunLoop
* [core] Cancelled flag needs to be atomic; it is read from multiple threadsJohn Firebaugh2015-11-161-4/+5
|
* [core] Fix a subtle and currently unexposed bug in RunLoop::invokeWithCallbackJohn Firebaugh2015-11-161-12/+12
| | | | | | The doubly nested lambda that's responsible for executing the callback needs to check the cancellation flag on *both* threads. See comment for details.
* [core] Use std::mutex on RunLoopThiago Marcos P. Santos2015-11-162-2/+2
| | | | | | Only the WorkTask mutex needs to be recusive because the WorkQueue will run a WorkTask that will pop itself from the WorkQueue causing it to get cancelled.
* [core] Merge Sprite into SpriteStoreJohn Firebaugh2015-11-1215-254/+187
|
* [core] Reorganize sprite related filesJohn Firebaugh2015-11-1219-37/+33
|
* [core] Cleanup Transform::rotateByBruno de Oliveira Abinader2015-11-121-17/+12
| | | | | | Make use of PrecisionPoint's operator functionalities inherited from vec2<> and reduced overhead eg. offset_y is always 0 so no need to add this to calculation inside the if.
* [core] PrecisionPoint is now a vec2<double>Bruno de Oliveira Abinader2015-11-122-11/+11
| | | | | We could reuse all the operators defined in vec2<>, including operator bool() that checks if the contained values are !NaN.