Commit Graph

10659 Commits

Author SHA1 Message Date
Ivo van Dongen
005dc6d122 [core] check source usage before remove 2017-05-30 13:07:03 +03:00
Ivo van Dongen
ff3dc29ffd [core] ensure layer::accept works with non-void return values on gcc 2017-05-30 13:07:03 +03:00
Bruno de Oliveira Abinader
b83dfb7eb5 Revert "[core] Factor timePoint initialization"
This reverts commit 3790caafa3.
2017-05-30 13:03:07 +03:00
Ivo van Dongen
5cf0fc0f8b [core] default file source - ensure thread safety for cached values 2017-05-27 10:05:36 +03:00
Ivo van Dongen
89129379f1 [core] default file source - ensure thread safety for local file and asset requests 2017-05-27 10:05:36 +03:00
Ivo van Dongen
b353f45fed [core] add test to demonstrate waiting threads in mailbox::receive won't crash on self-closing 2017-05-27 09:25:03 +03:00
Ivo van Dongen
b608d85db7 [core] allow self closing mailbox/actor 2017-05-27 09:25:03 +03:00
Asheem Mamoowala
f0d0e7423b Refactor RenderLayer and RenderSource to be more friendly for Non-tiled sources (#9058) 2017-05-26 16:54:36 -07:00
John Firebaugh
2e0ceeb9c1 [core] Don't need unique_ptr for AnnotationManager 2017-05-26 11:21:56 -07:00
John Firebaugh
aa216d0025 [core] Don't use a separate SpriteAtlas for annotation images
Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817.
2017-05-26 11:21:56 -07:00
John Firebaugh
6cf9d5cfbf [test] Lower memory ceiling
We gained a lot of overhead by reducing the initial SpriteAtlas size.
2017-05-26 11:21:56 -07:00
John Firebaugh
d766af44c8 [core] Auto-growable SpriteAtlas using shelf-pack 2017-05-26 11:21:56 -07:00
John Firebaugh
e4e08aca79 [tests] Add test for calling addAnnotationImage with an existing ID 2017-05-26 11:21:56 -07:00
John Firebaugh
2c8343aa82 [core] Block in Mailbox::close() until neither receive nor push are in progress
Otherwise, an ActorRef that's in the process of sending a message could attempt to access an invalid Scheduler reference:

      Thread 1                     Thread 2
--------------------------------------------------
 Scheduler::Scheduler
     Actor::Actor
                              weakMailbox.lock()
     Actor::~Actor
 Scheduler::~Scheduler
                               mailbox->push()
                             scheduler.schedule() 💣
2017-05-24 08:19:19 -07:00
Ivo van Dongen
8b448786fe [core] cleanup debug logging 2017-05-24 11:21:34 +03:00
John Firebaugh
1759603e12 [core] Simplify and fix sprite atlas coordinate calculations
* Always return image metrics exclusive of padding
* Work with integer coordinates whenever possible
* Eliminate redundant SpriteAtlasElement members
* Fix asymmetric re-padding in getIconQuad when pixelRatio != 1
* Add explanatory comments
2017-05-23 12:59:27 -07:00
John Firebaugh
9e1cbbeacb [node] Pixel ratio may be floating point 2017-05-23 12:59:27 -07:00
John Firebaugh
71c8f6aa10 [core] Move pattern coordinate division by texture size into shader
This makes pattern usage more like icons, and will be necessary for data-driven *-pattern properties.
2017-05-23 12:59:27 -07:00
John Firebaugh
72b13cef6a [core] Remove unnecessary optionals in PositionedIcon
Lack of icon is already checked at the call site of shapeIcon; no need to check hasArea() here.
2017-05-23 12:59:27 -07:00
Ivo van Dongen
3d26574cb4 [android] replace branches on layer types with visitors 2017-05-23 10:06:56 +03:00
Ivo van Dongen
95d2ed7b95 [android] owning constructor for custom layer 2017-05-23 10:06:56 +03:00
Ivo van Dongen
2dd8553096 [core] forward visitor in layer::accept 2017-05-23 10:06:56 +03:00
Chris Loer
67811c9f48 [core] Update gl-js submodule. 2017-05-22 10:54:45 -07:00
Chris Loer
6ceecb5581 [core] Disable letter-spacing for Arabic labels (issue #9057) 2017-05-22 10:54:45 -07:00
Eimantas
9e6a79ad9b [ios, macos] Add overlays property to MGLMapView (#8617)
* Add `overlays` property to `MGLMapView.mm`

Implemented by filtering the `annotations` property for
annotations that conform to `MGLOverlay` protocol.

* Handle `nil` case when returning overlays

* Add basic documentation for `overlays` property

Copied verbatim from `annotations` property. Changed types.

* Add `overlays` property to iOS sdk

Implementation is identical to the one in macOS SDK.

* Match curly braces style

* Make `overlays` property `nonnull` on iOS

* Make `overlays` property `nonnull` on macOS

* Make cosmetic changes

* [ios, macos] Moved changelog entry to master
2017-05-20 20:32:10 -07:00
John Firebaugh
1f921299b0 [core] Make ExponentialStops behavior consistent; add tests 2017-05-19 11:48:45 -07:00
John Firebaugh
bdff99c853 [core] Eliminate round-trip through Value in CameraFunction::evaluate 2017-05-19 11:48:45 -07:00
Bobby Sudekum
895275d6fc Release node-v3.5.2 (#9052) 2017-05-19 11:27:48 -05:00
Konstantin Käfer
d664a3e05e [core] leave Image objects in a valid state after premultiply/unpremultiply 2017-05-19 14:13:07 +02:00
Minh Nguyễn
281d3d4f8c Merge branch 'release-ios-v3.5.0-android-v5.0.0' into 1ec5-release-ios-v3.5.4 2017-05-18 18:04:07 -07:00
Asheem Mamoowala
8c75001443 [core][ios] Use explicit submodule update for ios target (#8973)
Closes #8750
2017-05-18 13:48:26 -07:00
Chris Loer
cd4e67968a [core] Don't unnecessarily request glyphs for verticalized punctuation.
Issue #8982.
2017-05-18 11:19:17 -07:00
Konstantin Käfer
eae2c715f1 [core] add error for non-virtual destructor deletes + add virtual dtors 2017-05-18 16:57:12 +02:00
Konstantin Käfer
5d7e54a815 [core] Make destructor virtual to avoid object splicing during destruction 2017-05-18 16:57:12 +02:00
Chris Loer
77b24bc0d3 [core] Throttle tiles to redo symbol placement at most once every 300ms.
Fixes issue #8435 and prepares for pitch-scaling changes in issue #8967.
2017-05-17 16:25:06 -07:00
John Firebaugh
e7154adac3 [core] Remove redundant SpriteAtlasElement members 2017-05-17 11:23:47 -07:00
John Firebaugh
786707649a [core] Remove ambiguous get{Width,Height} accessors from style::Image 2017-05-17 11:23:47 -07:00
John Firebaugh
63558e06ad [core] Remove obsolete modular arithmetic on atlas coordinates
We switched to 16-bit coordinates in attributes in b0cb8715ed, so there's no longer any reason to require that they are divisible by four.
2017-05-17 09:36:43 -07:00
John Firebaugh
4c26759b69 [core] Remove WorkQueue
No longer used as of 5cdf838a38.
2017-05-17 09:28:26 -07:00
Bruno de Oliveira Abinader
c2f7f48a22 [build] Use gdb 2017-04-08-aebcde5 2017-05-17 17:39:46 +03:00
John Firebaugh
cc1ea759a6 [core, node, darwin, android, qt] Make image ID part of Image
More like Source and Layer.
2017-05-16 12:26:35 -07:00
Konstantin Käfer
c0f6e5ccef [build] Use workflows instead of a trigger build 2017-05-16 16:58:12 +02:00
John Firebaugh
934cf99766 [test] Update gl-js submodule 2017-05-15 14:12:25 -07:00
jingsam
e4c66ac27c Update README.md 2017-05-15 10:16:42 -07:00
Roman Chichina
f2ad940c39 [core] mbgl-render: allow scale factor to be floating point number 2017-05-15 18:55:47 +02:00
John Firebaugh
244fdaa405 [qt] Un-deprecate QMapboxGL::setTransitionOptions
It's still relevant for runtime-styling driven paint property changes.
2017-05-15 09:45:55 -07:00
John Firebaugh
9eba2a66d1 [core, node, darwin, qt] Remove support for paint classes 2017-05-15 09:45:55 -07:00
John Firebaugh
e473f2dcce [core] cascade ⇢ transition / cascading ⇢ transitionable 2017-05-15 09:45:55 -07:00
John Firebaugh
da4d735e2c [core] Unify {Paint,Layout,Light}Properties 2017-05-15 09:45:55 -07:00
John Firebaugh
2690a65f8d [core] *LayerImpl::cascading ⇢ paint 2017-05-15 09:45:55 -07:00