Commit Graph

9299 Commits

Author SHA1 Message Date
Ivo van Dongen
822b83ae4e [android] fix source ownership 2016-11-11 13:46:10 +01:00
Ivo van Dongen
3a4a27c95f [android] fix layer ownership 2016-11-11 13:46:10 +01:00
Mike Morris
7d2f18b5ed node-v3.4.1 2016-11-10 14:16:31 -05:00
Tobrun
fcbb7c1860 [android] - check for default values when constructing a camera position from a CameraUpdate (#7002) 2016-11-10 19:10:07 +01:00
Konstantin Käfer
108a28faa8 [android] update viewport size when framebuffer size changed 2016-11-10 17:04:18 +01:00
Jesse Bounds
d0e8ed4bc3 Merge branch 'release-ios-v3.3.6' into merge-release-ios-v3.3.6 2016-11-09 20:36:11 -08:00
John Firebaugh
da725d7bf9 [node] Initial camera will be set automatically by style 2016-11-09 17:54:45 -08:00
John Firebaugh
a5e712d28b [node] Don't needlessly reset map state 2016-11-09 17:54:45 -08:00
John Firebaugh
31047b6cb5 [core] Default camera position to that specified by the style 2016-11-09 17:27:35 -08:00
Jesse Bounds
157ba2651f ios-v3.3.6 2016-11-09 13:56:25 -08:00
Jesse Bounds
8a84f3b279 [core] Back port changes for correct GL context in Map::onLowMemory()
This ports changes in
https://github.com/mapbox/mapbox-gl-native/pull/6972 to this version
of the map.
2016-11-09 10:43:25 -08:00
John Firebaugh
7ea0457e89 [core] Ensure correct GL context in Map::onLowMemory() 2016-11-09 09:57:20 -08:00
Jesse Bounds
8bf63ddb9c Revert "[core] Band-aid for crash triggered by unbound element buffer (#6844)"
This reverts commit 057b7b75ce.
2016-11-09 09:54:13 -08:00
Konstantin Käfer
16def03117 [core] add continuous rendering test that terminates once it settles down
This is to test that continuous mode stops rerendering once no further changes are needed, i.e. to test the absence of "busy rendering".
2016-11-09 17:55:59 +01:00
Konstantin Käfer
1afd993184 [core] don't initialize with Duration::min() to avoid arithmetic overflows
In FrameHistory::needsAnimation, we are computing "time - previousTime", but since previousTime was
initialized to Duration::min(), we got a integer overflow, which produced invalid values.
2016-11-09 17:55:59 +01:00
Ivo van Dongen
a9249b331a [android] test activity for runtime changes to symbols 2016-11-09 15:25:17 +01:00
Tobrun
33aa14c939 [android] - instrumentation tests upgrade, move view checking to utility class, remove inheritance in runtime style test (#6803)
update gitignore for generated tests

add camera move test

add realtime geojson to be excluded when generating Activity sanity tests

by default show workaround for showing a MapView in a dialog

add annotation tests

remove older camera tests, introduce tests for move, ease and animate, bring back setLatLng and getLatLng on MapView, add tests for internal camera API.

compass view tests

add tests for attribution and logo.

fix annotation tests

Rename Actiivity test class, split up annotation tests, added MarkerView tests, added infowindow tests, added MyLocationView tests

fix addRemoveLayer test by integrating map interactions inside a ViewAction
2016-11-09 12:56:49 +01:00
Konstantin Käfer
2411ec83b1 [build] don't rewrite style code for every build
revert of 93166aef48

On Android, we always rewrote the style code files, which lead to gratuitous recompiles
2016-11-09 11:10:22 +01:00
Tobrun
4030e86c33 [android] - fix inconsistency of float usage in CameraPosition and CameraUpdateFactory (#6941) 2016-11-09 10:51:40 +01:00
Tobrun
772324e8f2 Cherry pick release v4.2.0 (#6944)
* [android] - MyLocationView should facing above when location and compass bearing tracking are enabled. (#6829)

* [android] - use current animated rotation value for calculating animated marker rotation difference (#6826)

fix unit tests, input limiting is not handled by animateRotationBy instead of MarkerView.
Changed test to validate if method was called with correct value.

* [android] - only calculated offset margins for InfoWindow if View is found in current viewport, added example to the test app to test for regressions (#6877)

* upgraded okhttp dependency to latest version (#6880)

* Cancelable callback invocation (#6891)

* [android] - allow onCancel to be invoked from camera cancel callbacks

* set to null after finish

* [android]  - using bearing clockwise versus counterclockwise (#6917)

* [android]  - using bearing clockwise versus counterclockwise

* fixup brackets

* [android] - convert bearing values from core to Android SDK equivalent.
2016-11-09 10:42:18 +01:00
Vladimir Agafonkin
efc427f9bb update to mapbox-gl-shaders with vertex/fragment preludes (#6971) 2016-11-08 15:01:53 -08:00
Tobrun
2b81dee8d3 [android] - update make targets (#6958) 2016-11-08 18:38:29 +01:00
Konstantin Käfer
bcdbbbcac2 [core] don't assign clip IDs to tiles that aren't rendered 2016-11-08 18:09:58 +01:00
John Firebaugh
3b38cf48b7 [core] Require point size / line width for DrawMode constructors 2016-11-08 08:09:29 -08:00
John Firebaugh
52be5d480d [core] Put ignore in util namespace 2016-11-08 08:09:29 -08:00
John Firebaugh
d1e2fe511e [core] Introduce and use IndexedTuple 2016-11-08 08:09:29 -08:00
John Firebaugh
1db2ffbc1b [core] Use gl::Program to resolve some rough edges in the GL binding types
* Extract `ignore` util to separate header.
* `Segment` now tracks offset and length of indices, rather than primitives. This is more natural.
* Introduce `VertexVector` and `IndexVector` types. These types carry information about the intended draw mode (`Triangles`, `LineStrip`, etc.), and ensure that elements are always appended in a group size appropriate for that draw mode, for both indexed and unindexed rendering.
* `Program`, rather than `Drawable`, is now the unifying object for draw calls. `Program` is the best place to type check the draw call, because it is typed to carry information about the intended primitive, vertex type, attributes, and uniforms.
* Use the debug shaders for debug tile rendering, like gl-js.
* Fix the draw mode for background. It was drawing triangle strips with a triangles array. Surprised this didn’t cause issues. Now it’s type checked.
2016-11-08 08:09:29 -08:00
John Firebaugh
66bdbc3b96 [core] Introduce gl::Program template 2016-11-08 08:09:29 -08:00
John Firebaugh
36210fe4e9 [core] Make attribute binding more similar to uniform binding 2016-11-08 08:09:28 -08:00
Bruno de Oliveira Abinader
687ee1e1c9 [build] Remove unused gl/implementation.hpp 2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
8e99ae44dd [build] Use mesa-13.0.0-glx in CI builds 2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
d0ac12309b [core] Refactor HeadlessBackend 2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
297c303e88 [core] Refactor HeadlessDisplay 2016-11-08 18:02:38 +02:00
Fredrik Karlsson
5a828cb80f [ios, macos] override style spec documentation 2016-11-08 13:47:09 +01:00
Fredrik Karlsson
3002023a6c [ios] specify plist-file for settings bundle 2016-11-08 10:12:29 +01:00
Cameron Mace
6b85d4c2f9 added attribution tint color check (#6950) 2016-11-07 18:23:18 -05:00
John Firebaugh
2e76fca473 [tests] Update test-suite 2016-11-07 10:43:06 -08:00
John Firebaugh
aa08796767 [core] Separate pathway for notifying workers of new images/glyphs 2016-11-07 10:16:35 -08:00
Konstantin Käfer
1533d28314 [core] move Value class outside of Uniform to enforce explicit construction 2016-11-07 18:51:47 +01:00
Konstantin Käfer
bd3d4bc89a [core] force explicit initialization of uniform values
force users to use the actual names to avoid implicit conversion accidentally targeting the wrong shader
2016-11-07 18:51:47 +01:00
Konstantin Käfer
ed72581e0c [core] remove Uniforms::value in favor of direct construction 2016-11-07 18:51:47 +01:00
Tobrun
1f8f85fab3 6067 annotation manager (#6913)
* [android] - AnnotationManager and InfoWindowManager refactor

* make AnnotationManager independent from MapView/MapboxMap, add IconManager,

* make code unit testable

* added some class level documentation (for internal use)
2016-11-07 17:23:51 +01:00
Tobrun
5412191ab4 [android] - validate intent and contents before handling (#6938) 2016-11-07 14:38:04 +01:00
Ivo van Dongen
505bf7db7a [android] update custom layer example with invalidation example 2016-11-07 09:38:04 +01:00
Tobrun
ee073f6b96 [android] - rename attributes (#6894) 2016-11-07 09:37:43 +01:00
Tobrun
c5992d71f5 [android] - cleanup unused resources and gradle configurations. (#6896) 2016-11-07 09:25:17 +01:00
Konstantin Käfer
afd43eea3a [core] remove gl.hpp from all headers that don't need it 2016-11-04 21:24:05 +01:00
Konstantin Käfer
7b772611d5 [core] move pixel blitting to gl::Context 2016-11-04 21:24:05 +01:00
Konstantin Käfer
29c5c13aa2 [core] move OpenGL debug information printing to core 2016-11-04 21:24:05 +01:00
Konstantin Käfer
c90a559599 [core] move framebuffer reading to gl::Context 2016-11-04 21:24:05 +01:00