Thiago Marcos P. Santos
65e2822f21
[Qt] Use Qt text codec instead of nunicode
...
Remove one extra dependency. Qt has some bugs on the text codec it
seems, but it is also important to keep the behavior aligned with
the client API.
2016-07-22 18:56:30 +03:00
Thiago Marcos P. Santos
0f367c93d0
[tests] Added a PT string on text conversions tests
2016-07-22 16:59:01 +03:00
Brad Leege
1972d932d5
Merge branch 'release-android-v4.1.1'
...
# Conflicts:
# platform/android/MapboxGLAndroidSDK/gradle.properties
# test/util/mapbox.cpp
2016-07-19 16:32:45 -05:00
Konstantin Käfer
6e830725de
[android] #5725 - Cherry picking 559f3a654b
2016-07-19 13:31:11 -05:00
Konstantin Käfer
559f3a654b
[core] add check for missing sprite URL file extension
2016-07-19 16:01:24 +02:00
Thiago Marcos P. Santos
2425cf4ef8
Revert "[android] Do not create Timers on Default main loops"
...
This reverts commit 13cd75f099 .
2016-07-06 17:43:09 +03:00
Thiago Marcos P. Santos
13cd75f099
[android] Do not create Timers on Default main loops
...
Not supported, because we don't have control over the Looper
timeout like we do for Loopers we create. On the main thread,
Android takes care of making the application sleep and sets
an arbitrary timeout. This could be properly fixed by implementing
timers in Java, but we don't really have the use case of timers
in the main thread.
2016-07-05 21:04:27 +03:00
jingsam
e82ecc60ac
mapbox: URL containing query string causes infinite loop ( #5554 )
...
* correct all EXPECT_EQ(actual, expected) to EXPECT_EQ(expected, actual)
* fix getMapboxURLPathname() of URL with querystring
* add test for normalizeSourceURL of non-mapbox protocal
* Update mapbox.cpp
2016-07-04 00:26:28 -07:00
Thiago Marcos P. Santos
ddc6bc330f
[tests] Add memory tests
...
Simple tests that will render a raster and a vector map and
hopefully the valgrind bot will detect something wrong if any.
The other test will look for application lifetime leaks that cannot
be detected with valgrind. It can also detect GL leaks if they are
very expressive. A threshold is needed because of memory will grow
anyway due to fragmentation.
2016-06-21 19:12:32 +02:00
Bruno de Oliveira Abinader
6e22de8cce
[tidy] Check modernize-use-auto
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-auto.html
2016-06-13 23:32:06 +03:00
Konstantin Käfer
2bdecdf9f9
[core] fix pedantic warning messages
2016-06-13 11:16:19 +02:00
Bruno de Oliveira Abinader
9b6c2e6940
[test] Added Projection tests
2016-06-13 10:11:20 +03:00
Konstantin Käfer
aa88ca4757
[core] remove unused code
2016-06-07 13:55:35 +02:00
Konstantin Käfer
c5fc7f1980
[core] use rapidjson's dtoa implementation to stringify floating point numbers
2016-05-18 12:26:51 +02:00
Konstantin Käfer
002393bdea
[core] remove MockView and View dependency in Transform
2016-05-18 12:07:21 +02:00
Bruno de Oliveira Abinader
c13dd32242
[core] Added Viewport mode
...
Satisfies embedding platforms that requires the viewport coordinate
systems to be set according to its standards e.g. viewport mirrored
vertically.
2016-05-11 15:48:51 +03:00
Konstantin Käfer
7332ae0073
[core] retain tiles differently and remove old TileID class
2016-05-10 14:50:56 +02:00
Konstantin Käfer
ec70125e41
[core] move TileData and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
Konstantin Käfer
dde59eaf76
[core] move Painter and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
John Firebaugh
ce2a06e677
[core] Privatize math.hpp and vec.hpp
2016-05-05 11:16:57 -07:00
Thiago Marcos P. Santos
a818917714
[Qt] Make it possible to disable libwebp and libjpeg-turbo at build time
...
Pull less dependencies.
2016-05-05 18:47:14 +03:00
Ansis Brammanis
61d14089e0
[core] implement queryRenderedFeatures
2016-04-29 12:00:24 -07:00
John Firebaugh
6e78eabfff
[core] Clean up ThreadContext vestiges
2016-04-15 09:56:18 -07:00
Konstantin Käfer
618b9f1dbf
[darwin] use CFRunLoopSourceInvalidate() to also cancel any pending AsyncTask invocations
2016-04-12 12:46:59 -07:00
John Firebaugh
1209ae4213
[test] This "very unlikely" condition in fact happens regularly in CI ( #4679 )
2016-04-11 16:31:56 -07:00
John Firebaugh
169755e89a
[core] Unify FileRequest and WorkRequest
2016-03-24 10:54:32 -07:00
John Firebaugh
2f9e6f4e94
[core] Allow the use of special characters in property field names
...
Fixes #4336
2016-03-23 17:15:18 -07:00
Konstantin Käfer
c587eefbb1
[ios] make unit tests work on iOS and iOS Simulator
2016-03-22 11:56:01 -07:00
Konstantin Käfer
db5ac4785f
[test] rearrange test files so they're not in the fixtures folder
2016-03-22 11:56:01 -07:00
Bruno de Oliveira Abinader
ac70ada2d3
[core] Check for NaNs in mbgl::util::{min,max,clamp}
2016-03-18 00:53:14 +02:00
Bruno de Oliveira Abinader
3879bc6a4e
[core] Make vec{2,3,4} operator bool explicit
2016-03-11 02:24:09 +02:00
Bruno de Oliveira Abinader
026b6d4c01
[core] Coordinate wrapping fixes
...
- Make returning LatLngs unwrapped by default.
- PointAnnotation and ShapeAnnotation are always wrapped so they can be
selected via intersection from the visible tile boundaries.
- Fixes LatLng::wrap() calculation.
- Fixes LatLng::unwrapForShortestPath() calculation.
The new unwrapForShortestPath algorithm unwraps the start coordinate
either forwards or backwards depending on the end coordinate value, so
we can always cross the antimeridian when needed and still obtain a
wrapped end coordinate in the end.
Fixes #4214 .
2016-03-10 03:36:45 +02:00
John Firebaugh
8fee0f33c0
[core] Fix RunLoop::run() behavior when called a second time
2016-03-08 10:28:01 -08:00
Bruno de Oliveira Abinader
411a562061
[core] Enforce constants usage
...
Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever
possible.
2016-03-01 20:58:54 +00:00
John Firebaugh
d66d145c6e
[core] Remove RunLoop::{ref,unref}
2016-02-16 12:48:50 -08:00
John Firebaugh
c2ab5b34a7
[tests] Fix build
2016-02-11 18:01:53 -08:00
Young Hahn
43c44eccdc
Allow using tileSize: 512 as a switch to trade retina support for 512px raster tiles
2016-02-11 11:28:35 -08:00
John Firebaugh
025375ad0b
[core] Cache with mapbox:// tile URLs
2016-02-10 15:40:20 -08:00
John Firebaugh
7d6c6c00ca
[core] Refactor tileCover
2016-02-10 15:40:20 -08:00
Konstantin Käfer
a5c9103656
[core] compute the actual clipping masks that we have to draw with getStencils()
2016-02-10 11:35:17 +01:00
John Firebaugh
37c27f3a8f
[core] Improve LatLngBounds API
...
* Use "named constructors": empty, world, hull
* Make the two-argument constructor lenient (i.e., it is a hull operation)
* Add various accessors
* Enforce a single empty representation
2016-02-02 23:04:18 -08:00
John Firebaugh
b97dcbc125
[tests] Reorganize tests to match src structure
2016-02-02 11:31:13 -08:00