summaryrefslogtreecommitdiff
path: root/test/sprite
Commit message (Collapse)AuthorAgeFilesLines
* [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
|
* [core] Rewrite image handlingJohn Firebaugh2015-11-251-12/+10
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* Rewrite CustomSpriteImages testJohn Firebaugh2015-11-181-61/+0
| | | | Previous test was invalid; Map::setSprite is only for annotations.
* [core] Merge Sprite into SpriteStoreJohn Firebaugh2015-11-123-181/+177
|
* [core] Reorganize sprite related filesJohn Firebaugh2015-11-126-0/+924