summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/image_manager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Add ImageManager::clear()Mikhail Pozdnyakov2020-03-181-0/+11
|
* [core] Implement image expression (#15877)Alexander Shalamov2019-11-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Bump gl-js version * [core] Implement image expression * [core] Use new image expression * [core] Coerce image expression to / from string * [core] Serialize evaluated image * [core] Pass available images to layout * [core] Pass images to evaluation context * [core] Set available flag value based on image availability * [core] Allow image coercion to boolean to indicate image availability * [core] Coalesce image expression * [core] Add image expression to next build system * [core] Align serialization format and evaluated type with gl-js * [core] Add images to expression evaluation method * [core] Add support for Image expression to expression test runner * [core] Unskip image expression tests * [core] Update unit tests * [core] Use image expression in annotation manager * [core] Add string to ImageExpression conversion * [core] Add image expression to expression dsl * [core] Convert tokens for implicitly created Image literal * [core] Fix clang format * [core] Split generated style code lines that are over 120 characters * [core] Add unit test for image expression equality * [core] Add image property expression evaluation unit test * [core] Unskip image expression render test * [core] Skip 'in' expression tests * [core] Ignore fill-pattern/update-feature-state render test * [core] Rename Image::serialize to Image::toValue
* [ios][android][core] Added change log entries and more code commentsMikhail Pozdnyakov2019-10-281-0/+3
|
* [core] Do not make pending requests for already requested images.Mikhail Pozdnyakov2019-10-281-9/+6
| | | | | so that processing for the corresponding tile does not suspend and the rendering performance is not affected.
* Revert "[core] Revert coalescing requests to the client for the same missing ↵Mikhail Pozdnyakov2019-10-281-24/+46
| | | | | | image" This reverts commit 22132683797b5ea5cbe8622f77c01b399ad9c71e.
* [core] Fixed formattingMikhail Pozdnyakov2019-10-241-8/+5
|
* [core] Revert coalescing requests to the client for the same missing imageMikhail Pozdnyakov2019-10-241-46/+27
|
* [core] Fix image requests for already obtained imagesMikhail Pozdnyakov2019-10-171-3/+6
| | | | | Before this change, repeated request for an already obtained image was erroneously treated as pending.
* [core] Introduce Scheduler::bindOnce() and use it in ImageManagerMikhail Pozdnyakov2019-10-101-5/+3
|
* [core] Disallow coalesced requests for patternsMikhail Pozdnyakov2019-10-101-6/+14
| | | | | | | Unlike icons, pattern changes are not caught with style-diff meaning that the existing request could be from the previous style and we cannot coalesce requests for them.
* [core] Coalesce requests for the same missing imageMikhail Pozdnyakov2019-10-101-22/+32
| | | | | | | This commit coalesces the repeated `onStyleImageMissing` calls for the same image. It also simplifies the image manager code.
* [core] Fix performance-move-const-argThiago Marcos P. Santos2019-09-251-1/+1
|
* [core] also remove version info in ImageManager when removing an image (#15397)Konstantin Käfer2019-08-191-0/+1
|
* [core] Introduce ImageManager::getSharedImageMikhail Pozdnyakov2019-07-041-1/+8
|
* [core] Introduce PatternAtlasMikhail Pozdnyakov2019-06-041-103/+7
|
* [core] Add onRemoveUnusedStyleImages observer APIAlexander Shalamov2019-05-211-43/+66
|
* [core] add gfx::UploadPass, split startRender into prepare and uploadKonstantin Käfer2019-05-151-5/+7
|
* [core] Make ActorRef methods constMikhail Pozdnyakov2019-05-101-1/+1
| | | | So that the lambdas calling these methods do not have to be mutable.
* [core] Schedule invocation of onStyleImageMissing completion callback on the ↵Alexander Shalamov2019-05-091-8/+20
| | | | | | | | | same thread Before this change, ImageManger's 'done' callback for onStyleImageMissing observer notification that was created on renderer thread, could be called from different thread, therefore, is not thread safe. For example, on Android platform, callback was invoked from UI thread. This change makes callback to be scheduled on originating thread.
* [core] Pass ImageManager to ImageRequestor's constructorAlexander Shalamov2019-04-251-0/+7
| | | | | This makes ImageRequestor API explicitly dependant on ImageManager, so that ImageRequestor can unregister itself from ImageManager on destruction.
* [core] Track missing style images that were provided by clientAlexander Shalamov2019-04-251-5/+30
| | | | | | - Track images provided by client thruough onStyleImageMissing API - Handle reduceMemoryUsage in ImageManager, via Renderer API - Release client provided images when no tiles are using them
* fix firing onStyleImageMissing after sprite has loaded (#14369)Ansis Brammanis2019-04-081-6/+7
|
* [core] add getResource template to gfx::*Resource classesKonstantin Käfer2019-04-051-1/+1
|
* add onStyleImageMissing to allow dynamically loaded or generated images (#14253)Ansis Brammanis2019-04-021-10/+90
| | | Also make `Style#updateImage(...)` much faster when the image doesn't change size. This can be useful for asynchronously generating images.
* [core] add texture bindings to draw call instead of Context member fnKonstantin Käfer2019-03-121-6/+6
|
* [core] use abstract Context interface where possibleKonstantin Käfer2019-03-121-3/+3
|
* [core] move Texture to the gfx namespaceKonstantin Käfer2019-03-121-2/+2
|
* [core] move Texture related enums to gfx namespaceKonstantin Käfer2019-03-121-1/+1
|
* [core] Implement CrossFadedDataDrivenProperty to add support for feature ↵Molly Lloyd2018-08-311-5/+6
| | | | expressions in `*-pattern` properties
* [core] Clear atlasImage rect for a removed patternBruno de Oliveira Abinader2017-09-131-0/+7
|
* [core] Added GeometryTileWorker-owned image correlation IDBruno de Oliveira Abinader2017-08-251-7/+7
|
* [core] Correctly track sprite loaded state through smart setStyleJohn Firebaugh2017-07-201-5/+16
|
* [core] Per-tile glyph/icon atlasesJohn Firebaugh2017-06-131-8/+1
|
* [core] Per-bucket icon atlasesJohn Firebaugh2017-06-131-0/+173