Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Remove ThreadContext::getFileSource; instead thread FileSource through | John Firebaugh | 2016-02-18 | 3 | -16/+20 |
| | |||||
* | [gl] Moved TexturePool to gl namespace | Bruno de Oliveira Abinader | 2016-02-18 | 1 | -2/+2 |
| | |||||
* | [tests] Fix build | John Firebaugh | 2016-02-11 | 2 | -2/+2 |
| | |||||
* | Allow using tileSize: 512 as a switch to trade retina support for 512px ↵ | Young Hahn | 2016-02-11 | 1 | -2/+4 |
| | | | | raster tiles | ||||
* | [all] Don't interpret 404s on non-tile resources as "no content" | John Firebaugh | 2016-02-10 | 1 | -0/+58 |
| | |||||
* | [core] Cache with mapbox:// tile URLs | John Firebaugh | 2016-02-10 | 1 | -3/+3 |
| | |||||
* | [core] Add a method for statically evaluating font stacks used by a style | John Firebaugh | 2016-02-10 | 1 | -0/+10 |
| | |||||
* | [tests] Don't call the callback for cancelled responses | John Firebaugh | 2016-02-04 | 2 | -3/+3 |
| | | | | | | StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback". Fixes #3784 | ||||
* | [tests] Reorganize tests to match src structure | John Firebaugh | 2016-02-02 | 4 | -0/+743 |
| | |||||
* | [tests] Refactor and make MockFileSource more general | John Firebaugh | 2016-02-01 | 5 | -382/+379 |
| | | | | | | 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. | ||||
* | [core] use stale glyphs | Konstantin Käfer | 2016-01-15 | 1 | -4/+0 |
| | | | | 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] move invariant Source ID from SourceInfo to Source | Konstantin Käfer | 2016-01-13 | 1 | -8/+8 |
| | |||||
* | [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. | ||||
* | [tests] Simplify MockFileSource | John Firebaugh | 2015-12-24 | 2 | -5/+5 |
| | |||||
* | [tests] Rewrite {Sprite,Glyph}Store tests in the style of ResourceLoading | John Firebaugh | 2015-12-24 | 2 | -234/+91 |
| | |||||
* | [core] Rationalize error handling for resource loading | John Firebaugh | 2015-12-23 | 2 | -153/+241 |
| | | | | | | | | | * 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. | ||||
* | [tests] Moved lazy source loading tests to ResourceLoading | Bruno de Oliveira Abinader | 2015-12-23 | 2 | -186/+139 |
| | |||||
* | [tests] Rewrite resource loading test | John Firebaugh | 2015-12-22 | 1 | -121/+98 |
| | | | | 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 | -1/+36 |
| | |||||
* | [core] Tests for style with unused sources | Bruno de Oliveira Abinader | 2015-12-17 | 1 | -0/+111 |
| | |||||
* | [core] Load sources only if there is at least one visible layer | Bruno de Oliveira Abinader | 2015-12-17 | 2 | -1/+3 |
| | |||||
* | [core] Replace StyleLayerType with RTTI | John Firebaugh | 2015-12-07 | 1 | -2/+2 |
| | |||||
* | [core] More efficient layer cloning | John Firebaugh | 2015-12-07 | 1 | -0/+24 |
| | |||||
* | [core] add std::move to constructors | Konstantin Käfer | 2015-12-03 | 1 | -1/+2 |
| | |||||
* | [core] add namespace comment to closing brace | Konstantin Käfer | 2015-12-03 | 1 | -1/+1 |
| | |||||
* | [tests] Remove libuv dependency from the tests | Thiago Marcos P. Santos | 2015-12-01 | 3 | -10/+11 |
| | |||||
* | [core] Fix image type of Map::renderStill | John Firebaugh | 2015-11-25 | 1 | -1/+1 |
| | | | | | | | 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] Rewrite image handling | John Firebaugh | 2015-11-25 | 1 | -2/+1 |
| | | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation | ||||
* | [core] Added ConstrainMode::{HeightOnly,WidthAndHeight} | Bruno de Oliveira Abinader | 2015-11-18 | 1 | -1/+1 |
| | | | | | | | | | | 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] Reorganize sprite related files | John Firebaugh | 2015-11-12 | 1 | -173/+0 |
| | |||||
* | [core] reparse tiles when new data arrives | Konstantin Käfer | 2015-10-26 | 1 | -0/+5 |
| | | | | We're now reparsing tiles when they expire. We're also swapping out buckets atomically to avoid flickering data; i.e. we're displaying the old data as long as we don't have a new parsed bucket for that layer yet. The parsed buckets now live in the *TileData objects rather than in the TileWorker; only partially parsed == pending buckets will remain in the TileWorker. Once they're parsed, they're moved to the *TileData object. | ||||
* | [core] Added GLContextMode to MapData | Bruno de Oliveira Abinader | 2015-10-22 | 1 | -1/+1 |
| | | | | | | | Adding new mbgl::GLContextMode enum to mbgl::Map ctor, which gets stored in MapData. In shared GL context environments, we cannot assume that the GL state that has been left since the last draw is the same, so we reset the GL configurations to their default values. | ||||
* | Install RapidJSON from mason | John Firebaugh | 2015-10-01 | 1 | -3/+3 |
| | |||||
* | Rewrite annotation invalidation strategy | John Firebaugh | 2015-09-28 | 1 | -4/+0 |
| | | | | | | | | | | | | | | | | First, move style mutation code out of StyleParser and into AnnotationManager, coalescing it with the mutation code for shape layers. Second, allow AnnotationManager to keep track of stale tiles entirely internally. There's no reason to pass sets of TileIDs around. Third, correct the logic for invalidating the shape source. Since AnnotationManager does not track shape invalidations on a tile-by-tile basis, don't try to invalidate the shape source tile-by-tile. Fixes #1675 Fixes #2322 Fixes #2095 | ||||
* | fixes #1675: abstract annotation tile refresh check/render; trigger ↵ | Justin R. Miller | 2015-09-11 | 1 | -0/+4 |
| | | | | post-sprite/sprite store load | ||||
* | Style no longer requires mainloop access | Bruno de Oliveira Abinader | 2015-09-02 | 1 | -1/+1 |
| | |||||
* | Use the observer pattern for GlyphPBF loading | Thiago Marcos P. Santos | 2015-07-17 | 2 | -3/+9 |
| | | | | | | | This will make the code a lot more clear and it will also move how parsing is initiated to the GlyphPBF class, to be initiated after the request, like we do for other resources. | ||||
* | Remove hacks because of Glyph requests could not be canceled | Thiago Marcos P. Santos | 2015-07-16 | 1 | -5/+0 |
| | |||||
* | Add GlyphStore unit tests | Thiago Marcos P. Santos | 2015-07-16 | 1 | -0/+225 |
| | |||||
* | Move MockFileSource to fixtures | Thiago Marcos P. Santos | 2015-07-10 | 5 | -225/+3 |
| | | | | | It is going to be used by another test that needs to emulate asynchronous requests. | ||||
* | Add unit tests for the Sprite class | Thiago Marcos P. Santos | 2015-07-10 | 2 | -1/+180 |
| | |||||
* | Re-enable Sprite resource loading tests | Thiago Marcos P. Santos | 2015-07-10 | 1 | -27/+12 |
| | |||||
* | Make MockFileSource behave more like the real one | Thiago Marcos P. Santos | 2015-07-08 | 1 | -3/+5 |
| | | | | | This will help make some bugs more reproducible on the tests as things will happen more asynchronously. | ||||
* | replace Style object immediately | Konstantin Käfer | 2015-07-08 | 1 | -1/+2 |
| | | | | | this makes sure that adding custom sprite imagery will add them to the new Style object rather than the old one in case a user adds new custom sprites immediately after changing a stylesheet | ||||
* | we're no longer throwing exceptions when loading invalid sprite resources | Konstantin Käfer | 2015-07-08 | 1 | -2/+0 |
| | |||||
* | use SpriteStore from the SpriteAtlas | Konstantin Käfer | 2015-07-08 | 1 | -2/+2 |
| | |||||
* | Make pixelRatio constant across a Map object lifetime | Konstantin Käfer | 2015-07-08 | 2 | -4/+3 |
| | | | | also moves framebuffer size out of TransformState into its own object | ||||
* | Do not force uv_loop_t as the first parameter for a threaded object ctor | Thiago Marcos P. Santos | 2015-07-06 | 2 | -5/+4 |
| | |||||
* | Update the unit tests to check for raster tiles failures | Thiago Marcos P. Santos | 2015-07-02 | 2 | -5/+23 |
| | |||||
* | Remove unnecessary use of optional | John Firebaugh | 2015-07-01 | 1 | -1/+1 |
| |