summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix -Werror={pessimizing,redundant}-move from GCC 9Bruno de Oliveira Abinader2020-04-202-5/+2
|
* Add a name to CustomLayer LayerTypeInfoGali Nelle2020-04-201-1/+1
| | | | | | This to prevent confusion and enable proper error logging when registering layers with missing name in LayerTypeInfo where the name should instead be present.
* [core] Fix misc-unconventional-assign-operator errors in header filesThiago Marcos P. Santos2020-04-172-2/+6
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-use-override errors in header filesThiago Marcos P. Santos2020-04-173-3/+3
| | | | As reported by clang-tidy-8.
* [core] Fix readability-avoid-const-params-in-decls errors in header filesThiago Marcos P. Santos2020-04-172-4/+14
| | | | As reported by clang-tidy-8.
* Fix LocationIndicator LayerGali Nelle2020-04-101-1/+1
| | | | | | | | | This changes image size properties to be scales instead of pixel sizes. The commit also adds fixes for handling image updates with the same ID, adds tests for expressions in paint properties, as well as tests for using images with pixel ratio greater than 1. Finally it moves image-tilt-displacement and perspective-compensation properties from layout to paint properties, and includes other minor cleanups.
* Add LocationIndicatorLayerGali Nelle2020-04-081-2/+4
| | | | | New key is "G" in mbgl-glfw, cycling between no puck, centered in the viewport and positioned in Tokyo.
* [core] Fix readability-* errorsThiago Marcos P. Santos2020-03-301-4/+10
| | | | As reported by clang-tidy-8.
* [core] Fix bugprone-too-small-loop-variable errorsThiago Marcos P. Santos2020-03-301-0/+2
| | | | As reported by clang-tidy-8.
* [core] Fix google-default-arguments errorsThiago Marcos P. Santos2020-03-301-2/+1
| | | | As reported by clang-tidy-8.
* Fix assert on gfx resource cleanupMikko Pulkki2020-03-301-1/+1
|
* [core] Move generic setProperty() parts to the base Layer classMikhail Pozdnyakov2020-03-241-1/+1
|
* [build] Adding a build flag to build without GL if needed (#16120)Thomas Moenicke2020-02-036-0/+266
| | | | | | * [build] Adding a build flag to build without GL if needed * [build] Moving custom layer to mbgl/gl
* [core] Blacklist VAO extension for Adreno (TM) 4xx GPUsAlexander Shalamov2019-12-021-8/+8
| | | | Blacklist in order to avoid crashes in a driver.
* [render-test] Add resource usage tracking to gfx contextMikko Pulkki2019-10-3010-12/+126
|
* [render-test] Implement fps benchmarking tests (#15803)Mikko Pulkki2019-10-222-0/+6
|
* [core] Fix performance-move-const-argThiago Marcos P. Santos2019-09-253-3/+8
|
* [core] don't call glFlush on every frameKonstantin Käfer2019-06-122-0/+8
|
* [core] Remove unused OffscreenTexture variant with depth render targetAleksandar Stojiljkovic2019-06-114-39/+2
|
* [core] refactor program object creationKonstantin Käfer2019-05-282-19/+15
|
* [core] Remove binary shader supportThiago Marcos P. Santos2019-05-2111-412/+0
| | | | | | | | | | | | | | | | | | | | | | The implementation is buggy and not worth maintaining anymore because performance benefits are not substantial or sometimes worse. Also, removing it saves about 150 ~ 180 KB in binary size. Below timings are averages of minimum 5 runs. ``` Device Init launch Average relaunch s10 1129.8 ms 700 ms s10 - binary 1346.75 ms 694 ms Pixel 1692 ms 723 ms Pixel - binary 1883 ms 1039 ms Kazam 17948 ms 1339 ms Kazam - binary 19157 ms 1564 ms Wiko 2060 ms 1278 ms Wiko - binary 3876 ms 1136 ms ``` Fixes #14294
* [core] Remove re-linking programs approach (#14482)Aleksandar Stojiljkovic2019-05-205-71/+35
| | | | | | | | | | | | | | | | | | | | | | | Remove re-linking programs as redundant. It costs (cheaper to link once than twice) and (subjective) is not that common GL API usage pattern, although perfectly legal and permitted. Initial idea, behind the removed code, was to enable work on optimization that would reduce number of attrib setup calls in case when VAO is not available (as described in #9433). As such optimization is not implemented, and it is arguable if it makes sense to do it now, we can remove re-linking. Related to closed PRs #9433 and PR #11583. I have [measured the time spent just on relinking](https://gist.github.com/astojilj/29bd5a5c5dc0b2d9f29ecb660da07fbf) using release build on iPhone SE (A9, same as iPhone 6S): - 1st run after reboot or installation Total 37.14ms, average per program:1.86ms - reopening Total: 2.47ms, average per program: 0.12ms This time we save using the patch here.
* [core] add gfx::UploadPass, split startRender into prepare and uploadKonstantin Käfer2019-05-159-101/+202
|
* [core] add gfx::CommandEncoder::present()Konstantin Käfer2019-05-152-0/+6
|
* [core] change approach to stencil clipping to (almost) match JSKonstantin Käfer2019-04-292-0/+7
|
* [ios] run glFlush when reducing memory and don't reduce memory while in ↵Konstantin Käfer2019-04-111-0/+2
| | | | background (#14383)
* [core] introduce gfx::RenderPassKonstantin Käfer2019-04-055-0/+71
|
* [core] test OffscreenTexture renderability before using themKonstantin Käfer2019-04-052-0/+11
|
* [core] move depth/stencil buffer debug viz to gfx::ContextKonstantin Käfer2019-04-052-0/+63
|
* [core] remove Renderer::flushKonstantin Käfer2019-04-052-9/+0
|
* [core] move GLContextMode to RendererBackendKonstantin Käfer2019-04-051-1/+3
|
* [core] refactor RendererBackendKonstantin Käfer2019-04-053-3/+78
|
* [core] add gfx::Renderable and gfx::OffscreenTextureKonstantin Käfer2019-04-054-0/+132
|
* [core] add getResource template to gfx::*Resource classesKonstantin Käfer2019-04-054-32/+29
|
* [core] move debug groups to gfx::CommandEncoderKonstantin Käfer2019-04-055-76/+36
|
* [core] introduce CommandEncoder objectKonstantin Käfer2019-04-054-0/+41
|
* [core] move supportsHalfFloatTextures to gfx::ContextKonstantin Käfer2019-04-051-2/+0
|
* [core] prefer static_cast for casts to derived classesKonstantin Käfer2019-04-052-3/+3
|
* [core] add generic base class for renderbuffersKonstantin Käfer2019-04-054-69/+55
|
* [core] gl::RenderbufferType -> gfx::RenderbufferPixelTypeKonstantin Käfer2019-04-055-46/+53
|
* add onStyleImageMissing to allow dynamically loaded or generated images (#14253)Ansis Brammanis2019-04-022-0/+19
| | | Also make `Style#updateImage(...)` much faster when the image doesn't change size. This can be useful for asynchronously generating images.
* [core] Disable binary programs until we fix #14294Thiago Marcos P. Santos2019-04-022-2/+3
|
* [core] Expose a way of flushing the graphics pipelineThiago Marcos P. Santos2019-03-202-0/+9
| | | | | Useful for apps before going to background that are restricted by the OS of performing any operation.
* [core] move cleanup to gfx::ContextKonstantin Käfer2019-03-202-1/+15
|
* [core] move ProgramMap to within the gl::Program objectKonstantin Käfer2019-03-204-84/+158
|
* [core] use constexpr string concatenation for uniform/attribute namesKonstantin Käfer2019-03-203-11/+21
|
* [core] remove a_/u_ prefix from attribute/uniform typesKonstantin Käfer2019-03-203-11/+11
|
* [core] expose vertex binding count in gfx::ContextKonstantin Käfer2019-03-202-4/+2
|
* [core] remove gl/context.hpp from more files, cast where necessaryKonstantin Käfer2019-03-202-6/+9
|
* Merge pull request #14126 from mapbox/gfx-refactor-4Konstantin Käfer2019-03-1513-220/+369
| | | Graphics refactor #4