summaryrefslogtreecommitdiff
path: root/test/style
Commit message (Collapse)AuthorAgeFilesLines
* [core] Remove ThreadContext::getFileSource; instead thread FileSource throughJohn Firebaugh2016-02-183-16/+20
|
* [gl] Moved TexturePool to gl namespaceBruno de Oliveira Abinader2016-02-181-2/+2
|
* [tests] Fix buildJohn Firebaugh2016-02-112-2/+2
|
* Allow using tileSize: 512 as a switch to trade retina support for 512px ↵Young Hahn2016-02-111-2/+4
| | | | raster tiles
* [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-101-0/+58
|
* [core] Cache with mapbox:// tile URLsJohn Firebaugh2016-02-101-3/+3
|
* [core] Add a method for statically evaluating font stacks used by a styleJohn Firebaugh2016-02-101-0/+10
|
* [tests] Don't call the callback for cancelled responsesJohn Firebaugh2016-02-042-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 structureJohn Firebaugh2016-02-024-0/+743
|
* [tests] Refactor and make MockFileSource more generalJohn Firebaugh2016-02-015-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 glyphsKonstantin Käfer2016-01-151-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 SourceKonstantin Käfer2016-01-131-8/+8
|
* [core] Get rid of ::unref() for Timer and AsyncTaskThiago Marcos P. Santos2016-01-091-1/+0
| | | | | Not need, legacy from libuv. The RunLoop keep the main loop running until is explicitly no longer needed.
* [tests] Simplify MockFileSourceJohn Firebaugh2015-12-242-5/+5
|
* [tests] Rewrite {Sprite,Glyph}Store tests in the style of ResourceLoadingJohn Firebaugh2015-12-242-234/+91
|
* [core] Rationalize error handling for resource loadingJohn Firebaugh2015-12-232-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 ResourceLoadingBruno de Oliveira Abinader2015-12-232-186/+139
|
* [tests] Rewrite resource loading testJohn Firebaugh2015-12-221-121/+98
| | | | Make it more readable and easier to debug.
* [core] Add more tests to on-demand source loadBruno de Oliveira Abinader2015-12-171-1/+36
|
* [core] Tests for style with unused sourcesBruno de Oliveira Abinader2015-12-171-0/+111
|
* [core] Load sources only if there is at least one visible layerBruno de Oliveira Abinader2015-12-172-1/+3
|
* [core] Replace StyleLayerType with RTTIJohn Firebaugh2015-12-071-2/+2
|
* [core] More efficient layer cloningJohn Firebaugh2015-12-071-0/+24
|
* [core] add std::move to constructorsKonstantin Käfer2015-12-031-1/+2
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-1/+1
|
* [tests] Remove libuv dependency from the testsThiago Marcos P. Santos2015-12-013-10/+11
|
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-251-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 handlingJohn Firebaugh2015-11-251-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 Abinader2015-11-181-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 filesJohn Firebaugh2015-11-121-173/+0
|
* [core] reparse tiles when new data arrivesKonstantin Käfer2015-10-261-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 MapDataBruno de Oliveira Abinader2015-10-221-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 masonJohn Firebaugh2015-10-011-3/+3
|
* Rewrite annotation invalidation strategyJohn Firebaugh2015-09-281-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. Miller2015-09-111-0/+4
| | | | post-sprite/sprite store load
* Style no longer requires mainloop accessBruno de Oliveira Abinader2015-09-021-1/+1
|
* Use the observer pattern for GlyphPBF loadingThiago Marcos P. Santos2015-07-172-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 canceledThiago Marcos P. Santos2015-07-161-5/+0
|
* Add GlyphStore unit testsThiago Marcos P. Santos2015-07-161-0/+225
|
* Move MockFileSource to fixturesThiago Marcos P. Santos2015-07-105-225/+3
| | | | | It is going to be used by another test that needs to emulate asynchronous requests.
* Add unit tests for the Sprite classThiago Marcos P. Santos2015-07-102-1/+180
|
* Re-enable Sprite resource loading testsThiago Marcos P. Santos2015-07-101-27/+12
|
* Make MockFileSource behave more like the real oneThiago Marcos P. Santos2015-07-081-3/+5
| | | | | This will help make some bugs more reproducible on the tests as things will happen more asynchronously.
* replace Style object immediatelyKonstantin Käfer2015-07-081-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 resourcesKonstantin Käfer2015-07-081-2/+0
|
* use SpriteStore from the SpriteAtlasKonstantin Käfer2015-07-081-2/+2
|
* Make pixelRatio constant across a Map object lifetimeKonstantin Käfer2015-07-082-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 ctorThiago Marcos P. Santos2015-07-062-5/+4
|
* Update the unit tests to check for raster tiles failuresThiago Marcos P. Santos2015-07-022-5/+23
|
* Remove unnecessary use of optionalJohn Firebaugh2015-07-011-1/+1
|