Commit Graph

9365 Commits

Author SHA1 Message Date
Konstantin Käfer
9353fcbf4c [build] move default_styles to platform/default 2016-11-22 20:58:51 +01:00
Konstantin Käfer
a71868fc8d [build] move Reachability to platform/darwin 2016-11-22 20:58:51 +01:00
Konstantin Käfer
398344addc [build] use scripts/generate-core-files.sh to auto-generate core-files.cmake 2016-11-22 20:58:51 +01:00
Tobrun
5877d786e1 [android] - use double to restore instance state of MyLocationView (#7146) 2016-11-22 19:23:20 +01:00
Konstantin Käfer
ba2e44d4d7 [build] publish binary size statistics to S3 2016-11-22 17:33:25 +01:00
Konstantin Käfer
66e6946b8c [build] Use thin archives for Android 2016-11-22 15:55:37 +01:00
Konstantin Käfer
bf7ab7ba2b [build] reduce framework size for Release builds on macOS 2016-11-22 15:54:26 +01:00
Tobrun
dff218c30e [android] - allow deselection of a MarkerView not found in current viewport (#7140) 2016-11-22 15:21:06 +01:00
Pablo Guardiola
6ecad41858 Add simple map activity to testapp (#7136)
* [android] 6481 - add simple map activity to test app

* [android] #6481 - exclude SimpleMapActivity
2016-11-22 10:05:29 +01:00
Tobrun
f92439d180 [android] - run all espresso tests on Firebase test lab (#6980) 2016-11-21 13:16:22 +01:00
Konstantin Käfer
ce0169e189 [build] add --gc-sections to Android link flags to reduce binary size 2016-11-18 14:45:42 +01:00
Tobrun
109565c400 [android] - allow compass update without animation (#7094) 2016-11-18 13:45:32 +01:00
Konstantin Käfer
6c91c3e519 [core] replace <regex> usage with plain string code to reduce binary size 2016-11-18 10:38:49 +01:00
Fredrik Karlsson
d959fe1522 [android] fixed horizontal panning going the opposite direction 2016-11-18 09:21:38 +01:00
Bruno de Oliveira Abinader
97288cae96 [test] Check all zoom levels in Annotations.SymbolAnnotation 2016-11-18 09:13:53 +01:00
Bruno de Oliveira Abinader
e9f849e4d0 [core] Sort symbol render tiles prior to rendering 2016-11-18 09:13:53 +01:00
Bruno de Oliveira Abinader
ce14037b55 [core] Cleanup symbol clipping 2016-11-18 09:13:53 +01:00
John Firebaugh
38fcbe21d4 [core] Convert style properties to a tuple-based approach
This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md.

The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily.

Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state.
2016-11-17 15:13:38 -08:00
Chris Loer
d4fc66af39 [core] Add minimal line breaking support for RTL text. 2016-11-17 14:33:03 -08:00
Chris Loer
bceeba29a3 [core] Add ICU package for Bidirectional text support and arabic text shaping.
Apply bidi and shaping in symbol_layout.
Add utility functions for converting to and from UTF-16.
2016-11-17 14:33:03 -08:00
Chris Loer
40b0c8d076 [core] Use UTF-16 instead of UTF-32 for label features to avoid extra conversions and reduce in-memory size.
Continue to use uint32 as glyph ID to maintain Glyph PBF, even though we're only using 16 bits of that uint32.
Use std::codecvt instead of boost::unicode_iterator for UTF8->UTF16 conversions.
2016-11-17 14:33:03 -08:00
John Firebaugh
5c7aeec5c7 [tests] Update test-suite 2016-11-17 13:48:00 -08:00
John Firebaugh
251035cd75 [node] Add setZoom and setPitch support 2016-11-17 13:48:00 -08:00
John Firebaugh
f1e10e31a5 [node] Revert semantics of Map#render 2016-11-17 13:48:00 -08:00
Konstantin Käfer
5f010b0979 [build] don't abort with an error code to allow reporting partial builds 2016-11-17 15:42:44 +01:00
Konstantin Käfer
cbe5de98fa [build] create separate bitrise build for binary size tracking 2016-11-17 15:42:44 +01:00
Minh Nguyễn
333b8baa91 [ios, macos] Updated changelog for #7091 2016-11-17 13:39:05 +01:00
Konstantin Käfer
117062acc1 [core] cache raster tiles 2016-11-17 11:09:30 +01:00
Molly Lloyd
3380f0803a [core] update native for line property function shaders changes (#6658)
* [core] update shaders for line property functions

update deps, define device pixel ratio for all shaders

[core] create ShaderParameter struct to store pixel ratio and overdraw param

repair rebase errs

update shaders to include pixel ratio

make sure collision_box never overdraws

update test suite, move shaders to Painter::render so the correct pixel ratio is applied

move shader compiling back to the Painter constructor

rebase from shader --> program refactor

re-factor parameters for collisionBox and debug programs

remove unused vars from line-program, move blur math to shader

update core files

remove unecessary files

update shaders PR, remove comments

bump test suite sha

fix formatting, incorporate feedback

refactor program.hpp

* [core] remove line transformations that were moved to the shaders, bump shader sha

* [core] shorten ProgramParameter instantiation

* [core] bump shader+test suite shas
2016-11-16 17:34:33 -08:00
Bruno de Oliveira Abinader
a5ac643166 [build] Updated test-suite 2016-11-17 01:01:15 +01:00
Bruno de Oliveira Abinader
ad38ff230b [linux] Ensure EGL uses OpenGL ES 2.0 client API 2016-11-17 01:01:15 +01:00
Bruno de Oliveira Abinader
0ef52d7f7c [build] Added EGL & GLX CI builds 2016-11-17 01:01:15 +01:00
Tiago Vignatti
32b6f2fa03 [linux] Implement EGL headless backend
Original author: Tiago Vignatti <tvignatti@gmail.com>

Calling X11 window system is superfluous for headless rendering. This patch
implements EGL platform using GBM, which is slightly more simple than the GLX
path when using X11.

In principle there are no big advantages in terms of performance etc. My
motivation behind this was to get in touch with the code and the project. For
testing I'm using:

  $ unset DISPLAY && ./build/linux-x86_64/Debug/mbgl-test

v2: rebased patch against the new cmake changes; walk through render node to
find a valid one; remove EGLSurface completely cause windows are not needed
here.
2016-11-17 01:01:15 +01:00
Bruno de Oliveira Abinader
50f0f919c3 [test] Use shared headless display
Prevents some OpenGL implementations from bailing out.
2016-11-17 01:01:15 +01:00
John Firebaugh
5479b75c9f [build] Use npm install --ignore-scripts
Should be faster than npm update.
2016-11-15 14:01:30 -08:00
John Firebaugh
d9862fa38c [tests] Disable "ContinuousRendering" test; causing spurious CI failures 2016-11-15 13:55:16 -08:00
John Firebaugh
9d2be04461 [core] Return to static, per-segment approach to VAOs
This is safer now -- it can be an implementation detail of Segment/Context. And the typing of SegmentVector now ensures that the attributes and program match.
2016-11-15 13:55:08 -08:00
John Firebaugh
377d0fb0d2 [core] Introduce SegmentVector 2016-11-15 13:55:08 -08:00
John Firebaugh
58877d1b3d [core] Assign attribute locations sequentially
Two reasons to prefer explicit sequential location assignment, rather than relying on the GLSL linker to assign locations:

* For data-driven properties, we want to have the option to use glDisableVertexAttribArray plus glVertexAttrib*. In order to use glDisableVertexAttribArray, we must avoid using attribute location 0, which cannot be disabled.
* We want to use the same VAO in cases where, say, a fill layer might be rendered with FillProgram at first, and then FillPatternProgram later. VAOs do not store the program binding, only the attribute bindings, so as long as the two programs have the same attributes and attribute locations, only a single VAO (per segment) is needed.
2016-11-15 13:55:08 -08:00
John Firebaugh
0fe8d8d7b4 [build] Explicitly state required node version 2016-11-15 12:40:54 -08:00
John Firebaugh
bcad3b6d4b [core] Use indexed rendering for collision boxes 2016-11-15 12:39:49 -08:00
Mike Morris
aeba7cce84 node-v3.4.2 2016-11-15 13:31:48 -05:00
Mike Morris
f50de16260 [node] publish Node.js Linux binaries with GLX
run test suite with OSMesa in Debug
2016-11-15 13:31:48 -05:00
Konstantin Käfer
1d80be00df [build] add binary size logging to macOS nightlies 2016-11-15 10:07:47 -08:00
Konstantin Käfer
df8c467056 [build] add binary size logging to iOS nightlies 2016-11-15 10:07:47 -08:00
Konstantin Käfer
36a04e49c8 [build] add binary size logging to Android nightlies 2016-11-15 10:07:47 -08:00
Konstantin Käfer
223a95a74f [build] add binary size logging to Linux Release builds 2016-11-15 10:07:47 -08:00
Justin R. Miller
c78c97f346 [ios, macos] refs #7060: properly check removed layers & sources (#7062) 2016-11-15 10:05:35 -08:00
Bruno de Oliveira Abinader
31206b4516 [build] Added nan@2.4.0 dependency 2016-11-15 18:28:30 +01:00
Justin R. Miller
f7db6cf760 [ios, macos] fixes #7059: raise exception for abstract sources on add (#7060) 2016-11-14 16:02:16 -08:00