Thiago Marcos P. Santos
d0b2db3826
Removed unneeded unique_ptr
2015-05-15 16:49:02 +03:00
Thiago Marcos P. Santos
b162fb7c6f
Make the MapContext object run on its own thread on the tests
...
The MapContext can only run on its own thread because it is
registering a EnvironmentScope and it is making many assertions
on Debug mode if its methods are being called on the Map thread.
2015-05-15 13:06:23 +03:00
Konstantin Käfer
40b604448f
add BinPack test
2015-05-12 20:46:56 -07:00
Brad Leege
d4fcb5bb98
Merge pull request #1469 from mapbox/1435-android-gl-crash
...
Android GL Crash
2015-05-11 11:42:21 -05:00
Leith Bade
703e0bc2ee
Ignore deactivate when no valid EGL display. Fixes #1435
...
Initialise NativeMapView's EGL variables before Map
Fix hang
Add check for double pause
Add test for double pause
2015-05-09 12:02:39 +10:00
Konstantin Käfer
24ea920810
ignore Transform changes with NaN parameters
2015-05-08 20:25:47 +02:00
Konstantin Käfer
8ee40a544e
make WorkRequests cancelable
2015-05-08 16:43:18 +02:00
Konstantin Käfer
e20faf7a8d
add worker cancellation test (failing)
2015-05-08 16:43:18 +02:00
Minh Nguyễn
53586f89b3
Added tests for 6292e95f80
2015-05-07 11:05:05 -07:00
John Firebaugh
5b4015ccba
Reference safety for Worker after callbacks
...
Joining a WorkRequest now ensures that either the after callback has
already been executed, or will never be executed.
Fixes #1438
2015-05-06 14:30:02 -07:00
John Firebaugh
a7df0781f8
Don't crash if ResourceLoader::_sprite is null
2015-05-05 13:34:46 -07:00
John Firebaugh
691756d7dd
Move ClipID to clip_id.hpp/cpp
2015-04-09 10:58:11 -07:00
John Firebaugh
d8411f26d2
Tile::ID ⇢ TileID
...
This allows making both Tile and TileID private.
2015-04-06 13:58:56 -07:00
Justin R. Miller
78085458f5
add style URL tests
2015-03-31 13:54:51 -07:00
Ansis Brammanis
14e8b4bb09
support wrapped bilinear scaling
...
to get rid of seams in repeating patterns.
https://github.com/mapbox/mapbox-gl-styles/issues/50#issuecomment-86159351
2015-03-26 10:45:23 +01:00
Konstantin Käfer
48c55af5c1
fix sprites for pixel ratios that are not 1 and 2
...
- OpenGL ES 2 doesn't allow NPOT textures with wrap-around
- The Sprite object reported the map's pixelRatio, even though it loaded @2x assets
- Copying icons from the sprite into the atlas now uses bilinear scaling to scale up to the actual size
2015-03-17 12:30:40 +01:00
John Firebaugh
0c985c024b
Revert "Move atlas ownership to Style"
...
This reverts commit bffee07154 .
2015-03-13 13:05:32 -07:00
John Firebaugh
bffee07154
Move atlas ownership to Style
...
This follows gl-js and just makes sense -- whenever the style changes
the atlases should be blown away.
Refs #957
2015-03-13 10:55:47 -07:00
Thiago Marcos P. Santos
124b49562d
Get rid of printf and cout by using Log::*
...
Use our logging system that will route the message accordingly on
the target platform.
Fixes #613
2015-03-12 14:19:32 +02:00
Thiago Marcos P. Santos
79f3149d9d
Update the FixtureLog
...
Now the FixtureLog is an Log::Observer instead of a backend. The
observer can sniff and filter log messages, that can be used
for fail a test if it emits a warning for example.
2015-03-12 13:28:41 +02:00
John Firebaugh
a5998dc59b
Fix conditional in normalizeSourceURL
...
The existing conditional would always be false, since it
was comparing a url that begins with "mapbox://". In fact
no conditional is necessary; the secure TileJSON resource
should always be requested.
2015-03-06 18:16:58 -08:00
Minh Nguyễn
cd83c48ed3
Insert {ratio} before extension, not inside access token
...
Fixes #959 .
2015-03-06 15:33:14 -08:00
Minh Nguyễn
8804c47d27
Only add {ratio} to raster tile URLs
...
Thanks to @mb12 for the suggestion.
2015-03-06 13:51:20 -08:00
Minh Nguyễn
a3d76dad10
Ported util::mapbox tests from mapbox-gl-js
...
Left out several tests that were redundant because mapbox.cpp only looks at the passed in access token.
2015-03-06 13:51:19 -08:00
Konstantin Käfer
032c245bfe
remove unused files
2015-02-04 10:49:06 +01:00
Konstantin Käfer
aa09aa321b
rearrange tests and make more robust
2015-02-04 10:49:06 +01:00
Konstantin Käfer
8a1fce547e
rearrange tests and add storage tests
2015-02-04 10:49:05 +01:00