Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Use optional where SpriteAtlas return values might not exist | John Firebaugh | 2015-12-01 | 6 | -47/+55 |
| | | | | Fixes #3162 | ||||
* | [core] Map::setSprite ⇢ Map::addAnnotationIcon | John Firebaugh | 2015-12-01 | 5 | -28/+23 |
| | | | | Fixes #3084 | ||||
* | [core] Remove mutex from Style | John Firebaugh | 2015-12-01 | 2 | -4/+0 |
| | | | | There's no cross-thread sharing to be protected here. | ||||
* | [core] Privatize layers and sources | John Firebaugh | 2015-12-01 | 5 | -124/+130 |
| | |||||
* | [core] Don't share util::ptr<StyleLayer> across threads | John Firebaugh | 2015-12-01 | 11 | -78/+81 |
| | |||||
* | [core] Don't share Style& across threads | John Firebaugh | 2015-12-01 | 4 | -18/+26 |
| | |||||
* | [core] Use a separate atlas and store for annotation sprites | Adam Hunter | 2015-12-01 | 13 | -26/+66 |
| | | | | Fixes #1488 | ||||
* | [core] Move MapData storage to MapContext | John Firebaugh | 2015-12-01 | 3 | -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 StyleUpdateParameters | John Firebaugh | 2015-12-01 | 6 | -44/+91 |
| | |||||
* | Partially revert "[core] Source should receive a ref to MapData just once" | John Firebaugh | 2015-12-01 | 8 | -34/+21 |
| | | | | This partially reverts commit d55aa7929cb10d40a58b6b7a8ed73bddd4f0a407. | ||||
* | [core] Remove mbgl/util/uv.hpp | Thiago Marcos P. Santos | 2015-12-01 | 2 | -415/+0 |
| | | | | Now only a few things depend on libuv and they can use it directly. | ||||
* | [core] Do not use uv::rwlock on Style | Thiago Marcos P. Santos | 2015-12-01 | 2 | -3/+3 |
| | | | | It was being used as a normal mutex anyway. | ||||
* | [core] Port uv::tls to pthreads | Thiago Marcos P. Santos | 2015-12-01 | 4 | -69/+144 |
| | |||||
* | [core] Privatize internal headers | John Firebaugh | 2015-12-01 | 3 | -0/+359 |
| | |||||
* | [core] Expose fewer RunLoop implementation details in header | John Firebaugh | 2015-12-01 | 1 | -1/+2 |
| | |||||
* | [core] Merge uv_detail.hpp into uv.hpp | John Firebaugh | 2015-12-01 | 2 | -2/+1 |
| | |||||
* | [core] Remove unused libuv includes | Thiago Marcos P. Santos | 2015-12-01 | 7 | -8/+6 |
| | |||||
* | [core] Introduce Timer abstraction | Thiago Marcos P. Santos | 2015-12-01 | 2 | -5/+4 |
| | |||||
* | [core] Removed dependency on uv_loop from the file source | Thiago Marcos P. Santos | 2015-12-01 | 5 | -24/+18 |
| | |||||
* | [core] Abstract main loop inside RunLoop class | Thiago Marcos P. Santos | 2015-12-01 | 3 | -53/+9 |
| | |||||
* | [core] Use AsyncTask on the MapContext | Thiago Marcos P. Santos | 2015-12-01 | 3 | -49/+17 |
| | |||||
* | [core] Introduce the AsyncTask | Thiago Marcos P. Santos | 2015-12-01 | 1 | -0/+28 |
| | |||||
* | [core] Collision debug is now MapDebugOptions::Collision | Bruno de Oliveira Abinader | 2015-11-27 | 3 | -28/+5 |
| | |||||
* | [core] Source should receive a ref to MapData just once | Bruno de Oliveira Abinader | 2015-11-27 | 8 | -37/+50 |
| | |||||
* | [core] Added MapDebugOptions | Bruno de Oliveira Abinader | 2015-11-27 | 5 | -23/+40 |
| | | | | | Map debug options are now cycled up to all debug options enabled, then back to none. | ||||
* | [core] Display modify, expires debug information | Bruno de Oliveira Abinader | 2015-11-27 | 4 | -4/+29 |
| | |||||
* | [core] Added modified, expires information to TileData | Bruno de Oliveira Abinader | 2015-11-27 | 10 | -14/+37 |
| | |||||
* | [core] Replace time_t with std::chrono::seconds | Bruno de Oliveira Abinader | 2015-11-27 | 6 | -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::renderStill | John Firebaugh | 2015-11-25 | 3 | -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 output | John Firebaugh | 2015-11-25 | 2 | -0/+44 |
| | | | | It appears to be the only way to get the results we want in all cases. | ||||
* | [core] Rewrite image handling | John Firebaugh | 2015-11-25 | 9 | -41/+38 |
| | | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation | ||||
* | [core] [iOS] Completion handlers for animated methods | Minh Nguyễn | 2015-11-25 | 1 | -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-25 | 2 | -0/+6 |
| | |||||
* | [core] more robust max-age parsing | Konstantin Käfer | 2015-11-20 | 3 | -5/+56 |
| | |||||
* | [core] Force style-sourced annotations to be visible | John Firebaugh | 2015-11-19 | 1 | -0/+1 |
| | |||||
* | [core] Followup fix to #3037 | John Firebaugh | 2015-11-19 | 2 | -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 loaded | John Firebaugh | 2015-11-18 | 3 | -1/+8 |
| | | | Fixes #3037 | ||||
* | [core] Added ConstrainMode::{HeightOnly,WidthAndHeight} | Bruno de Oliveira Abinader | 2015-11-18 | 5 | -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 coordinates | Bruno de Oliveira Abinader | 2015-11-18 | 1 | -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::render | Bruno de Oliveira Abinader | 2015-11-18 | 8 | -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 request | John Firebaugh | 2015-11-16 | 17 | -200/+93 |
| | |||||
* | [core] Pass a value to response callback, not a reference | John Firebaugh | 2015-11-16 | 6 | -7/+7 |
| | |||||
* | [core] Do not pass uv_loop_t around | Thiago Marcos P. Santos | 2015-11-16 | 12 | -438/+9 |
| | | | | This should be abstracted by util::RunLoop | ||||
* | [core] Cancelled flag needs to be atomic; it is read from multiple threads | John Firebaugh | 2015-11-16 | 1 | -4/+5 |
| | |||||
* | [core] Fix a subtle and currently unexposed bug in RunLoop::invokeWithCallback | John Firebaugh | 2015-11-16 | 1 | -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 RunLoop | Thiago Marcos P. Santos | 2015-11-16 | 2 | -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 SpriteStore | John Firebaugh | 2015-11-12 | 15 | -254/+187 |
| | |||||
* | [core] Reorganize sprite related files | John Firebaugh | 2015-11-12 | 19 | -37/+33 |
| | |||||
* | [core] Cleanup Transform::rotateBy | Bruno de Oliveira Abinader | 2015-11-12 | 1 | -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 Abinader | 2015-11-12 | 2 | -11/+11 |
| | | | | | We could reuse all the operators defined in vec2<>, including operator bool() that checks if the contained values are !NaN. |