Commit Graph

8005 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
c4e5ebbfee [Qt][build] Run Qt valgrind test on the bots 2016-06-09 19:56:35 +03:00
Thiago Marcos P. Santos
8bbb721636 [Qt][build] Updated valgrind supression and make it a target for Qt 2016-06-09 19:56:35 +03:00
Minh Nguyễn
fd87537482 [osx] MGLMapView needs to be layer-backed
Clarified the installation instructions to explain how to make the map view layer-backed on OS X.
2016-06-09 09:29:42 -07:00
John Firebaugh
6c05e51cbc [linux] Mesa 11.2.2 (#5290) 2016-06-08 16:24:39 -07:00
Jesse Bounds
685d23862b Merge branch 'release-ios-v3.2.2' 2016-06-08 10:19:22 -07:00
Jesse Bounds
87d1191b84 [ios] Update changelog and bump version to 3.2.3 2016-06-07 15:50:55 -07:00
Jesse Bounds
c9c0767a1d [ios] Update telem domain and certs
Change domain from api -> events
Replace old certs with new ones with the same name. The new certs
have an expiry that is further out.
2016-06-07 14:57:51 -07:00
Jesse Bounds
fe92d590bb [ios] Force update from display link when display link is created.
This forces the call of the map view's display link target when the
display link is created. When a map view is shown the first time
this is not required. However, if the display link was torn down
and then recreated due to the map view being removed / obscured in the
view hierarchy the map view delegate may expect to be informed when
the map view did finish loading the map when it is shown again.

This adds a call to `updateFromDisplayLink` just after a display link
is created which helps trigger a full refresh of the map in the sense
that all delegate methods get exercised including
`mapViewDidFinishLoadingMap`.
2016-06-07 14:56:41 -07:00
Minh Nguyễn
e503f9279f Fix crash in userLocationVerticalAlignment, analyzer warning (#5278)
* [ios] Fixed crash in userLocationVerticalAlignment

Avoid creating an array with nil.

Fixes #5274.

* [ios] Fixed analyzer warning

Fixed a write-without-read analyzer warning introduced in #5235.
2016-06-07 14:14:41 -07:00
Jason Wray
9746f76744 [docs] Reorganize and update development instructions (#5233)
iOS
- Add section headers.
- Add more detail to `make` packaging commands and emphasize that Debug
  is the default build type.
- Manually checking out git submodules is no longer necessary.

Core
- Add 'Keeping up to date' section that mentions submodules.
2016-06-07 13:55:14 -07:00
Thiago Marcos P. Santos
62bc6e29c8 [core] Fix deleter mismatch
delete[] was being called for a malloc() allocated C buffer.

Found by valgrind:

```
==23065== Mismatched free() / delete / delete []
==23065==    at 0x4C2F77B: operator delete[](void*) (vg_replace_malloc.c:621)
==23065==    by 0x50C5529: std::default_delete<unsigned char []>::operator()(unsigned char*) const (unique_ptr.h:119)
==23065==    by 0x523EC85: std::unique_ptr<unsigned char [], std::default_delete<unsigned char []> >::reset(unsigned char*) (unique_ptr.h:581)
==23065==    by 0x523E3D4: mbgl::Raster::upload(mbgl::gl::ObjectStore&) (raster.cpp:63)
==23065==    by 0x520CA08: mbgl::RasterBucket::upload(mbgl::gl::ObjectStore&) (raster_bucket.cpp:16)
==23065==    by 0x520E56A: mbgl::Painter::render(mbgl::style::Style const&, mbgl::FrameData const&, mbgl::SpriteAtlas&) (painter.cpp:130)
==23065==    by 0x52BE15A: mbgl::Map::Impl::render() (map.cpp:265)
==23065==    by 0x52BD9BE: mbgl::Map::render() (map.cpp:175)
==23065==    by 0x50C9EB4: QMapboxGL::render() (qmapboxgl.cpp:579)
==23065==    by 0x4056D3: MapWindow::paintGL() (mapwindow.cpp:166)
```
2016-06-07 23:34:50 +03:00
Bruno de Oliveira Abinader
cfac924606 [core] s/SharedTexture/PooledTexture/ 2016-06-07 22:42:18 +03:00
Minh Nguyễn
20fe1d2be4 [ios] Point podspec to API reference (#5267)
The Documentation link on CocoaPods.org should point to the API reference, not to the main ios-sdk front page, which is already linked right above.
2016-06-07 12:22:10 -07:00
Mike Morris
ba5d2a4b4d node-v3.2.1 2016-06-07 11:57:53 -04:00
Bruno de Oliveira Abinader
4294b0f83a [core] mbgl::Image is now movable, noncopyable 2016-06-07 16:45:12 +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
269124ec26 [core] Include type in #pragmas
Part of https://github.com/mapbox/mapbox-gl-shaders/pull/13.
2016-06-07 15:04:02 +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
Minh Nguyễn
b761aad4e6 [ios] Bring annotation view to front when selected
Fixes #991.
2016-06-07 00:53:10 -07:00
Minh Nguyễn
b3d9e125b1 [ios] Avoid adding icon when relocating annotation
Fixed an issue that caused a default annotation icon to appear beneath an annotation view when relocating the annotation.
2016-06-06 16:00:45 -07:00
Minh Nguyễn
654f015639 [ios] Removed unused annotation image code
Removed unused annotation image code from iosapp, now that bulk-added point annotations are backed by annotation views.
2016-06-06 16:00:45 -07:00
Minh Nguyễn
62149410fa [ios, osx] Ignore multipoints
Ignore multipoints (as opposed to polylines and polygons) when adding annotations, just like we ignore multipolylines, multipolygons, and shape collections.

In osxapp, break multipoint features into points before adding them as annotations.
2016-06-06 15:40:52 -07:00
Young Hahn
126f388fdb Update shaders hash (#5261) 2016-06-06 17:54:07 -04: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
Thiago Marcos P. Santos
874fa41c12 [android] Do not use lock-free types on Android
They are not supported by ARMv5 and the compiler is generating
bogus code. std::atomic might be implemented lock-free for some
types, but we are going to introduce a naive polyfill to make
sure that doesn't happen on ARMv5 (only).
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
Brad Leege
7a97d7bd90 [android] #5186 - Starting rotateSessionId before Telemetry Starts and ensuring that mapboxSessionId is initialized 2016-06-06 10:50:06 -05:00
Konstantin Käfer
0fe60d398e [build] add benchmark target 2016-06-06 13:50:55 +02:00
Minh Nguyễn
d3fe798493 [ios] Split out MGLMapViewDelegate into separate header 2016-06-06 01:28:04 -07:00
Jesse Bounds
2fe7d04e5e [ios] Update podspecs for 3.3.0-beta.1 2016-06-03 16:17:56 -07:00
Minh Nguyễn
aedaef832f [ios] Updated changelog
Added entries to the iOS SDK changelog for #5124, #2444, #5141, #5164. Removed entries for changes made since the last release; they go in the GitHub prerelease notes but not here in this document.
2016-06-03 16:00:26 -07:00
Minh Nguyễn
1f622fe48f [ios] Made annotation views accessible
Annotation views now serve as their own accessibility elements. The developer’s own subclass of MGLAnnotationView can customize the view’s accessibility frame and/or path to more accurately reflect the visual hit target.
2016-06-03 15:13:21 -07:00
Minh Nguyễn
1fdda914e0 [ios] Corrected annotation view accessibility frame
Corrected the accessibility frames of annotation views to match the views’ bounds instead of the bounds of the default annotation image (which could be empty if no default GL point annotation has been added).

Fixes #5038.
2016-06-03 15:13:17 -07:00
Mike Morris
ab5e8fb183 node-v3.2.0 2016-06-03 17:29:12 -04:00
John Firebaugh
7a43f8bd1e [node] Fix typo 2016-06-03 09:58:31 -07:00
John Firebaugh
2fd673befc [docs] Remove references to manual submodule initialization 2016-06-03 09:51:39 -07:00
John Firebaugh
a758b41b06 [build] Fix mason submodule initialization 2016-06-03 09:51:39 -07:00
Max Vilimpoc
e47fe86d5d Ensure version tag always has 3 parts. (#5225) 2016-06-03 09:15:56 -07:00
timrobertson100
c11ccd0587 Updated readme with clear instructions that this requires Node v4.x and v5+ has issuess. See https://github.com/mapbox/mapbox-gl-native/issues/5144 (#5222) 2016-06-03 09:13:35 -07:00
Bruno de Oliveira Abinader
e9dcfa0ed6 [build] Added Bitrise Qt5 status image to README.md [skip ci] 2016-06-03 15:42:57 +03:00
Bruno de Oliveira Abinader
f3b168b9a8 [build] Added Bitrise Qt{4,5} OS X
Part of #5121.
2016-06-03 12:22:12 +03:00
Bruno de Oliveira Abinader
623da8bfeb [test] Added mbgl::gl::TexturePool tests 2016-06-03 11:03:16 +03: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