Bruno de Oliveira Abinader
a1ed9f8794
[core] Don't upload empty buckets
2017-07-06 16:17:58 +03:00
John Firebaugh
754d2f377a
[core] make{Glyph,Image}Atlas only once for any number of symbol layers
2017-07-06 05:28:37 -07:00
Konstantin Käfer
64a827c325
[core] rename getStencils() to getClipIDs() to better reflect what it actually does
2017-07-06 12:32:54 +02:00
Konstantin Käfer
107622a72b
[core] don't use unordered_* collections for things we need to sort anyway
2017-07-06 12:32:54 +02:00
Konstantin Käfer
6d526c7b1d
[core] refactor ClipID generation
2017-07-06 12:32:54 +02:00
John Firebaugh
87081b8391
[core] Fix iterator invalidation in erase_if
...
vector::erase invalidates iterators. It's not safe for erase_if to cache the end iterator nor increment, then erase.
2017-07-05 20:15:17 +02:00
Bruno de Oliveira Abinader
60eae41549
[core] Factor timePoint initialization: take 2
2017-07-04 15:50:50 +03:00
Lauren Budorick
b5fed1172d
[core] Bind only active attributes in order to avoid exceeding attribute limits ( #9373 )
...
Introducing two new attributes to enable property functions for line-width (#9250 ) pushed the attribute count over GL_MAX_VERTEX_ATTRIBS on some devices. Now we selectively bind only attributes that are used, making it unlikely to surpass GL_MAX_VERTEX_ATTRIBS.
2017-06-29 11:29:48 -07:00
Bruno de Oliveira Abinader
1df45a5e42
[core] Check if frameZoom is NaN in Transform::flyTo callback
2017-06-28 20:59:56 +03:00
Bruno de Oliveira Abinader
433e54e636
[core] Clamp to scale boundaries in TransformState::setLatLngZoom
2017-06-28 20:59:56 +03:00
Ivo van Dongen
20189db67f
[core] remove tile cache size setter
2017-06-27 17:02:40 -07:00
Ivo van Dongen
24a00231f3
[core] fix render doesn’t flag style mutation
2017-06-26 16:19:06 -07:00
John Firebaugh
150fc6b643
[core] Don't transition new layers on a setStyle operation
2017-06-26 09:42:35 -07:00
Thiago Marcos P. Santos
6beccef517
[core] Introduce the ResourceTransform
...
Wrapper for transforming URLs on the OnlineFileSource.
2017-06-26 16:32:21 +03:00
Thiago Marcos P. Santos
54c3ccc37d
[core] Make the mbgl/actor headers public
...
They will be needed by the DefaultFileSource, something that we
also export as public.
2017-06-26 16:32:21 +03:00
John Firebaugh
40e4755621
[core] Move setStyleJSON/URL to Style; add Map::setStyle
2017-06-22 08:04:39 -07:00
John Firebaugh
1520a56813
[all] Promote Style to public API
2017-06-22 08:04:39 -07:00
John Firebaugh
be7e9bbb8d
[core] Refactor CustomLayer internals
...
Move the responsibility for initialization/deinitialization/rendering to RenderCustomLayer. This eliminates special case code from Map and Style.
2017-06-22 08:04:39 -07:00
Konstantin Käfer
122db77581
[core] document lifetimes of GeometryTileFeatures
2017-06-21 17:18:08 -07:00
Konstantin Käfer
244484ca6c
[core] retain GeometryTileLayer in SymbolLayout
...
We're storing GeometryTileFeature objects in SymbolLayout, but they may reference data in GeometryTileLayer, which could go away if we don't retain it.
2017-06-21 17:18:08 -07:00
Konstantin Käfer
7b90af5d35
[core] always return owning pointers for GeometryTileData::getLayer()
2017-06-21 17:18:08 -07:00
Konstantin Käfer
2cc330463d
[core] switch to vector-tile library for decoding Mapbox vector tiles
2017-06-21 17:18:08 -07:00
Konstantin Käfer
0f300d8dcd
[core] shared feature data for GeoJSONTileData objects
2017-06-21 17:18:08 -07:00
Konstantin Käfer
4ea4715179
[core] shared data among AnnotationTileFeature objects
2017-06-21 17:18:08 -07:00
Konstantin Käfer
4bfc559223
[core] add benchmark for vector tile parsing
2017-06-21 17:18:08 -07:00
Konstantin Käfer
6ec406b6af
[core] add MBGL_CHECK_ERROR to some locations where it was missing
2017-06-21 15:53:51 -07:00
Thiago Marcos P. Santos
7e8bdadb91
[core] Rename ThreadedObject to Thread
...
Now that the old Thread class is gone, we can give ThreadedObject
a better name.
2017-06-21 14:30:09 +03:00
Thiago Marcos P. Santos
1427628c56
[core] Remove util::Thread
...
Fixes #6425
2017-06-21 14:30:09 +03:00
Thiago Marcos P. Santos
476975dbf3
[core] Convert LocalFileSource to ThreadedObject
2017-06-21 14:30:09 +03:00
Thiago Marcos P. Santos
495f06ac4d
[core] Convert AssetFileSource to ThreadedObject
2017-06-21 14:30:09 +03:00
Thiago Marcos P. Santos
0de17ea5f4
[core] Added the ThreadedObject
...
Actor model version of util::Thread.
2017-06-21 14:30:09 +03:00
Lauren Budorick
87a70c4793
[core] Enable property functions for line-width ( #9250 )
2017-06-19 14:27:43 -07:00
Asheem Mamoowala
a33cad9855
[core] Trigger repaint on source changes
2017-06-19 09:50:08 -07:00
Asheem Mamoowala
7f36e0cf76
[iOS][macOS] Export MGLImageSource, add and update documentation. Use animated ImageSource demo in iOS test app
2017-06-19 09:50:08 -07:00
Asheem Mamoowala
ab5b310a9e
[iOS][macOS] Add ImageSource bindings
2017-06-19 09:50:08 -07:00
Lauren Budorick
7b05606464
[core] add DataDrivenPaintProperty uniform template class to generation script ( #9297 )
2017-06-16 16:21:16 -07:00
Aaron Muir Hamilton
afabd2795c
Disable misleading indentation warnings where boost is included.
2017-06-16 13:12:31 -07:00
John Firebaugh
e361bcf668
[core] Fix composite function approximation for non-integer stops
2017-06-16 12:46:12 -07:00
John Firebaugh
fe024bbdf6
[core] Implement "smart setStyle"
2017-06-15 07:43:51 -07:00
John Firebaugh
5a87291826
[core] Obey "transition" property from style and its default value
2017-06-15 07:43:51 -07:00
John Firebaugh
ae5b0391b6
[core] Skip calculations when we already know we need rendering or layout
2017-06-15 07:43:51 -07:00
John Firebaugh
f3bb99f919
[core] Eliminate constant attribute bindings
...
Rather than binding constant attributes that will never be used, just disable the attribute.
2017-06-14 11:14:05 -07:00
Konstantin Käfer
7a3f7980b0
[core] rename a_gap_width => a_gapwidth, u_gap_width => u_gapwidth to reflect naming in the shader
...
not sure how this ever worked
2017-06-14 11:14:05 -07:00
John Firebaugh
174408ed11
[core] Remove unused SymbolPropertyValues members
2017-06-14 11:14:05 -07:00
John Firebaugh
fd45242d05
[core] Don't use "current" icon/text-size when binding
...
The current value is not passed to `SymbolSizeBinder::uniformValues`, so we shouldn't check `currentValue.isConstant()` in `SymbolSizeBinder::attributeBindings`. If it were true, then we might end up using attribute bindings that are appropriate only for a constant property, but uniform bindings that are appropriate only for a source or composite function.
Instead, just wait for a new bucket to be generated. This will happen automatically, since icon/text-size are layout properties.
2017-06-14 11:14:05 -07:00
John Firebaugh
5e0018cdc3
[core] Add consts
2017-06-13 14:35:13 -07:00
John Firebaugh
8902e28e9b
[core] Don't upload the FrameHistory texture in frames where it's not changing
2017-06-13 14:35:13 -07:00
John Firebaugh
9d276f3b0f
[core] Dynamic program compilation for data-driven properties
2017-06-13 12:21:50 -07:00
Konstantin Käfer
18b50f51b4
[core] cleanup ProgramParameters
2017-06-13 12:21:50 -07:00
Konstantin Käfer
1708b297a7
[core] add constant DDS values as uniforms
2017-06-13 12:21:50 -07:00