summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Remove binary shader supportThiago Marcos P. Santos2019-05-211-13/+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-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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-151-11/+6
|
* [core] change approach to stencil clipping to (almost) match JSKonstantin Käfer2019-04-291-0/+2
|
* [core] move depth/stencil buffer debug viz to gfx::ContextKonstantin Käfer2019-04-051-0/+6
|
* [core] remove Renderer::flushKonstantin Käfer2019-04-051-5/+0
|
* [core] refactor RendererBackendKonstantin Käfer2019-04-051-1/+3
|
* [core] add gfx::Renderable and gfx::OffscreenTextureKonstantin Käfer2019-04-051-0/+7
|
* [core] add getResource template to gfx::*Resource classesKonstantin Käfer2019-04-051-6/+6
|
* [core] introduce CommandEncoder objectKonstantin Käfer2019-04-051-0/+2
|
* [core] move supportsHalfFloatTextures to gfx::ContextKonstantin Käfer2019-04-051-2/+0
|
* [core] add generic base class for renderbuffersKonstantin Käfer2019-04-051-16/+7
|
* [core] gl::RenderbufferType -> gfx::RenderbufferPixelTypeKonstantin Käfer2019-04-051-10/+10
|
* add onStyleImageMissing to allow dynamically loaded or generated images (#14253)Ansis Brammanis2019-04-021-0/+1
| | | 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-021-1/+1
|
* [core] Expose a way of flushing the graphics pipelineThiago Marcos P. Santos2019-03-201-0/+5
| | | | | 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-201-1/+1
|
* [core] move ProgramMap to within the gl::Program objectKonstantin Käfer2019-03-201-1/+1
|
* [core] expose vertex binding count in gfx::ContextKonstantin Käfer2019-03-201-3/+1
|
* Merge pull request #14126 from mapbox/gfx-refactor-4Konstantin Käfer2019-03-151-8/+4
| | | Graphics refactor #4
* [core] add texture bindings to draw call instead of Context member fnKonstantin Käfer2019-03-121-9/+2
|
* [core] move Texture to the gfx namespaceKonstantin Käfer2019-03-121-41/+14
|
* [core] move Texture related enums to gfx namespaceKonstantin Käfer2019-03-121-18/+18
|
* [core] introduce gfx::Context and move Buffer creation/update methods to itKonstantin Käfer2019-03-061-38/+8
|
* [core] move BufferUsage enum to gfx namespaceKonstantin Käfer2019-03-061-4/+4
|
* [core] move VertexBuffer<> to gfx namespaceKonstantin Käfer2019-03-061-7/+7
|
* [core] move IndexBuffer to gfx namespaceKonstantin Käfer2019-03-061-7/+7
|
* [core] unify *Buffer/Vector namingKonstantin Käfer2019-03-061-8/+8
|
* [core] remove unused template parameter from gl::IndexBufferKonstantin Käfer2019-03-061-3/+3
|
* [core] move VertexVector/IndexVector to gfx namespaceKonstantin Käfer2019-03-061-4/+6
|
* [core] move CullFaceMode to gfx namespaceKonstantin Käfer2019-03-011-2/+2
|
* [core] move StencilMode to gfx namespaceKonstantin Käfer2019-03-011-2/+2
|
* [core] move DepthMode to gfx namespaceKonstantin Käfer2019-03-011-2/+2
|
* [core] move ColorMode to gfx namespaceKonstantin Käfer2019-03-011-2/+2
|
* [core] move draw mode and primitives to gfx namespaceKonstantin Käfer2019-03-011-7/+7
|
* [core] remove DrawMode from VertexVector/BufferKonstantin Käfer2019-02-251-5/+5
|
* [core] Switch to the new OpenGL abstractionThiago Marcos P. Santos2019-02-121-0/+1
| | | | | | This patch will make Mapbox GL Core never use OpenGL directly. We should consider locking into OpenGL ES 2.0 to simplify the code path and remove #ifdefs.
* [core] Refactor vertex array object extension initializationAnder Conselvan de Oliveira2018-09-141-6/+1
| | | | | | | Currently the vertex object extension is disabled through an ifdef for the Windows platform due to an issue with ANGLE, while there is a blacklist for other platforms. Unify those by adding ANGLE to that blacklist and some small refactoring.
* [core] Add face culling mode parameter to Program::drawBruno de Oliveira Abinader2018-09-131-0/+4
| | | | | | Add a parameter to Program::draw to control whether face culling should be enabled. This will be used in a follow up commit to enable face culling for fill extrusion layers.
* Remove use of noncopyable in ContextSudarsana Babu Nagineni2018-07-301-1/+3
|
* [core] Don't crash when attribute count is exceededKonstantin Käfer2018-05-031-1/+3
|
* [core, ios, macos, android, node] Heatmap layer (#11046)Vladimir Agafonkin2018-02-151-8/+16
| | | | | Co-Authored-By: Konstantin Käfer <mail@kkaefer.com> Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com> Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
* [core] Fix crash on Qt + Windows + ANGLEThiago Marcos P. Santos2017-11-241-1/+6
| | | | Support for VAO extensions is broken.
* [core] Cleanup in response to review comments.Chris Loer2017-11-171-2/+2
|
* [core] Enable dynamic updates of index buffers.Chris Loer2017-11-171-3/+11
|
* Revert "[core] Expose ColorMask in gl::Context::clear()"Bruno de Oliveira Abinader2017-11-021-2/+1
| | | | This reverts commit e350ef37fe68312c4b5fb03b289a90c0bdda4f03.
* [core] Expose ColorMask in gl::Context::clear()Bruno de Oliveira Abinader2017-11-011-1/+2
|
* [core] allow context to be abandoned on destructionIvo van Dongen2017-09-221-0/+6
| | | | - This enables the use case where the system already destroyed the underlying GL resources. Otherwise, the cleanup would fail and crash
* [core] Rename for clarity: ActiveTexture → ActiveTextureUnitJohn Firebaugh2017-09-111-1/+1
|
* [all] Merge View into RendererBackendJohn Firebaugh2017-07-261-3/+0
|