Anand Thakker
b8654b3b04
[core] Move SourceType to the 'style' namespace
2017-10-16 16:32:53 -07:00
Lauren Budorick
e43e2aa3d7
[core, node] Support axonometric rendering
2017-10-14 03:15:34 +02:00
Konstantin Käfer
f4cb3b8a4f
[core] make forcing cache/network only more explicit
...
Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving).
This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
2017-10-12 10:41:49 +02:00
Asheem Mamoowala
2366487275
[core] Add cameraForLatLngs() method with modified bearing
2017-10-09 11:42:37 -07:00
Konstantin Käfer
8fae8a1645
[core] Add minzoom to GeoJSONOptions
2017-09-28 15:47:21 -07:00
Konstantin Käfer
64c75b442c
[build] split out DefaultFileSource and dependents to a separate target
...
We don't want to link it into the node bindings, so keep it in a separate target
2017-09-28 13:48:36 -04:00
Jesse Crocker
a06f4849bc
[core] Move *TileID hashing to separate impl
2017-09-26 10:55:40 -07:00
Ivo van Dongen
97a010cc9b
[core] custom layer - add contextLost callback
...
- optional callback method that can be used to do cleanup when the context has been lost before re-initialisation
2017-09-22 23:33:56 +03:00
Ivo van Dongen
8b9794b1a7
[core] Actor/ActorRef - ask calls to void methods
...
- allows to wait for execution of void methods as well as non-void methods
2017-09-22 23:33:56 +03:00
Ivo van Dongen
bda6ed26c6
[core] send signal to RenderCustomLayer when gl context has been lost
...
- Prevents cleaning up of GL resources that no longer exist, resulting in a crash
2017-09-22 23:33:56 +03:00
Konstantin Käfer
bd553de7bc
[test] add ability to take the OnlineFileSource offline
...
This functionality is used for testing to ensure correct offline behavior when connectivity is missing.
2017-09-22 10:57:15 +02:00
Lauren Budorick
a9ddf5b7fd
Preserve depth buffer between 3D layers + optimize render order ( #9931 )
...
Port of https://github.com/mapbox/mapbox-gl-js/pull/5101 : adds a new render pass `Pass3D` before any other rendering wherein we render layers with 3D passes (fill-extrusion layers) to offscreen framebuffers, sharing a depth renderbuffer between those layers in order to render 3D space correctly. Those framebuffers are saved on the RenderLayers and copied back to the map during the translucent pass. Rendering to offscreen framebuffers before we do any clear + draw means we can avoid expensive framebuffer restores.
2017-09-21 14:26:48 -07:00
Asheem Mamoowala
2d84e2a1ae
Fix platform dependent number type unsigned long -> uint64_t
2017-09-20 09:05:45 -07:00
Bruno de Oliveira Abinader
cda418198f
[core] Clear atlasImage rect for a removed pattern
2017-09-13 22:17:41 +03:00
Asheem Mamoowala
50fd917510
Fast tileCount with help from @mapbox/sphericalmercator module
2017-09-08 17:38:42 -07:00
Lauren Budorick
f8a53234ff
[core] Remove debug::renderTree
2017-09-07 12:07:46 -07:00
Bruno de Oliveira Abinader
d43757271e
[node] Cleanup NodeMap::Render
2017-08-31 10:17:21 +03:00
Asheem Mamoowala
69b52367d3
[core][ios][macos][android]DDS-ify text-letter-spacing and text-max-width
2017-08-30 10:59:08 -07:00
Ivo van Dongen
6b9a1268a4
[core] enable Thread destruction from arbitrary threads
2017-08-30 17:18:37 +03:00
Ivo van Dongen
0bb97e2307
[core] make thread.hpp public
2017-08-30 17:18:37 +03:00
Lauren Budorick
2de89a99bc
Implement icon-anchor property
2017-08-28 13:32:56 -07:00
Asheem Mamoowala
d21f19686b
Set Default MaxZoom to 22
2017-08-21 15:01:36 -07:00
Bruno de Oliveira Abinader
6179e0f9c0
[core] Added Style::getDefaultCamera()
2017-08-11 22:04:52 +03:00
Ivo van Dongen
1ff8b3a799
[core] make RunLoop::schedule public
2017-08-09 12:08:21 +03:00
Ivo van Dongen
edaa002c3c
[core] current scheduler
...
- Adds a way to set the current scheduler on the thread to be used whenever a mailbox is created that needs to reply on this thread
2017-08-09 12:08:21 +03:00
John Firebaugh
822df3dd51
[core] Use separate attribute component for line normals
...
Broadcom GPUs don't cope well with using the least significant bit for this.
2017-08-08 18:06:44 -07:00
Konstantin Käfer
f0a7c45064
[core] finish must-revalidate support
2017-08-08 12:40:38 +02:00
Ivo van Dongen
68f470fdda
[core] make actor self reference optional - again
...
- uses a different method of constructor selection that also works on Apple clang < 8.2.
2017-08-08 11:36:30 +03:00
Thiago Marcos P. Santos
2dd8ec8854
[core] Removed unused constructor
...
Not in use at the moment, was causing a compiler error on
Apple LLVM version 8.0.0 (clang-800.0.42.1).
```
src/mbgl/sprite/sprite_loader.cpp:25:11: error: call to constructor of
'Actor<mbgl::SpriteLoaderWorker>' is ambiguous
```
2017-08-07 18:48:42 +03:00
Thiago Marcos P. Santos
2108763010
[core] Remove std:: namespace for some functions
...
They are not available on Android + GCC (needed by Qt)
2017-08-07 17:20:33 +03:00
Lauren Budorick
a8ef2af353
[core][android][macos][ios] Implement property functions for line-join, text-justify, text-anchor ( #9583 )
2017-07-26 13:18:47 -07:00
John Firebaugh
d4cb498d7a
[all] Merge View into RendererBackend
2017-07-26 09:50:38 -07:00
Thiago Marcos P. Santos
acd95c325a
[core] Fix issues with the std:: namespace and old compilers
...
Specifically when building Android with GCC 4.9 (which Qt still does :-/)
2017-07-26 18:51:11 +03:00
Ivo van Dongen
27343c6a75
[core] fix backend scope handling on render, cleanup and lowmemory
...
- Make renderer frontend responsible for creating a BackendScope on render
- encapsulate backend scope handling on cleanup and low memory in renderer impl
2017-07-25 17:44:28 +03:00
Ivo van Dongen
5ee05a7781
[core] make actor self reference optional
2017-07-24 19:30:02 +03:00
Ivo van Dongen
81e9ed7fdd
[core] add ask pattern to actor ref
2017-07-24 19:30:02 +03:00
Ivo van Dongen
a9ac314a5d
[core] implement ask pattern in actor
2017-07-24 19:30:02 +03:00
John Firebaugh
2cdbb49a0c
[core] Fix build; struct ⇢ class
2017-07-19 13:31:59 -07:00
Bruno de Oliveira Abinader
4954da23e7
[core] No need for default ctor in {Update,Tile}Parameters
2017-07-19 19:24:30 +03:00
Bruno de Oliveira Abinader
5d4ed27068
[core] Bracket init works for optional<T> in GCC 4.9
2017-07-19 19:24:30 +03:00
Ivo van Dongen
9ebf727f56
[core] BackendScope prevent double (de-)activation
...
- Guards against duplicate activations by checking wether the backend of the prior scope is the same as the current ones
- Makes sure that only the most outer backend scope deactivates by tracking activation state
2017-07-18 10:45:12 +02:00
Ivo van Dongen
46c43510d7
[core] rename backend to renderer backend
2017-07-18 10:45:12 +02:00
Ivo van Dongen
3832f8d0d8
[core] renderer interface
2017-07-18 10:45:12 +02:00
Ivo van Dongen
57351c068b
[core] split backend from mapobserver
2017-07-18 10:45:12 +02:00
Asheem Mamoowala
8ae7010546
[core][ios][android][macos] Use premultiplied image directly for RasterTile and ImageSource, un-premultiply in the shader for blending
2017-07-17 12:20:03 -07:00
Chris Loer
e8657becc5
[core] Update shaders.
...
Implements 'icon-pitch-alignment' (issue #9345 )
Fixes issue #9456 (map-aligned point label regression)
2017-07-12 14:14:09 -07:00
Bruno de Oliveira Abinader
4014aa6721
[core] GCC 4.9 bracket initialization issues
2017-07-12 20:42:29 +03:00
Bruno de Oliveira Abinader
2fae373fc9
[core] GCC 4.9 is unable to deduce ctors when using bracket init
2017-07-12 20:42:29 +03:00
Bruno de Oliveira Abinader
6282b28b6f
[core] Added MBGL_CONSTEXPR to satisfy GCC 4.9
2017-07-12 20:42:29 +03:00
Bruno de Oliveira Abinader
3afbfa2de7
[core] GCC 4.9 shadow member warnings
2017-07-12 20:42:29 +03:00