summaryrefslogtreecommitdiff
path: root/test/sprite
Commit message (Collapse)AuthorAgeFilesLines
* [build] Fix undefined behavour sanitizer (#16375)zmiao2020-04-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [build] Fix integer overflow runtime error for core part Temporarily remove circle ci UBSAN build precondition * [build] Enable all of the ubsans [build] Check runtime error [build] Update UBSAN_OPTION * [build] Add UBSAN blacklist [build] Ignore system libraries [build] Ignore vendor library * [build] Fix implicit conversion runtime error in core * [build] Fix division by zero runtime error * [build] Add unfixed error to ubsan blacklist * [build] Make UBSAN halt on error Revert "Temporary remove build precondition" * [build] Fix division by zero error * [build] Make UBSAN officially work without FIXME prefix * [build] Fix implicit conversion from int64_t to uint64_t * [build] Rename style test json file name * Address review findings
* [core] Loading images to style optimizationMikhail Pozdnyakov2020-02-112-15/+17
| | | | | | This change enables attaching images to the style with batches and avoids massive re-allocations. Thus, it improves UI performance especially at start-up time.
* [core] parse stretchX, stretchX, and content from sprite JSON filesKonstantin Käfer2020-01-151-139/+317
|
* [core] Add stretches and content to style::ImageKonstantin Käfer2020-01-151-17/+17
|
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-101-3/+1
| | | | | | | | | | - Do not carry it over everywhere as parameter, it is a shared instance anyway and the lifecycle is pretty much the app lifecycle from the moment we instantiate a map. - Rename to BackgroundScheduler because it is a Scheduler that will do tasks in the background, we don't make assumptions if it is a thread pool or a single thread. - Most importantly, remove the dependency from `core` on `platform`.
* [core] Per-bucket icon atlasesJohn Firebaugh2017-06-131-187/+0
|
* [core] Collection-level immutabilityJohn Firebaugh2017-06-051-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] Replace inline SpriteAtlas updates with diffingJohn Firebaugh2017-05-301-1/+1
|
* [core] Don't use a separate SpriteAtlas for annotation imagesJohn Firebaugh2017-05-262-45/+40
| | | | Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817.
* [core] Auto-growable SpriteAtlas using shelf-packJohn Firebaugh2017-05-261-21/+6
|
* [core] Simplify and fix sprite atlas coordinate calculationsJohn Firebaugh2017-05-231-56/+31
| | | | | | | | * Always return image metrics exclusive of padding * Work with integer coordinates whenever possible * Eliminate redundant SpriteAtlasElement members * Fix asymmetric re-padding in getIconQuad when pixelRatio != 1 * Add explanatory comments
* [core] Remove redundant SpriteAtlasElement membersJohn Firebaugh2017-05-171-12/+12
|
* [core] Remove ambiguous get{Width,Height} accessors from style::ImageJohn Firebaugh2017-05-171-10/+0
|
* [core] Remove obsolete modular arithmetic on atlas coordinatesJohn Firebaugh2017-05-171-4/+4
| | | | We switched to 16-bit coordinates in attributes in b0cb8715ed74678b4d0f05829fa71a590e41b2f6, so there's no longer any reason to require that they are divisible by four.
* [core, node, darwin, android, qt] Make image ID part of ImageJohn Firebaugh2017-05-164-40/+40
| | | | More like Source and Layer.
* [core] Immutable<Impl> for ImageJohn Firebaugh2017-05-151-9/+10
|
* [core] Trim StyleObserver interfaceJohn Firebaugh2017-05-131-2/+17
| | | | It doesn't need to inherit from SpriteLoaderObserver and GlyphAtlasObserver.
* [core] Split style image collection from SpriteAtlasIvo van Dongen2017-05-124-207/+229
|
* [all] Rationalize style::ImageJohn Firebaugh2017-04-243-157/+55
| | | | | | | 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-242-13/+19
|
* [core] De-mutex GlyphAtlas and SpriteAtlasChris Loer2017-04-041-15/+19
| | | | | | | | | | | | - 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] Eliminate SpritePatternModeJohn Firebaugh2017-02-141-8/+8
|
* [core] Combine SpriteAtlas::getPosition with SpriteAtlas::getImageJohn Firebaugh2017-02-141-1/+1
|
* [core] Eliminate SpriteAtlas::updateDirtyJohn Firebaugh2017-02-141-6/+19
| | | | Simplify internal datastructures. Properly remove rects from the bin pack when an image is removed.
* [tests] Use test::checkImageJohn Firebaugh2017-02-141-17/+5
|
* [core] add more detail to invalid metrics error in createSpriteImageMike Morris2016-11-041-6/+91
|
* [core] convert SpriteAtlas to use managed texture handlingKonstantin Käfer2016-11-011-38/+30
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-273-47/+47
|
* [test] add .test.cpp suffix to test case filesKonstantin Käfer2016-09-283-0/+0
|
* [core] Merge SpriteStore and SpriteAtlasJohn Firebaugh2016-09-192-323/+274
|
* [core] upgrade RapidJSON to 1.1.0Konstantin Käfer2016-09-151-1/+1
|
* [core] change bool wrap/repeating to enum class SpritePatternModeKonstantin Käfer2016-09-071-6/+6
|
* [tidy/linux] modernize-use-defaultBruno de Oliveira Abinader2016-06-141-3/+2
|
* [core] fix pedantic warning messagesKonstantin Käfer2016-06-134-24/+24
|
* [core] make sprite metrics checking stricterAnsis Brammanis2016-03-311-30/+13
| | | | | | - check that sprite metrics are within the bounds of the sprite. fix #714 - make sprite metrics problems Errors instead of Warnings - check for negative image width, height
* [test] rearrange test files so they're not in the fixtures folderKonstantin Käfer2016-03-224-9/+9
|
* [test] remove crc64 and compare imagesKonstantin Käfer2016-03-222-32/+46
| | | | boost's crc64 breaks on iOS
* [core] Remove ThreadContext::getFileSource; instead thread FileSource throughJohn Firebaugh2016-02-181-5/+1
|
* [tests] Don't call the callback for cancelled responsesJohn Firebaugh2016-02-041-1/+1
| | | | | | StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback". Fixes #3784
* [tests] Refactor and make MockFileSource more generalJohn Firebaugh2016-02-011-36/+98
| | | | | | Now it works more like StubStyleObserver: you can assign std::functions to specific slots based on resource type. Rewrite resource loading tests in that style, making them less like integration tests of Style and more like unit tests of Source, GlyphStore, and SpriteStore.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-194-89/+88
| | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
* [core][ios][osx][android] fix icons with non-integer width/heightAnsis Brammanis2016-01-193-16/+16
| | | | | | | | | | | ref #3031 ref #2198 For example, an icon that has: - a pixel width of 10 - a pixel ratio of 3 - a scaled with of 3.333 is now supported.
* [core] remove bilinear, nearest scaling, fix #3164Ansis Brammanis2016-01-131-16/+8
|
* [tests] Simplify MockFileSourceJohn Firebaugh2015-12-241-3/+3
|
* [tests] Rewrite {Sprite,Glyph}Store tests in the style of ResourceLoadingJohn Firebaugh2015-12-241-132/+64
|
* [core] Rationalize error handling for resource loadingJohn Firebaugh2015-12-232-3/+4
| | | | | | | | | * Standardize on std::exception_ptr as the error representation (fixes #2854). * Don't format textual strings at the error source; pass on the constituent data via observer method parameters instead. * Use the null object pattern to simplify observer notification code. * Further refactoring for ResourceLoading tests.
* [core] add std::move to constructorsKonstantin Käfer2015-12-031-1/+2
|
* [core] Use optional where SpriteAtlas return values might not existJohn Firebaugh2015-12-011-14/+6
| | | | Fixes #3162
* [core] Use a separate atlas and store for annotation spritesAdam Hunter2015-12-011-1/+3
| | | | Fixes #1488
* [tests] Remove libuv dependency from the testsThiago Marcos P. Santos2015-12-011-4/+5
|