summaryrefslogtreecommitdiff
path: root/test/util
Commit message (Collapse)AuthorAgeFilesLines
* [core, android] Factor JSON string conversionsJohn Firebaugh2017-05-081-0/+27
| | | | | | | | | | | This adds a `convertJSON` template, to be used like: Error error optional<Foo> foo = convertJSON<Foo>(string, error); Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`. While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
* [core] Make Map.addImage tests pass (#8843)Asheem Mamoowala2017-05-021-0/+15
| | | | | Fix Node tests suite implementation to parse pixelRatio from style json Premultiply images in the node binding before sending to mbgl core
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-272-2/+52
|
* [core] Move ProjectedMeters to projection.hppJohn Firebaugh2017-04-182-16/+15
|
* [core] Tighten geo.hpp ctorsBruno de Oliveira Abinader2017-04-142-5/+74
|
* [all] Make LatLng coordinates read-onlyJohn Firebaugh2017-04-062-33/+33
|
* [core] Tighten LatLng and other geo.hpp classesJohn Firebaugh2017-04-061-11/+6
| | | | | * Remove LatLng::null and enforce invariants * Remove unnecessary operator bool()
* [core] Remove private header includes from CLI utilitiesKonstantin Käfer2017-03-281-18/+0
|
* [core] Ensure that a BackendScope exists when doing GL callsKonstantin Käfer2017-03-231-0/+2
|
* [test] Increase memory test ceiling slightlyJohn Firebaugh2017-03-081-2/+2
|
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-281-50/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {text,icon}-{color,opacity,halo-color,halo-blur,halo-width} (#7939) * Add symbol dds attributes and adapt style code generation * Update to mapbox-gl-js/master * Refactor SymbolFeature as a subclass of GeometryTileFeature Prepares for enabling DDS on symbol paint properties by allowing the SymbolFeatures, which we keep around after constructing SymbolLayout, to be used in evaluating data-driven paint properties later in the layout process. * Draft approach for splitting icon/text paint properties The `Program` types are set up to bind GL attributes to each of the data-driven paint properties specified in the `PaintProperties` type provided. Since `SymbolPaintProperties` specifies both `Text*` and `Icon*` properties, the symbolIcon, symbolIconSDF, and symbolGlyph programs each attempt to bind roughly double the number of attributes that they actually need. This change addresses this by: - Adding the more specific `IconPaintProperties` and `TextPaintProperties` types, which are subsets of the full `SymbolPaintProperties`. - The symbol layer continues to use its `SymbolPaintProperties paint` member to track layer property state, but it provides helpers that construct objects of each the specific `{Icon,Text}PaintProperties::Evaluated` type, for use by the painter. - The three symbol programs instantiate `Program<>` using the appropriate `{Icon,Text}PaintProperties` type. * check in generated style code * Populate paint buffers for symbol DDS properties * Address first round of review comments * Refactor VectorTile{Layer,Feature} to explicitly share data * Update submodule
* [core] Log Memory.Footprint test results (#8170)Anand Thakker2017-02-281-29/+25
| | | | | | * Log Memory.Footprint test output * On CI, only run Memory.Footprint test with libjemalloc
* [tests] Added unit tests for Thread::pause/resumeThiago Marcos P. Santos2017-02-251-0/+78
|
* [core] Eliminate manual HeadlessBackend activation managementJohn Firebaugh2017-02-201-45/+43
|
* [core] Make Image saferJohn Firebaugh2017-02-141-0/+29
| | | | | | Provide Image::copy, which handles copying rectangles from a source to a destination, with thorough bounds checking. Also fixes an indexing error in SpriteAtlas, where the top row of pixels in a wrapped image was copied from the wrong source row.
* [core] add tests for user/password, port, trailing dot, and IPv4/IPv6 ↵Konstantin Käfer2017-02-131-0/+20
| | | | address parsing
* [test] Added a test to make sure 404 does not trigger a retryThiago Marcos P. Santos2017-02-071-0/+5
|
* regex is no longer used after 6c91c3eDane Springmeyer2017-02-022-4/+1
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-26/+26
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-4/+4
|
* [core] Clean up merge_lines.cpp and add bounds checkingJohn Firebaugh2017-01-181-0/+24
|
* [test] add tests for paths with leading slashesKonstantin Käfer2017-01-171-0/+34
|
* [core] include leading slash in URL.pathKonstantin Käfer2017-01-171-25/+25
|
* [core, ios] replace `altitude` with `fov`Ansis Brammanis2016-12-211-0/+2
| | | | | | | | | ported from -js: eb6c6596c6a7a61363d30356674e0002153b1d19 `altitude` was a terribly-named variable that was used to indirectly control the fov. This should eliminate some confusion. `altitude` was equivalent to `cameraToCenterDistance / height`
* [core] refactor URL parsingKonstantin Käfer2016-12-212-1/+186
|
* [core] Fix symbol rendering for multipointsJohn Firebaugh2016-12-201-24/+26
| | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/3763 and https://github.com/mapbox/mapbox-gl-js/pull/3806.
* [core] add util::isURL() for checking whether a string starts with a URL schemeKonstantin Käfer2016-12-071-0/+25
|
* [core] Full support for line breaking bidirectional text using ICU bidi ↵Chris Loer2016-11-301-24/+24
| | | | | | | functionality. - Trim whitespace from labels before determining their max-width for alignment. - Fix crash on labels that contain lines with only a single character of whitespace.
* [build] move logging to utilKonstantin Käfer2016-11-223-3/+3
|
* [build] move headless rendering files to platform/defaultKonstantin Käfer2016-11-222-4/+4
|
* [build] move default ThreadPool implementation to platform/defaultKonstantin Käfer2016-11-221-1/+1
|
* [core] Add minimal line breaking support for RTL text.Chris Loer2016-11-171-24/+24
|
* [core] Use UTF-16 instead of UTF-32 for label features to avoid extra ↵Chris Loer2016-11-171-2/+2
| | | | | | | conversions and reduce in-memory size. Continue to use uint32 as glyph ID to maintain Glyph PBF, even though we're only using 16 bits of that uint32. Use std::codecvt instead of boost::unicode_iterator for UTF8->UTF16 conversions.
* [linux] Ensure EGL uses OpenGL ES 2.0 client APIBruno de Oliveira Abinader2016-11-171-0/+12
|
* [test] Use shared headless displayBruno de Oliveira Abinader2016-11-172-3/+3
| | | | Prevents some OpenGL implementations from bailing out.
* [linux] Use OSMesa when running Node testsBruno de Oliveira Abinader2016-11-041-1/+1
|
* [core] Modern C++ bindings for OpenGLJohn Firebaugh2016-10-281-7/+5
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-274-21/+21
|
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-252-34/+28
|
* [core] separate Backend from View for headless renderingKonstantin Käfer2016-10-252-11/+21
|
* [core] [node] pass thread pool impl to Map constructorMike Morris2016-10-201-5/+7
| | | | | | | Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread
* [core] remove Raster object in favor of a more low-level Texture objectKonstantin Käfer2016-10-041-2/+1
|
* [core] Preserve non-access_token query parameters in canonicalizeTileURLSam Matthews2016-10-031-0/+9
|
* [test] add .test.cpp suffix to test case filesKonstantin Käfer2016-09-2818-0/+0
|
* [core] merge gl::ObjectStore into gl::ContextKonstantin Käfer2016-09-271-6/+6
|
* [core] rename gl::Config to gl::ContextKonstantin Käfer2016-09-271-9/+9
|
* [core] move GL value accessors to gl::value namespaceKonstantin Käfer2016-09-271-1/+1
|
* [core] add ability to render to offscreen texturesKonstantin Käfer2016-09-271-0/+153
|
* [tests] Remove memory fragmentation test (#6226)Thiago Marcos P. Santos2016-09-201-62/+0
| | | It is not reliable.
* Keep query strings in source URLs (#6182)Jake Pruitt2016-09-161-0/+18
| | | | Carries over any query strings from mapbox://-prefixed styles urls, source urls and tile urls to the api.mapbox.com requests.