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
Bruno de Oliveira Abinader
f1ac757bd2
[core] GCC 4.9 does not fully support custom variable templates
2017-07-12 20:42:29 +03:00
Bruno de Oliveira Abinader
1aacc88f35
[core] GCC 4.9 does not allow using another member in a constexpr ctor
2017-07-12 20:42:29 +03:00
Thiago Marcos P. Santos
407fbc70b1
[core] Prefetch low resolution tiles
2017-07-07 14:28:52 +03:00
Chris Loer
d5fbcb242a
[core] Implement circle-pitch-alignment property
...
Closes issue #9349 .
2017-07-06 09:39:26 -07:00
Ivo van Dongen
20189db67f
[core] remove tile cache size setter
2017-06-27 17:02:40 -07:00
Thiago Marcos P. Santos
c3900e42d6
[core] Removed unused methods
...
No longer needed after refactoring ::setResourceTransform.
2017-06-26 16:32:21 +03:00
Thiago Marcos P. Santos
ea34cb5725
[core] Use the ResourceTransform instead of callbacks
...
Based on the actor model, can be considered safer to use since
we don't need to worry about object lifetime anymore.
2017-06-26 16:32:21 +03:00
Thiago Marcos P. Santos
515ffa975d
[core] Store pointer instead of referect to the Object in ActorRef
...
GCC complains about implicitly deleted assigment constructor
when trying to do this:
void setResourceTransform(optional<ActorRef<ResourceTransform>> transform) {
resourceTransform = transform;
}
optional<ActorRef<ResourceTransform>> resourceTransform;
2017-06-26 16:32:21 +03: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
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
999de53f11
[core] Convert DefaultFileSource to ThreadedObject
...
Fixes #6426
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
John Firebaugh
e361bcf668
[core] Fix composite function approximation for non-integer stops
2017-06-16 12:46:12 -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
9d276f3b0f
[core] Dynamic program compilation for data-driven properties
2017-06-13 12:21:50 -07:00
John Firebaugh
3270440f23
[core] Per-tile glyph/icon atlases
2017-06-13 10:18:43 -07:00
Bruno de Oliveira Abinader
a05f060153
[core] Added Backend::{assume,set}ScissorTest
2017-06-13 13:37:41 +03:00
Bruno de Oliveira Abinader
28eb2e6354
[core] Added Backend::{assume,set}Viewport
2017-06-13 13:37:41 +03:00
Anand Thakker
f59eb822e1
Fix undefined memory access in getCoveringRanges() ( #9227 )
...
* Add simple unit tests for SymbolSizeBinder
* Fix bug in symbol size uniform value calculation
For camera functions we were setting the zoom levels in "covering ranges" to
`[(zoom stop <= tile zoom), (zoom stop >= 1 + tile zoom)]`, but then evaluating
the function at `[tile_zoom, tile_zoom + 1]`.
* Check for it != end() before accessing it->first
2017-06-09 06:28:14 -04:00
John Firebaugh
9dfc2d924d
[core] Collection-level immutability
...
Introduce a second level of immutability, over each of the collections held by a style: sources, images, and layers. Tracking immutability at this level allows us to short-circuit significant portions of the RenderStyle update logic via a simple equality check, greatly improving performance.
2017-06-05 19:38:08 -07:00