summaryrefslogtreecommitdiff
path: root/src/mbgl/sprite
Commit message (Collapse)AuthorAgeFilesLines
* [core] Per-bucket icon atlasesJohn Firebaugh2017-06-133-395/+2
|
* [core] Replace inline SpriteAtlas updates with diffingJohn Firebaugh2017-05-302-15/+15
|
* [core] Don't use a separate SpriteAtlas for annotation imagesJohn Firebaugh2017-05-264-73/+17
| | | | 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-262-46/+55
|
* [core] Simplify and fix sprite atlas coordinate calculationsJohn Firebaugh2017-05-232-42/+64
| | | | | | | | * 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] Move pattern coordinate division by texture size into shaderJohn Firebaugh2017-05-232-6/+4
| | | | This makes pattern usage more like icons, and will be necessary for data-driven *-pattern properties.
* [core] add error for non-virtual destructor deletes + add virtual dtorsKonstantin Käfer2017-05-181-0/+1
|
* [core] Remove redundant SpriteAtlasElement membersJohn Firebaugh2017-05-172-6/+2
|
* [core] Remove ambiguous get{Width,Height} accessors from style::ImageJohn Firebaugh2017-05-171-5/+5
|
* [core] Remove obsolete modular arithmetic on atlas coordinatesJohn Firebaugh2017-05-171-12/+5
| | | | 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-169-55/+36
| | | | More like Source and Layer.
* [core] Immutable<Impl> for ImageJohn Firebaugh2017-05-152-14/+15
|
* [core] Split style image collection from SpriteAtlasIvo van Dongen2017-05-1211-152/+272
|
* [tidy] modernize-use-usingBruno de Oliveira Abinader2017-05-121-2/+2
|
* [core] Tweak handling of annotation special case SpriteAtlasJohn Firebaugh2017-04-262-8/+4
| | | | | * Simplify SymbolLayout; it never needs to care about more than one SpriteAtlas. * Move the reference from SymbolLayer::Impl to SymbolBucket. This is a prerequisite for making layer Impls immutable.
* [all] Rationalize style::ImageJohn Firebaugh2017-04-245-116/+77
| | | | | | | 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-246-35/+97
|
* [core] De-mutex GlyphAtlas and SpriteAtlasChris Loer2017-04-042-15/+62
| | | | | | | | | | | | - 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-142-44/+37
|
* [core] Mutex no longer needs to be recursiveJohn Firebaugh2017-02-142-6/+6
|
* [core] Combine SpriteAtlas::getPosition with SpriteAtlas::getImageJohn Firebaugh2017-02-142-41/+29
|
* [core] Inline SpriteAtlas::allocateImageJohn Firebaugh2017-02-142-23/+11
|
* [core] Eliminate SpriteAtlas::updateDirtyJohn Firebaugh2017-02-142-92/+93
| | | | Simplify internal datastructures. Properly remove rects from the bin pack when an image is removed.
* [core] Eliminate SpriteAtlas::HolderJohn Firebaugh2017-02-142-37/+25
|
* [core] Make Image saferJohn Firebaugh2017-02-142-48/+19
| | | | | | 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.
* [build] move logging to utilKonstantin Käfer2016-11-222-3/+3
|
* [core] add more detail to invalid metrics error in createSpriteImageMike Morris2016-11-041-1/+5
|
* [core] convert SpriteAtlas to use managed texture handlingKonstantin Käfer2016-11-012-109/+50
|
* [core] Use numeric_limits<>::max() for checking element groupsBruno de Oliveira Abinader2016-10-311-1/+1
|
* [core] Modern C++ bindings for OpenGLJohn Firebaugh2016-10-281-2/+4
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-274-20/+22
|
* [core] remove dependence on gl.h typesKonstantin Käfer2016-09-292-10/+9
|
* [core] merge gl::ObjectStore into gl::ContextKonstantin Käfer2016-09-272-7/+7
|
* [core] rename gl::Config to gl::ContextKonstantin Käfer2016-09-272-14/+14
|
* [core] Convert uses of std::set to std::unordered_set (#6325)Lucas Wojciechowski2016-09-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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 SpriteStore and SpriteAtlasJohn Firebaugh2016-09-195-251/+200
|
* [core] upgrade RapidJSON to 1.1.0Konstantin Käfer2016-09-151-3/+3
|
* [core] change bool wrap/repeating to enum class SpritePatternModeKonstantin Käfer2016-09-072-14/+22
|
* [core] Delete the now-unused ptr.hppJohn Firebaugh2016-09-061-1/+0
|
* [core] Revert workaround for std::atomic on ARMv5Thiago Marcos P. Santos2016-07-131-2/+2
| | | | | | Got fix on r12. https://github.com/android-ndk/ndk/issues/31
* [core] track texture state to avoid redundand bindsKonstantin Käfer2016-07-082-8/+17
|
* [core] code style cleanupsKonstantin Käfer2016-07-011-1/+3
| | | | | | | - puts function definitions in a namespace ... {} rather than using namespace ...; - remove trailing whitespace - add trailing newline - protect SQL statements from being formatted by clang-format
* [core] Avoid redundant 'inline' usageBruno de Oliveira Abinader2016-06-182-11/+11
|
* [core] Cleanup SpriteAtlasPositionBruno de Oliveira Abinader2016-06-151-7/+3
|
* [tidy] Check modernize-pass-by-valueBruno de Oliveira Abinader2016-06-132-4/+3
| | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
* [core] fix pedantic warning messagesKonstantin Käfer2016-06-131-1/+1
|
* Merge branch 'release-android-v4.1.0'Brad Leege2016-06-091-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerViewManager.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java # platform/android/src/jni.cpp # src/mbgl/geometry/buffer.hpp # src/mbgl/geometry/glyph_atlas.cpp # src/mbgl/geometry/glyph_atlas.hpp # src/mbgl/geometry/line_atlas.cpp # src/mbgl/geometry/vao.cpp # src/mbgl/gl/gl_object_store.cpp # src/mbgl/gl/gl_object_store.hpp # src/mbgl/renderer/frame_history.cpp # src/mbgl/shader/shader.cpp # src/mbgl/sprite/sprite_atlas.cpp # src/mbgl/sprite/sprite_atlas.hpp # src/mbgl/text/glyph_pbf.hpp
| * [android] #5254 - fix ARMv5 supportThiago Marcos P. Santos2016-06-061-2/+2
| | | | | | | | Backported patches fixing ARMv5 support for issue #3985.
| * [core] s/operator bool/created()/ in {GL,TexturePool}HolderBruno de Oliveira Abinader2016-05-271-1/+1
| | | | | | | | Prevents confusing usage of GL holder objects.
* | [core] Use unique_resource for GL objectsBruno de Oliveira Abinader2016-06-012-8/+8
| | | | | | | | | | | | | | | | | | Source: https://github.com/okdshin/unique_resource These replace the complexity of manually handling moveable-RAII objects with a type specific for that purpose. As suggested in https://github.com/mapbox/mapbox-gl-native/pull/5141#issuecomment-221719872.