Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Rework attribute binding (again) | John Firebaugh | 2017-07-12 | 1 | -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] GCC 4.9 bracket initialization issues | Bruno de Oliveira Abinader | 2017-07-12 | 6 | -47/+63 |
| | |||||
* | [core] GCC 4.9 is unable to deduce ctors when using bracket init | Bruno de Oliveira Abinader | 2017-07-12 | 6 | -6/+18 |
| | |||||
* | [core] GCC 4.9 shadow member warnings | Bruno de Oliveira Abinader | 2017-07-12 | 1 | -2/+2 |
| | |||||
* | [test] Add utest to assert our dtoa implementation precision | Thiago Marcos P. Santos | 2017-07-12 | 1 | -0/+24 |
| | |||||
* | [core] improve legibility of labels that follow lines | Ansis Brammanis | 2017-07-11 | 2 | -26/+12 |
| | | | | | | | | | | port https://github.com/mapbox/mapbox-gl-js/pull/4781 This improves legibility of labels that follow lines in pitched views. The previous approach used the limited information in the shader to calculate put the glyph in approximatelyright place. The new approach does this more accurately by doing it on the cpu where we have access to the entire line geometry. | ||||
* | [core] Change OverscaledTileID to also include a "wrap" value. | Chris Loer | 2017-07-11 | 2 | -567/+565 |
| | | | | | This prevents TilePyramid from sharing wrapped copies of tiles. This is necessary because two wrapped tiles no longer share the same CollisionTile. | ||||
* | [core] Isolate pthread-based tls implementation | Thiago Marcos P. Santos | 2017-07-07 | 1 | -17/+9 |
| | |||||
* | [tests] Add unit test for tile prefetching | Thiago Marcos P. Santos | 2017-07-07 | 6 | -0/+122 |
| | |||||
* | [test] Added bucket feature insertion tests | Bruno de Oliveira Abinader | 2017-07-06 | 1 | -0/+50 |
| | |||||
* | [test] Reuse StubGeometryTileFeature in MergeLines | Bruno de Oliveira Abinader | 2017-07-06 | 2 | -34/+14 |
| | |||||
* | [core] Don't upload empty buckets | Bruno de Oliveira Abinader | 2017-07-06 | 1 | -0/+6 |
| | |||||
* | [core] rename getStencils() to getClipIDs() to better reflect what it ↵ | Konstantin Käfer | 2017-07-06 | 1 | -27/+27 |
| | | | | actually does | ||||
* | [core] don't use unordered_* collections for things we need to sort anyway | Konstantin Käfer | 2017-07-06 | 1 | -1/+1 |
| | |||||
* | [core] refactor ClipID generation | Konstantin Käfer | 2017-07-06 | 1 | -193/+164 |
| | |||||
* | [test] Added API.ZoomHistory | Bruno de Oliveira Abinader | 2017-07-04 | 3 | -0/+62 |
| | |||||
* | [test] Use test::checkImage in API.RepeatedRender | Bruno de Oliveira Abinader | 2017-07-04 | 2 | -9/+5 |
| | |||||
* | [core] Check if frameZoom is NaN in Transform::flyTo callback | Bruno de Oliveira Abinader | 2017-06-28 | 1 | -0/+5 |
| | |||||
* | [core] Clamp to scale boundaries in TransformState::setLatLngZoom | Bruno de Oliveira Abinader | 2017-06-28 | 1 | -0/+16 |
| | |||||
* | [core] fix render doesn’t flag style mutation | Ivo van Dongen | 2017-06-26 | 1 | -0/+26 |
| | |||||
* | [core] Use the ResourceTransform instead of callbacks | Thiago Marcos P. Santos | 2017-06-26 | 1 | -3/+22 |
| | | | | | Based on the actor model, can be considered safer to use since we don't need to worry about object lifetime anymore. | ||||
* | [core] Move setStyleJSON/URL to Style; add Map::setStyle | John Firebaugh | 2017-06-22 | 9 | -66/+68 |
| | |||||
* | [all] Promote Style to public API | John Firebaugh | 2017-06-22 | 5 | -58/+19 |
| | |||||
* | [core] Refactor CustomLayer internals | John Firebaugh | 2017-06-22 | 1 | -0/+4 |
| | | | | Move the responsibility for initialization/deinitialization/rendering to RenderCustomLayer. This eliminates special case code from Map and Style. | ||||
* | [tests] Add tests for MapObserver::on{WillStart,DidFinish}LoadingMap | John Firebaugh | 2017-06-22 | 1 | -0/+50 |
| | |||||
* | [core] always return owning pointers for GeometryTileData::getLayer() | Konstantin Käfer | 2017-06-21 | 1 | -2/+1 |
| | |||||
* | [core] add MBGL_CHECK_ERROR to some locations where it was missing | Konstantin Käfer | 2017-06-21 | 1 | -2/+2 |
| | |||||
* | [core] Rename ThreadedObject to Thread | Thiago Marcos P. Santos | 2017-06-21 | 3 | -38/+38 |
| | | | | | Now that the old Thread class is gone, we can give ThreadedObject a better name. | ||||
* | [core] Remove util::Thread | Thiago Marcos P. Santos | 2017-06-21 | 1 | -296/+0 |
| | | | | Fixes #6425 | ||||
* | [tests] Port the ThreadLocalStorage test to the actor model | Thiago Marcos P. Santos | 2017-06-21 | 1 | -16/+29 |
| | |||||
* | [tests] Port the AsyncTask test to the actor model | Thiago Marcos P. Santos | 2017-06-21 | 1 | -30/+29 |
| | |||||
* | [core] Convert AssetFileSource to ThreadedObject | Thiago Marcos P. Santos | 2017-06-21 | 1 | -16/+9 |
| | |||||
* | [tests] Added tests for ThreadedObject | Thiago Marcos P. Santos | 2017-06-21 | 1 | -0/+277 |
| | |||||
* | [core] Trigger repaint on source changes | Asheem Mamoowala | 2017-06-19 | 1 | -1/+1 |
| | |||||
* | [iOS][macOS] Export `MGLImageSource`, add and update documentation. Use ↵ | Asheem Mamoowala | 2017-06-19 | 1 | -1/+1 |
| | | | | animated ImageSource demo in iOS test app | ||||
* | [core] Fix composite function approximation for non-integer stops | John Firebaugh | 2017-06-16 | 1 | -0/+25 |
| | |||||
* | [core] Implement "smart setStyle" | John Firebaugh | 2017-06-15 | 1 | -28/+0 |
| | |||||
* | [core] Remove unused binpack.hppp | John Firebaugh | 2017-06-13 | 1 | -51/+0 |
| | |||||
* | [core] Per-tile glyph/icon atlases | John Firebaugh | 2017-06-13 | 3 | -24/+44 |
| | |||||
* | [core] Per-bucket icon atlases | John Firebaugh | 2017-06-13 | 15 | -204/+164 |
| | |||||
* | [core] Per-bucket glyph atlases | John Firebaugh | 2017-06-13 | 6 | -42/+42 |
| | |||||
* | [core] Added Backend::{assume,set}ScissorTest | Bruno de Oliveira Abinader | 2017-06-13 | 1 | -0/+10 |
| | |||||
* | Fix undefined memory access in getCoveringRanges() (#9227) | Anand Thakker | 2017-06-09 | 1 | -0/+61 |
| | | | | | | | | | | | | * Add simple unit tests for SymbolSizeBinder * Fix bug in symbol size uniform value calculation For camera functions we were setting the zoom levels in "covering ranges" to `[(zoom stop <= tile zoom), (zoom stop >= 1 + tile zoom)]`, but then evaluating the function at `[tile_zoom, tile_zoom + 1]`. * Check for it != end() before accessing it->first | ||||
* | [core] Collection-level immutability | John Firebaugh | 2017-06-05 | 1 | -2/+2 |
| | | | | Introduce a second level of immutability, over each of the collections held by a style: sources, images, and layers. Tracking immutability at this level allows us to short-circuit significant portions of the RenderStyle update logic via a simple equality check, greatly improving performance. | ||||
* | [core] Fix several bugs in AnnotationManager | John Firebaugh | 2017-06-05 | 1 | -0/+6 |
| | |||||
* | [core] Split RenderStyle from Style | John Firebaugh | 2017-06-05 | 1 | -2/+2 |
| | |||||
* | [core] Simplify LayerObserver API | John Firebaugh | 2017-06-05 | 2 | -27/+19 |
| | |||||
* | [core] Refactor RenderSource updates | John Firebaugh | 2017-06-05 | 5 | -31/+114 |
| | | | | | | | * Eliminate updateBatch in favor of diffing layers and detecting changes to properties upon which layout depends. * Replace RenderSource::{update,remove,invalidate,reload}Tiles with a single update method * Replace TilePyramid::{update,remove,invalidate,reload}Tiles with a single update method * Remove Style& dependency TODO from GeometryTile and TileParameters | ||||
* | [core] Thread Style parameter through queryRenderedFeatures | John Firebaugh | 2017-06-05 | 1 | -1/+1 |
| | |||||
* | [core] Reuse RasterBucket for ImageSource | Asheem Mamoowala | 2017-06-01 | 1 | -0/+16 |
| |