Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Implement a vacuum strategy for the offline database | John Firebaugh | 2016-03-17 | 1 | -0/+0 |
| | | | | Enable `PRAGMA auto_vacuum = INCREMENTAL`, and perform a `PRAGMA incremental_vacuum` when deleting an offline region. | ||||
* | [core] Limit total number of offline Mapbox tiles | John Firebaugh | 2016-02-24 | 1 | -0/+17 |
| | |||||
* | [tests] Add test for Map::updatePointAnnotation | John Firebaugh | 2016-02-12 | 2 | -0/+0 |
| | |||||
* | [core] Retry errors encountered during offline downloads | John Firebaugh | 2016-02-10 | 2 | -13/+16 |
| | |||||
* | [core] Interface and implementation for offline | John Firebaugh | 2016-02-10 | 4 | -0/+36 |
| | |||||
* | [core] Reimplement existing caching within an offline-capable database schema | John Firebaugh | 2016-02-10 | 16 | -93/+11 |
| | |||||
* | [core] Cache with mapbox:// tile URLs | John Firebaugh | 2016-02-10 | 2 | -2/+2 |
| | |||||
* | [core] Add a method for statically evaluating font stacks used by a style | John Firebaugh | 2016-02-10 | 1 | -0/+38 |
| | |||||
* | [tests] Don't call the callback for cancelled responses | John Firebaugh | 2016-02-04 | 2 | -11/+13 |
| | | | | | | StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback". Fixes #3784 | ||||
* | [core] Normalize only raster source tile URLs | John Firebaugh | 2016-02-01 | 2 | -0/+16 |
| | |||||
* | [tests] Refactor and make MockFileSource more general | John Firebaugh | 2016-02-01 | 5 | -128/+111 |
| | | | | | | Now it works more like StubStyleObserver: you can assign std::functions to specific slots based on resource type. Rewrite resource loading tests in that style, making them less like integration tests of Style and more like unit tests of Source, GlyphStore, and SpriteStore. | ||||
* | Cleanup std::chrono usage | Bruno de Oliveira Abinader | 2016-01-25 | 3 | -4/+6 |
| | | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible. | ||||
* | Revert "Revert WebP support due to broken builds" | Bruno de Oliveira Abinader | 2016-01-20 | 1 | -0/+0 |
| | | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed. | ||||
* | [core][ios][osx][android] make SpriteImage accept PremultipliedImage | Ansis Brammanis | 2016-01-19 | 2 | -0/+6 |
| | | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false) | ||||
* | Revert WebP support due to broken builds | John Firebaugh | 2016-01-19 | 1 | -0/+0 |
| | | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993. | ||||
* | [linux] Added WebP tile support | Bruno de Oliveira Abinader | 2016-01-19 | 1 | -0/+0 |
| | | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354 | ||||
* | [core] use stale glyphs | Konstantin Käfer | 2016-01-15 | 3 | -0/+39 |
| | | | | Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph. | ||||
* | [core] use stale sprite data | Konstantin Käfer | 2016-01-15 | 4 | -0/+36 |
| | | | | This is a naïve implementation that essentially merges updated data into existing data. It will *not* remove icons from the stale sprite if they aren't present in the fresh sprite (we aren't tracking the source of a sprite, and the user could have changed it as well). Similarly, it will not update icons that have changed in dimension. This is a rare edge case and probably not worth implementing. | ||||
* | [test] ensure static rendering finishes when a tile can't be loaded | Konstantin Käfer | 2016-01-15 | 2 | -0/+39 |
| | |||||
* | [core] use stale and refreshing TileJSON/GeoJSON data | Konstantin Käfer | 2016-01-15 | 2 | -0/+25 |
| | | | | We're now supporting using stale TileJSON and GeoJSON data. When we receive a new answer with an updated TileJSON file, we're replacing the Source's metadata with the new one and trigger updates to make sure we're loading the correct tiles. Similarly, GeoJSON data will be reparsed. | ||||
* | [core] use stale styles | Konstantin Käfer | 2016-01-15 | 4 | -0/+39 |
| | | | | 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] Eliminate platform::assetRoot() | John Firebaugh | 2016-01-13 | 10 | -2/+2 |
| | | | | I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths. | ||||
* | [core] Simplify asset:// implementation | John Firebaugh | 2016-01-13 | 3 | -13/+2 |
| | | | | | | | | * Move asset:// URL handling to DefaultFileSource. * AssetFileSource implements FileSource interface and follows familiar implementation patterns. * Move default implementation to platform/default, zip implementation to platform/android. * Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter. * Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit. | ||||
* | [core] move SourceInfo parsing to StyleParser | Konstantin Käfer | 2016-01-13 | 1 | -1/+1 |
| | |||||
* | [tests] Fix how we launch the test server | Thiago Marcos P. Santos | 2016-01-11 | 1 | -2/+2 |
| | | | | `execl` uses varargs thus must be NULL terminated. | ||||
* | [core] Get rid of ::unref() for Timer and AsyncTask | Thiago Marcos P. Santos | 2016-01-09 | 1 | -1/+0 |
| | | | | | Not need, legacy from libuv. The RunLoop keep the main loop running until is explicitly no longer needed. | ||||
* | [test] allow aborting rendering after a timeout | Konstantin Käfer | 2016-01-08 | 2 | -4/+13 |
| | |||||
* | [test] terminate test server when stdin closes | Konstantin Käfer | 2016-01-05 | 2 | -32/+51 |
| | |||||
* | [tests] Add unit tests for SQLiteCache size limit | Thiago Marcos P. Santos | 2015-12-28 | 2 | -0/+0 |
| | |||||
* | [tests] Simplify MockFileSource | John Firebaugh | 2015-12-24 | 2 | -149/+51 |
| | |||||
* | [tests] Rewrite {Sprite,Glyph}Store tests in the style of ResourceLoading | John Firebaugh | 2015-12-24 | 1 | -0/+67 |
| | |||||
* | [tests] Rewrite resource loading test | John Firebaugh | 2015-12-22 | 1 | -1/+1 |
| | | | | Make it more readable and easier to debug. | ||||
* | [core] Add more tests to on-demand source load | Bruno de Oliveira Abinader | 2015-12-17 | 1 | -0/+12 |
| | |||||
* | [core] Tests for style with unused sources | Bruno de Oliveira Abinader | 2015-12-17 | 1 | -0/+36 |
| | |||||
* | [core] Load sources only if there is at least one visible layer | Bruno de Oliveira Abinader | 2015-12-17 | 1 | -0/+4 |
| | |||||
* | [core] Fixed annotation icon replacement | Minh Nguyễn | 2015-12-15 | 2 | -0/+0 |
| | | | | Another pass at #3146, including a unit test. | ||||
* | [core] parse GeoJSON source type | Konstantin Käfer | 2015-12-11 | 8 | -0/+61 |
| | |||||
* | [core] Custom layers | John Firebaugh | 2015-12-09 | 3 | -0/+25 |
| | |||||
* | [core] add namespace comment to closing brace | Konstantin Käfer | 2015-12-03 | 2 | -3/+3 |
| | |||||
* | [core] Fix std::move() misuse that disables copy elision | Konstantin Käfer | 2015-12-03 | 1 | -2/+2 |
| | |||||
* | [tests] Fix/improve Asset utests | Thiago Marcos P. Santos | 2015-12-01 | 2 | -0/+0 |
| | | | | | | ASSET=zip make test-* was broken and now works. Also added a test stressing concurrent file access. | ||||
* | [tests] Remove libuv dependency from the tests | Thiago Marcos P. Santos | 2015-12-01 | 1 | -9/+4 |
| | |||||
* | [tests] Don't use icons from the style for annotations | John Firebaugh | 2015-11-30 | 8 | -2/+1 |
| | |||||
* | [core] Fix image type of Map::renderStill | John Firebaugh | 2015-11-25 | 2 | -32/+4 |
| | | | | | | | 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. | ||||
* | [test] Add pixelmatch; use in annotation tests | John Firebaugh | 2015-11-25 | 12 | -0/+69 |
| | |||||
* | [core] Add image tests | John Firebaugh | 2015-11-25 | 6 | -0/+0 |
| | |||||
* | [core] Force style-sourced annotations to be visible | John Firebaugh | 2015-11-19 | 1 | -0/+3 |
| | |||||
* | Rewrite CustomSpriteImages test | John Firebaugh | 2015-11-18 | 1 | -26/+0 |
| | | | | Previous test was invalid; Map::setSprite is only for annotations. | ||||
* | [core] Use std::unique_ptr for FileSource request | John Firebaugh | 2015-11-16 | 2 | -58/+66 |
| | |||||
* | [core] Do not pass uv_loop_t around | Thiago Marcos P. Santos | 2015-11-16 | 2 | -3/+3 |
| | | | | This should be abstracted by util::RunLoop |