John Firebaugh
91ddcbce20
[core] Merge GeoJSONTileSource into GeoJSONTileData
2016-06-10 12:42:14 +02:00
John Firebaugh
d62baffb1b
[core] Merge AnnotationTileSource into AnnotationTileData
2016-06-10 12:42:14 +02:00
John Firebaugh
b45713e5e9
[core] Eliminate TileData dependency on TileSource
2016-06-10 12:42:14 +02:00
John Firebaugh
dbf16440a6
[core] Eliminate Source dependency on TileSource
2016-06-10 12:42:14 +02:00
John Firebaugh
c3a8534a43
[core] Push conditional initialization into subclasses
2016-06-10 12:42:14 +02:00
John Firebaugh
908f3f0832
[core] Introduce GeometryTileData subclasses
2016-06-10 12:42:14 +02:00
John Firebaugh
a7cc291ce1
[core] Move setObserver out of Source::createTile
2016-06-10 12:42:14 +02:00
John Firebaugh
5f05294118
[core] Move cache lookup out of Source::createTile
2016-06-10 12:42:14 +02:00
John Firebaugh
7235ba0bfb
[core] Repeat some code so that all branches are parallel
2016-06-10 12:42:14 +02:00
John Firebaugh
ebd19db42a
[core] Remove unused includes
2016-06-10 12:42:14 +02:00
Konstantin Käfer
4e5d065000
[core] load parents of missing tiles as optional
2016-06-10 12:42:14 +02:00
Konstantin Käfer
fce5dd5f6a
[core] TileData objects now store whether an optional load attempt was performed
2016-06-10 12:42:14 +02:00
Konstantin Käfer
8a8f828e41
[core] rename onPlacementRedone -> onNeedsRepaint
2016-06-10 12:42:14 +02:00
Konstantin Käfer
2c7f7fb566
[core] createTile callback can load optional and required tiles
2016-06-10 12:42:14 +02:00
Konstantin Käfer
4673a9d6b3
[core] remove unused TileSource::loaded
2016-06-10 12:42:14 +02:00
Konstantin Käfer
913d28e745
[core] TileSources always start out as Optional
2016-06-10 12:42:14 +02:00
Konstantin Käfer
91895b9aec
[core] only perform optional requests if the FileSource supports it
2016-06-10 12:42:14 +02:00
Konstantin Käfer
f180179d1b
[core] allow changing the necessity of a TileSource
2016-06-10 12:42:14 +02:00
Konstantin Käfer
4357fed93b
[core] merge similar implementation of VectorTileSource and ImageTileSource
2016-06-10 12:42:14 +02:00
Konstantin Käfer
971807d3b0
[core] move parsePending() call to TileData
2016-06-10 12:42:14 +02:00
Konstantin Käfer
436d8eb5e0
[core] introduce TileDataObserver
...
avoids passing around bound callback functions
2016-06-10 12:42:14 +02:00
Konstantin Käfer
2b6d0751cf
[core] restructure TileSource construction and callbacks
2016-06-10 12:42:14 +02:00
Konstantin Käfer
6b729ccb46
[core] store Resource instead of dependents to build URL
2016-06-10 12:42:14 +02:00
Konstantin Käfer
46b0ebcd3c
[core] rename VectorTileData => GeometryTileData
2016-06-10 12:42:14 +02:00
Konstantin Käfer
99b1df4e46
[core] introduce a RasterTileMonitor
2016-06-10 12:42:14 +02:00
Konstantin Käfer
e8d8f52d2e
[core] *TileMonitor => *TileSource
2016-06-10 12:42:14 +02:00
Bruno de Oliveira Abinader
cfac924606
[core] s/SharedTexture/PooledTexture/
2016-06-07 22:42:18 +03:00
Bruno de Oliveira Abinader
680fcd09b1
Revert "[core] Use release() instead of get()/reset() in Raster"
...
No one owned the data after release(), so this wasn't being free'd.
reset() does that, thus this patch causes a huge memory leak.
2016-06-07 16:14:42 +03:00
Bruno de Oliveira Abinader
8b28b6ab6b
[core] Renamed OutlineShader's color uniform
...
Part of https://github.com/mapbox/mapbox-gl-shaders/issues/8 .
2016-06-07 15:04:02 +03:00
Konstantin Käfer
aa88ca4757
[core] remove unused code
2016-06-07 13:55:35 +02:00
Bruno de Oliveira Abinader
83d349ee16
[core] Use RAII for TexturePool textures
...
TexturePool now disposes acquirable ids via SharedTexture, which
guarantees that these are going back to TexturePool once released.
2016-06-07 13:01:58 +03:00
Bruno de Oliveira Abinader
858311d19b
[core] Do not expose TexturePool::Impl
...
Now using the same Pimpl mechanism from mbgl::Map.
2016-06-07 13:01:58 +03:00
Bruno de Oliveira Abinader
5e6f8d4ce5
[core] Use initializer list for Unique* objects
2016-06-07 13:01:58 +03:00
John Firebaugh
47d6903f4e
[core] Revert line-round-limit default to 1 ( #5260 )
...
Refs #5258 , #5234 .
2016-06-06 12:45:40 -07:00
Thiago Marcos P. Santos
313d9ce09c
[core] log2 polyfill for ARMv5
...
ARMv5 doesn't have a FPU and apparently the soft code for log2()
is wrong and giving weird results. log() works, so we use a log()
based log2() implementation for ARMv5.
2016-06-06 22:19:25 +03:00
Thiago Marcos P. Santos
7b8698b47a
[core] Naive atomic type for ARMv5
...
std::atomic<bool> is implemented lock free which doesn't work
on ARMv5 and seems like the compiler is generating bogus code.
This workaround is a naive implementation using regular mutexes.
2016-06-06 22:19:25 +03:00
Konstantin Käfer
c3cbe67c01
[core] code style and remove unused code
2016-06-06 17:55:01 +02:00
Bruno de Oliveira Abinader
679a68078c
[core] Refresh Texture Pool logic
...
Take advantage of mbgl::gl::ObjectPool being iterable, and also let
TexturePool update the texture ID value when releasing.
2016-06-03 11:03:16 +03:00
Bruno de Oliveira Abinader
61dad6eae5
[core] Use release() instead of get()/reset() in Raster
2016-06-03 11:03:16 +03:00
Bruno de Oliveira Abinader
650b988874
[core] Perform GL object store cleanup on low memory
2016-06-03 11:03:16 +03:00
John Firebaugh
5928e4e52a
[core] Clean up style.cpp
2016-06-02 16:33:56 -07:00
John Firebaugh
e802aedb8c
[core, node, android] Remove used "base" parameter from setStyleJSON
2016-06-02 16:33:56 -07:00
John Firebaugh
e1a58565c8
[core] Move RenderData alongside RenderItem
2016-06-02 15:44:39 -07:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
18149cbcc2
[core] Add {min,max}Zoom accessors
2016-06-02 14:51:39 -07:00
John Firebaugh
67ee51360c
[core] Add Filter accessors
2016-06-02 14:51:39 -07:00
John Firebaugh
cadc617c76
[core] Introduce PropertyValue<T>
...
PropertyValue<T> represents the three possible types of style property value: undefined, constant, or function.
2016-06-02 14:51:39 -07:00
John Firebaugh
d7e1ecd19e
[core] Generalize Map::{add,remove}CustomLayer
2016-06-02 14:51:39 -07:00
John Firebaugh
a43940afb2
[core] Runtime style layer API
2016-06-02 14:51:39 -07:00
John Firebaugh
1fb96d38a0
[tests] Tweak LineAnnotation test so that it reveals a bug; fix the bug
2016-06-02 14:47:35 -07:00