summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] Ensure that a BackendScope exists when doing GL callsKonstantin Käfer2017-03-233-5/+19
|
* [all] Replace Result<T> with optional<T> plus out Error parameterJohn Firebaugh2017-03-235-71/+21
|
* Verbose commenting on getSegmentGlyphs (#8361)Chris Loer2017-03-221-58/+180
| | | | | | | | | | | | | | | * Verbose commenting on getSegmentGlyphs This came out of @cloer and @anandthakker trying to figure out how getSegmentGlyphs actually worked. Goal is to use this commented version as the base for a refactor. * Refactor getSegmentGlyphs for clarity. * Add more documentation, inline helper functions * Initialize VirtualSegments directly * Fix virtual anchor diagram
* [core] cache binary shaders on AndroidKonstantin Käfer2017-03-2221-32/+443
|
* Merge branch 'release-ios-v3.5.0-android-v5.0.0'John Firebaugh2017-03-2111-4/+243
|\
| * [core] fixes #8433: don't skip style recalculations for fade-from-zero ↵Justin R. Miller2017-03-161-3/+1
| | | | | | | | transitions (#8440)
| * Increase precision of shader variable (#8423)Anand Thakker2017-03-151-1/+1
| | | | | | Fixes #7599
| * [core] don’t query rendered features until all data is availableIvo van Dongen2017-03-142-1/+6
| |
| * Per-attribute transition properties on MGLStyleLayer (#8225)Fabian Guerra Soto2017-03-109-0/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] new struct MGLTransition * [ios] MGLTransition struct moved to MGLTypes.h * [ios] MGLTransition implemented for style layer properties * [ios, macos] added support for getting property transitions * [ios, macos] updated to MGLDurationFromTimeInterval and MGLTimeIntervalFromDuration * [ios, macos] added transition properties test * [ios, macos] modified key strings imp * [ios, macos] The impl for transition properties were changed to public methods * [ios, macos] Changelog update * [ios] Fixed layer space formatting * [core] The name space was fixed for getters that returned TransitionOptions * [ios, macos] Added rawLayer transition property tests * [ios] Added a factory method for MGLTransition and transition-related methods to NSValue(MGLAdditions) * [ios, macos] Copyedited changelog blurbs about transition properties
| * [core] query source featuresIvo van Dongen2017-03-109-1/+107
| |
| * [core] rename query options for query rendered featuresIvo van Dongen2017-03-1011-20/+20
| |
* | Make Source::getZoomRange return an optional rangeBruno de Oliveira Abinader2017-03-219-18/+22
| |
* | [core] Remove unnecessary unordered_map includesJohn Firebaugh2017-03-215-5/+0
| |
* | [core] Prefer std::map to std::unordered_map for smaller binary sizeJohn Firebaugh2017-03-217-9/+9
| |
* | [core] s/onSourceDidChange/onSourceChanged/ + source refBruno de Oliveira Abinader2017-03-215-8/+8
| |
* | [core] Expose Source::getZoomRangeBruno de Oliveira Abinader2017-03-208-9/+14
| |
* | [core] Use core wagyu algorithm; move results into GeometryCollectionJohn Firebaugh2017-03-172-69/+20
| |
* | Added wagyu and removed angus clipperBlake Thompson2017-03-174-6207/+68
| |
* | [core] Fix overspecialization of PaintPropertyBinder templateJohn Firebaugh2017-03-173-192/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PaintPropertyBinder and subclass templates were being instantiated for every unique attribute type (e.g. a_color, a_fill_color, a_halo_color) even though they behave identically for a given property value type (e.g. Color). To fix this, a unique type such as a_color no longer derives from gl::Attribute<...> -- instead it has an inner Type typedef, which should be used wherever neither a unique type nor attribute name is required. This reduces binary size substantially: VM SIZE FILE SIZE ++++++++++++++ GROWING ++++++++++++++ -------------- SHRINKING -------------- -2.0% -49.3Ki __TEXT,__text -49.3Ki -2.0% -3.1% -5.21Ki [None] -2.79Ki -1.6% -2.1% -4.12Ki __TEXT,__const -4.12Ki -2.1% -1.4% -4.04Ki __TEXT,__gcc_except_tab -4.04Ki -1.4% -19.3% -3.62Ki __DATA,__data -3.62Ki -19.3% -2.5% -1.65Ki __TEXT,__unwind_info -1.65Ki -2.5% -4.2% -8 __DATA,__mod_init_func 0 [ = ] -1.9% -68.0Ki TOTAL -65.6Ki -1.9%
* | [core] Don't need to use normalized attributes anymoreJohn Firebaugh2017-03-173-86/+5
| |
* | [core] Pass std::exception_ptr in MapObserver::onDidFailLoadingMapBruno de Oliveira Abinader2017-03-171-2/+2
| |
* | [core] Pass std::exception_ptr in style::Observer::onStyleErrorBruno de Oliveira Abinader2017-03-173-8/+16
| |
* | [core] Avoid copy construction of PaintPropertyBindersJohn Firebaugh2017-03-155-10/+22
| |
* | [core] Replace variant with polymorphic PaintPropertyBinder classJohn Firebaugh2017-03-151-83/+57
| |
* | [node] Work around a link error on macOS release builds (#8409)John Firebaugh2017-03-151-0/+5
| |
* | [core] Replace MapChange enum with MapObserverBruno de Oliveira Abinader2017-03-154-39/+23
| |
* | [core] Never join coincident start/end points of LineStringsJohn Firebaugh2017-03-142-17/+9
| |
* | [core] don’t query rendered features until all data is availableIvo van Dongen2017-03-142-1/+6
| |
* | [build] Fix build when using a Z_PREFIX zlibThiago Marcos P. Santos2017-03-141-0/+5
| | | | | | | | | | It will redefine mbgl::util::compress to mbgl::util::z_compress and cause a link error. Aka pre-processor hell.
* | [core] query source featuresIvo van Dongen2017-03-099-1/+107
| |
* | [core] rename query options for query rendered featuresIvo van Dongen2017-03-0911-20/+20
| |
* | [core] Extract and de-templatize several Program static methodsJohn Firebaugh2017-03-093-27/+52
| |
* | [core] Avoid unnecessary convert template instantiationsJohn Firebaugh2017-03-091-1/+1
|/
* Pack min + max into one attribute :muscle:Molly Lloyd2017-03-0816-244/+234
| | | | | | | | Some devices supported by Mapbox GL provide only 8 vertex attributes; this change packs existing attributes to get us just under that limit. For properties using a composite function, pack the min and max values into a single attribute with two logical components instead of using two separate attributes and buffers. Special logic is included for color attributes, whose integer components must be packed into the available bits of floating-point attributes. (We don't have access to ivec types in GL ES 2.0.) For source functions, continue to bind just a one-component attribute even though the GLSL type is vec2 (or vec4 for colors). The type-checking done by gl::Attribute is relaxed slightly to accommodate this.
* [core] De-duplicate shader prelude sourceJohn Firebaugh2017-03-0816-925/+102
|
* For data-driven paint setters, transition immediately to target value (#8306)Anand Thakker2017-03-081-0/+6
| | | Closes #8237
* [core] clear source when removed from styleIvo van Dongen2017-03-063-0/+8
|
* [core] Add support for queryRenderedFeatures filterAsheem Mamoowala2017-03-0412-59/+61
|
* [core] const-correctionJohn Firebaugh2017-03-024-4/+4
|
* [core] Fix whitespace; no need for explicit on multi-parameter constructorsJohn Firebaugh2017-03-0212-124/+204
|
* [core] privatize OffscreenTexture implementationKonstantin Käfer2017-03-012-24/+55
|
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-2821-273/+503
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {text,icon}-{color,opacity,halo-color,halo-blur,halo-width} (#7939) * Add symbol dds attributes and adapt style code generation * Update to mapbox-gl-js/master * Refactor SymbolFeature as a subclass of GeometryTileFeature Prepares for enabling DDS on symbol paint properties by allowing the SymbolFeatures, which we keep around after constructing SymbolLayout, to be used in evaluating data-driven paint properties later in the layout process. * Draft approach for splitting icon/text paint properties The `Program` types are set up to bind GL attributes to each of the data-driven paint properties specified in the `PaintProperties` type provided. Since `SymbolPaintProperties` specifies both `Text*` and `Icon*` properties, the symbolIcon, symbolIconSDF, and symbolGlyph programs each attempt to bind roughly double the number of attributes that they actually need. This change addresses this by: - Adding the more specific `IconPaintProperties` and `TextPaintProperties` types, which are subsets of the full `SymbolPaintProperties`. - The symbol layer continues to use its `SymbolPaintProperties paint` member to track layer property state, but it provides helpers that construct objects of each the specific `{Icon,Text}PaintProperties::Evaluated` type, for use by the painter. - The three symbol programs instantiate `Program<>` using the appropriate `{Icon,Text}PaintProperties` type. * check in generated style code * Populate paint buffers for symbol DDS properties * Address first round of review comments * Refactor VectorTile{Layer,Feature} to explicitly share data * Update submodule
* [core] remove gl.hpp include from shader headersKonstantin Käfer2017-02-2813-26/+0
|
* [core] There's only ever one icon quadJohn Firebaugh2017-02-286-81/+86
|
* [core] Eliminate Shaping::textJohn Firebaugh2017-02-283-7/+4
| | | | This was already accessible via SymbolFeature::text.
* [core] Release compareText after symbol preparationJohn Firebaugh2017-02-281-0/+1
| | | | It's a temporary structure and not needed for placement.
* [core] [android] - allow zooming/scaling to use AnimationOptions (#8181)Tobrun2017-02-283-91/+91
| | | [glfw] - allow glfw binding to use AnimationOptions instead of using direction directly
* [core] Replace three maps/mutexes in GlyphAtlas with a single map and mutexJohn Firebaugh2017-02-273-44/+30
|
* [core] Add pause/resume to the Thread classThiago Marcos P. Santos2017-02-251-0/+45
| | | | | | | | | | Make a thread completely halt and not process any message on the message queue until resume() is called. Sending a sync message to a halted thread will result on a deadlock, thus the assertion. Deleting a paused thread will trigger a resume.
* [core, ios, macos] Return null when removing nonexistent sourceJesse Bounds2017-02-231-1/+1
|