summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [core] BackendScope prevent double (de-)activationIvo van Dongen2017-07-181-0/+113
| | | | | - Guards against duplicate activations by checking wether the backend of the prior scope is the same as the current ones - Makes sure that only the most outer backend scope deactivates by tracking activation state
* [core] Rework attribute binding (again)John Firebaugh2017-07-171-8/+8
| | | | | | | | | | These changes are necessary for programs whose set of active attributes is not fixed at compile time by a template parameter pack, but rather varies based on the generated shader text at runtime. In such cases, the attribute location of a given named attribute may vary between instances of the same Program. Previously, attribute bindings were implicitly associated with a location based on template parameter order, and -1 was used to indicate an inactive attribute. This left us unable to disable the appropriate attribute when it went from active to inactive. Now, the state tracker for bindings explicitly associates locations and state, and an empty optional is used to indicate an inactive attribute. In addition, a gl::VertexArray class is now exposed, allowing more flexibility in the relationship between Programs, Segments, and attribute bindings. In this commit, that relationship does not change, but the subsequent commit adjusts it to match gl-js, reduce rebinds, and work around buggy VAO implementations. VertexArray uses a pimpl idiom in order to support implementations that lack the VAO extension. In that case, all VertexArrays share global binding state, reflecting the platform reality in the absence of VAOs, while still providing a uniform API.
* [core] Fix composite function approximation for non-integer stopsJohn Firebaugh2017-06-191-0/+25
|
* Cherry picks to release branch (#9230)Tobrun2017-06-091-0/+32
| | | | | | | | | | | | * [ios][macos] test remove source in use * [android] test remove source in use * [core] check source usage before remove * [core] ensure layer::accept works with non-void return values on gcc * [android] - remove upgrade runtime exceptions (#9191)
* [core] Make TransformState LatLngBounds optionalBruno de Oliveira Abinader2017-06-011-3/+7
|
* [core, android, ios, macos, qt] v10 default stylesMinh Nguyễn2017-05-121-2/+2
| | | | | | Upgraded from v9 default styles to v10 wherever the developer expects to get the latest and greatest, as well as in a couple tests where it may be beneficial to ensure that we can handle a two-digit version number in the style URL. Cherry-picked from ed54849e9909e7f7cd8724b39b2bc94f16cf9a11.
* [core, android] Factor JSON string conversionsJohn Firebaugh2017-05-084-53/+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] generated accessor methods on lightIvo van Dongen2017-05-081-19/+19
|
* [core] Omnibus Style::update methodJohn Firebaugh2017-05-041-4/+8
| | | | Combine Style::cascade, recalculate, relayout, and updateTiles into a single method. This allows multiple loops over sources and layers to be consolidated and prepares for additional Style-Map decoupling: rather than tracking pending updates via a set of Update flags held by the Map and passed to the Style, the Style can use its own data to determine what to update.
* [core] UpdateParameters ⇢ TileParametersJohn Firebaugh2017-05-045-29/+29
|
* [core] Move render-related sources out of style directory/namespaceJohn Firebaugh2017-05-037-13/+13
| | | | | | | | | | | | | | | | Moves the following to the renderer directory and out of the style namespace: * CascadeParameters * PropertyEvaluationParameters * UpdateParameters * PropertyEvaluator * DataDrivenPropertyEvaluator * CrossFadedPropertyEvaluator * PaintPropertyBinder * PaintProperyStatistics * PossiblyEvaluatedPropertyValue * TransitioningLight * EvaluatedLight
* [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] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-024-137/+139
|
* [core] Load source TileJSON immediatelyJohn Firebaugh2017-05-024-76/+4
| | | | | | | This reverses #3095. Rationale: * We're now exposing source attributes as a public API. Making those attributes unavailable at certain times complicates that API. * We're preparing to split RenderSource out of Source. Removing this removes a point of coupling between the two.
* [all] Push querySourceFeatures back out to MapJohn Firebaugh2017-05-022-8/+8
| | | | Once Source and RendererSource are split, Source will no longer have access to tiles.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-275-22/+174
|
* [core] split off render layersIvo van Dongen2017-04-255-12/+22
|
* [all] Rationalize style::ImageJohn Firebaugh2017-04-248-184/+132
| | | | | | | A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
* [core] Move Sprite parsing to thread poolKonstantin Käfer2017-04-249-23/+36
|
* [android] use AAssetManager instead of libzipKonstantin Käfer2017-04-246-52/+10
|
* [core] Render parent raster tiles when ideal tile can't be loadedKonstantin Käfer2017-04-204-1/+51
|
* [core] Move ProjectedMeters to projection.hppJohn Firebaugh2017-04-182-16/+15
|
* [core] Replace GlyphRangeSet in onGlyphsAvailable with optionals in the mapJohn Firebaugh2017-04-141-18/+14
| | | | GlyphRangeSet isn't keyed by FontStack, so using it to indicate that a particular range was loaded could have produced false positives.
* [core] Ignore shortest path in Map::pixelForLatLngBruno de Oliveira Abinader2017-04-142-25/+54
|
* [core] Safeguard PositionedIcon usage via optionalBruno de Oliveira Abinader2017-04-142-15/+21
|
* [core] Tighten geo.hpp ctorsBruno de Oliveira Abinader2017-04-143-9/+76
|
* [all] Remove redundant scale-related camera methodsJohn Firebaugh2017-04-131-49/+27
| | | | We don't need to have two different measurement systems for map zoom.
* [tests] Rewrite GlyphAtlas tests to use public APIJohn Firebaugh2017-04-131-66/+77
|
* [core] Inline GlyphSet into GlyphAtlasJohn Firebaugh2017-04-121-6/+5
|
* Merge branch 'release-ios-v3.5.0-android-v5.0.0' into ↵Fabian Guerra2017-04-111-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | boundsj-merge-release-branch # Conflicts: # cmake/core-files.cmake # mapbox-gl-js # platform/android/CHANGELOG.md # platform/ios/CHANGELOG.md # platform/macos/CHANGELOG.md # platform/qt/bitrise-qt5.yml # src/mbgl/gl/attribute.hpp # src/mbgl/gl/context.cpp # src/mbgl/gl/program.hpp # src/mbgl/map/map.cpp # src/mbgl/programs/program.hpp # src/mbgl/renderer/painter.cpp
| * [core] cache binary shaders on AndroidKonstantin Käfer2017-04-031-0/+39
| |
| * [core] check null data in query source features (#8553)John Firebaugh2017-03-281-0/+10
| | | | | | | | | | | | * [core] check null data in query source features * Include what you use
| * [test] Fix polygon construction to compile with clang 3.9.xDane Springmeyer2017-03-281-9/+9
| |
| * [core] don’t query rendered features until all data is availableIvo van Dongen2017-03-141-0/+88
| |
| * [core] query source featuresIvo van Dongen2017-03-102-0/+50
| |
* | [core] Added {set,get}{Min,Max}PitchBruno de Oliveira Abinader2017-04-111-0/+18
| |
* | [core] Added Map::{get,set}LatLngBoundsBruno de Oliveira Abinader2017-04-111-0/+39
| |
* | [core] Updated Size::isEmpty and TransformState::valid checksBruno de Oliveira Abinader2017-04-101-23/+58
| |
* | [core] Test glyph PBF parsing independently of GlyphAtlasJohn Firebaugh2017-04-062-67/+17
| |
* | [core] Add DDS support for {text,icon}-size (#8593)Anand Thakker2017-04-063-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update gl-js and generate style code * Factor out packUint8Pair() helper function * Draft implementation of DDS for {text,icon}-size Ports https://github.com/mapbox/mapbox-gl-js/pull/4455 * Fix text-size/composite-function-line-placement test * Refactor to PaintPropertyBinders-like strategy * Dedupe gl::Program construction * Use exponential function base for interpolation * Dedupe coveringZoomStops method * Fixup tests * Fix CI errors (hidden within #if block)
* | [all] Make LatLng coordinates read-onlyJohn Firebaugh2017-04-065-149/+149
| |
* | [core] Tighten LatLng and other geo.hpp classesJohn Firebaugh2017-04-062-56/+7
| | | | | | | | | | * Remove LatLng::null and enforce invariants * Remove unnecessary operator bool()
* | [core] De-mutex GlyphAtlas and SpriteAtlasChris Loer2017-04-043-29/+53
| | | | | | | | | | | | | | | | | | | | | | | | - Expose glyph and icon information to workers via message interface. - Glyph/SpriteAtlas track which tiles have outstanding requests and send messages to them when glyphs/icons become available. - Remove obsolete "updateSymbolDependentTiles" pathway - Symbol preparation for a tile now depends on all glyphs becoming available before it can start. - Start tracking individual icons needed for a tile, although we don't do anything with the information yet. - Introduce typedef for GlyphID
* | [core] fixup stale constants references in test fixturesIvo van Dongen2017-04-043-9/+5
| |
* | Fix edge case in composite function interpolation (#8613)Anand Thakker2017-04-031-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where, for a zoom value greater than that of the highest zoom stop, composite function interpolation would return nan. (Blocking a render test over in #8593) * Add failing tests for composite function edge case The failing cases here are: - Should interpolate before the first stop - Should interpolate past the last stop * Fix edge case in composite function interpolation * Hold functions constant outside stop-defined domain
* | [core] Pass fully-evaluated layout properties to SymbolInstance and quad methodsJohn Firebaugh2017-03-311-12/+12
| |
* | [core] Introduce a fully-evaluated tuple type for layout propertiesJohn Firebaugh2017-03-313-15/+15
| |
* | [core] check null data in query source featuresIvo van Dongen2017-03-281-0/+9
| |
* | [glfw] Remove GL state restorationKonstantin Käfer2017-03-281-14/+0
| | | | | | | | We're doing all of this in our own context anyway, so no need to restore the state
* | [core] Remove private header includes from CLI utilitiesKonstantin Käfer2017-03-281-18/+0
| |