summaryrefslogtreecommitdiff
path: root/test/text
Commit message (Collapse)AuthorAgeFilesLines
* [test] Fix undefined behavior warning:Chris Loer2017-07-141-2/+2
| | | | | quads.test.cpp used a bin with unsupported x/y coordinates. Issue #9499.
* [core] improve legibility of labels that follow linesAnsis Brammanis2017-07-111-22/+12
| | | | | | | | | | port https://github.com/mapbox/mapbox-gl-js/pull/4781 This improves legibility of labels that follow lines in pitched views. The previous approach used the limited information in the shader to calculate put the glyph in approximatelyright place. The new approach does this more accurately by doing it on the cpu where we have access to the entire line geometry.
* [core] Per-bucket icon atlasesJohn Firebaugh2017-06-131-2/+2
|
* [core] Per-bucket glyph atlasesJohn Firebaugh2017-06-131-27/+27
|
* [core] Auto-growable SpriteAtlas using shelf-packJohn Firebaugh2017-05-261-2/+2
|
* [core] Simplify and fix sprite atlas coordinate calculationsJohn Firebaugh2017-05-231-112/+108
| | | | | | | | * 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 unnecessary optionals in PositionedIconJohn Firebaugh2017-05-231-14/+12
| | | | Lack of icon is already checked at the call site of shapeIcon; no need to check hasArea() here.
* [core, node, darwin, android, qt] Make image ID part of ImageJohn Firebaugh2017-05-161-2/+2
| | | | More like Source and Layer.
* [core] Immutable<Impl> for ImageJohn Firebaugh2017-05-151-3/+3
|
* [core] Trim StyleObserver interfaceJohn Firebaugh2017-05-131-2/+15
| | | | It doesn't need to inherit from SpriteLoaderObserver and GlyphAtlasObserver.
* [all] Rationalize style::ImageJohn Firebaugh2017-04-241-2/+2
| | | | | | | A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
* [core] Replace GlyphRangeSet in onGlyphsAvailable with optionals in the mapJohn Firebaugh2017-04-141-18/+14
| | | | GlyphRangeSet isn't keyed by FontStack, so using it to indicate that a particular range was loaded could have produced false positives.
* [core] Safeguard PositionedIcon usage via optionalBruno de Oliveira Abinader2017-04-141-14/+20
|
* [tests] Rewrite GlyphAtlas tests to use public APIJohn Firebaugh2017-04-131-66/+77
|
* [core] Inline GlyphSet into GlyphAtlasJohn Firebaugh2017-04-121-6/+5
|
* [core] Test glyph PBF parsing independently of GlyphAtlasJohn Firebaugh2017-04-062-67/+17
|
* [core] Add DDS support for {text,icon}-size (#8593)Anand Thakker2017-04-061-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | * Update gl-js and generate style code * Factor out packUint8Pair() helper function * Draft implementation of DDS for {text,icon}-size Ports https://github.com/mapbox/mapbox-gl-js/pull/4455 * Fix text-size/composite-function-line-placement test * Refactor to PaintPropertyBinders-like strategy * Dedupe gl::Program construction * Use exponential function base for interpolation * Dedupe coveringZoomStops method * Fixup tests * Fix CI errors (hidden within #if block)
* [core] De-mutex GlyphAtlas and SpriteAtlasChris Loer2017-04-042-14/+34
| | | | | | | | | | | | - 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] Pass fully-evaluated layout properties to SymbolInstance and quad methodsJohn Firebaugh2017-03-311-12/+12
|
* [core] Introduce a fully-evaluated tuple type for layout propertiesJohn Firebaugh2017-03-311-12/+12
|
* [core] There's only ever one icon quadJohn Firebaugh2017-02-281-132/+130
|
* [core] Replace three maps/mutexes in GlyphAtlas with a single map and mutexJohn Firebaugh2017-02-271-12/+10
|
* [core] Combine SpriteAtlas::getPosition with SpriteAtlas::getImageJohn Firebaugh2017-02-141-2/+4
|
* [core] Make Image saferJohn Firebaugh2017-02-142-13/+10
| | | | | | Provide Image::copy, which handles copying rectangles from a source to a destination, with thorough bounds checking. Also fixes an indexing error in SpriteAtlas, where the top row of pixels in a wrapped image was copied from the wrong source row.
* Upright CJK characters in vertically-oriented labels (#7114)Minh Nguyễn2017-02-101-1/+1
| | | | | CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement. Fixes #1682.
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-2/+2
|
* [core] abort early when placing a glyph in GlyphAtlas if the bitmap is invalidKonstantin Käfer2017-01-171-0/+40
|
* [core] harden Glyph PBF parsingKonstantin Käfer2017-01-171-0/+71
|
* [build] move logging to utilKonstantin Käfer2016-11-221-1/+1
|
* [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-171-48/+48
| | | | | | | | This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md. The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily. Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state.
* [core] convert GlyphAtlas to use managed texture handlingKonstantin Käfer2016-11-011-1/+1
|
* [test] add .test.cpp suffix to test case filesKonstantin Käfer2016-09-282-0/+0
|
* [core] Convert uses of std::set to std::unordered_set (#6325)Lucas Wojciechowski2016-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/mbgl/annotation/annotation_manager.hpp * src/mbgl/algorithm/update_renderables.hpp * src/mbgl/geometry/glyph_atlas.hpp * src/mbgl/renderer/painter.cpp and src/mbgl/renderer/render_item.hpp * src/mbgl/renderer/symbol_bucket.hpp and src/mbgl/text/glyph_store.hpp * src/mbgl/sprite/sprite_atlas.hpp * include/mbgl/storage/network_status.hpp * src/mbgl/text/collision_tile.cpp * src/mbgl/style/update_batch.hpp * platform/default/mbgl/storage/offline_download.hpp * Add GlyphRangeSet typedef * Fix whitespace & unused imports
* [core] Merge GlyphStore and GlyphAtlasJohn Firebaugh2016-09-191-0/+144
|
* [core] change bool *AlongLine to SymbolPlacementTypeKonstantin Käfer2016-09-071-13/+25
|
* [core] Adjust layer source properties to better reflect realityJohn Firebaugh2016-06-241-62/+61
| | | | | | | | * Layer source ID is immutable; must be provided to the constructor * Layer source layer is mutable * Layers with GeoJSON sources do not have a source layer While here, make Layer::copy impl-private.
* Support for icon-text-fit, icon-text-fit-padding (#5334)Young Hahn2016-06-151-0/+266
* Add support for icon-text-fit * Port unit tests for getIconQuads() from js => cpp * Add support for padding in all 4 directions. * Update all hashes post-merge