Commit Graph

7032 Commits

Author SHA1 Message Date
Minh Nguyễn
d26b956a48 [core] Cleaned up Transform
Eliminated many redundant methods on Transform. Minimized usage of TransformState::x and TransformState::y. Added convenient constructors for AnimationOptions. When scaling, passing in view’s origin as the anchor no longer anchors the scaling operation at the view’s center. To specify no anchor, use NaN.

Increased precision of worldSize(), now that it’s used much more heavily in transform methods.
2016-01-14 00:39:18 -08:00
Minh Nguyễn
27b308a234 [core] Separated AnimationOptions from CameraOptions 2016-01-14 00:39:12 -08:00
Ansis Brammanis
5119ce8155 [core] fix overscaled line patterns and re-enable render tests
fix #3489
fix #2648
2016-01-13 16:39:02 -08:00
Ansis Brammanis
f7acc91d21 [core] set u_texture uniform value
fix #1685
2016-01-13 16:01:41 -08:00
Ansis Brammanis
e577354567 [core] remove bilinear, nearest scaling, fix #3164 2016-01-13 15:02:41 -08:00
Ansis Brammanis
bdfa1277a5 [core] match icon rendering with -js
port https://github.com/mapbox/mapbox-gl-js/pull/1919/files
2016-01-13 14:48:07 -08:00
John Firebaugh
618902e06c [core] Remove request coalescing in OnlineFileSource 2016-01-13 13:43:05 -08:00
John Firebaugh
716a9c92cb [core] Inline a temporary variable which is now used only once 2016-01-13 13:40:31 -08:00
John Firebaugh
5a7d2fd60e [core] Eliminate platform::assetRoot()
I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
2016-01-13 13:40:31 -08:00
John Firebaugh
86c8446d3a [core] Simplify asset:// implementation
* Move asset:// URL handling to DefaultFileSource.
* AssetFileSource implements FileSource interface and follows familiar implementation patterns.
* Move default implementation to platform/default, zip implementation to platform/android.
* Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter.
* Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit.
2016-01-13 13:40:31 -08:00
John Firebaugh
2126e34e52 [core] Further clarify timeout calculations 2016-01-13 13:38:12 -08:00
John Firebaugh
54fc3831f2 [core] Use Seconds::max() rather than -1 for simpler logic 2016-01-13 13:38:12 -08:00
John Firebaugh
96781c0a8d [core] Inline OnlineFileRequestImpl::setResponse
In the cache response case, we don't want the failedRequests logic; cached errors, should they occur, shouldn't affect the scheduling behavior for real requests.
2016-01-13 13:38:12 -08:00
John Firebaugh
601e3d9d45 [core] Refactor down to two methods for scheduling a cache or real request 2016-01-13 13:38:12 -08:00
John Firebaugh
682b2335e5 [core] Inline OnlineFileRequestImpl::getRetryTimeout 2016-01-13 13:38:12 -08:00
John Firebaugh
ea45075e4d [core] Inline OnlineFileRequestImpl::checkResponseFreshness 2016-01-13 13:38:12 -08:00
John Firebaugh
6f9de6ae47 [core] Refactor to instance methods on OnlineFileRequestImpl 2016-01-13 13:38:12 -08:00
John Firebaugh
e9eb29719b [core] Simplify logic for notification with pre-existing response
We already had a condition that checks if a response is immediately available for an incoming request. Call the callback there, rather than in addObserver.
2016-01-13 13:38:12 -08:00
John Firebaugh
dd3ca81589 [core] Inline sole use of OnlineFileSource::Impl::update 2016-01-13 13:38:12 -08:00
John Firebaugh
f8d3cf41ae [core] Simplify OnlineFileSource::Impl::reschedule 2016-01-13 13:38:12 -08:00
Minh Nguyễn
61615a44fd [ios] Removed -testCenterSet
This test is causing frequent failures on Bitrise; the failure doesn’t appear to reflect a real-world problem.
2016-01-13 13:17:43 -08:00
Konstantin Käfer
e8705d535d [core] move SourceInfo parsing to StyleParser 2016-01-13 13:04:59 -08:00
Konstantin Käfer
cef05b9017 [core] move invariant Source ID from SourceInfo to Source 2016-01-13 13:04:59 -08:00
Konstantin Käfer
8cca5c89b2 [core] rename "id" to "tileID" to avoid naming conflicts 2016-01-13 13:04:59 -08:00
Konstantin Käfer
f00a6a997b [core] move invariant SourceType from SourceInfo to Source 2016-01-13 13:04:59 -08:00
Konstantin Käfer
62973f9e5a [core] move raster tile URL normalization to source parsing 2016-01-13 13:04:59 -08:00
Konstantin Käfer
1ff317c1cd [core] remove SourceInfo dependency from *TileData 2016-01-13 13:04:59 -08:00
Brad Leege
aac6b00dd0 Merge branch 'hotfix/android_x86_64' of git://github.com/Malinskiy/mapbox-gl-native into Malinskiy-hotfix/android_x86_64 2016-01-13 10:06:08 -06:00
Tobrun
9df48d4e2c [android] #3514 - update pro guard config 2016-01-13 13:03:28 +01:00
Tobrun
61ea751503 [android] #3514 - disable proguard in test app 2016-01-13 09:10:47 +01:00
kelvinabrokwa
73be3558d7 [core] seamless fill-pattern
seamless across dateline

upgrade test-suite version
2016-01-12 16:18:24 -08:00
Brad Leege
11062a01b4 [android] #3484 - Switching to Directions 1.0.0 release. Removing mavenCentral() as it's a subset of jcenter(). 2016-01-12 11:21:51 -06:00
Antonio Zugaldia
9c43343187 directions activity sample 2016-01-12 11:21:50 -06:00
Minh Nguyễn
101a439b1d [ios] Always run jazzy against iOS Simulator
Fixes #3521.
2016-01-12 07:24:53 -08:00
Tobrun
9379aeac1c [android] #3518 - fix context leak InfoWIndow by using a WeakReference 2016-01-12 15:56:42 +01:00
Tobrun
703ccbd727 [android] #3309 - replace coordinate naming with LatLng 2016-01-12 14:08:24 +01:00
Tobrun
3e4c1bd534 [android] #3447 - initial commit to verify current progress 2016-01-12 12:40:58 +01:00
Tobrun
71edb38cf1 [android] #3327 - replaced ZoomLevel with Zoom, introduced new methods, deprecated old ones 2016-01-12 12:34:45 +01:00
Tobrun
2b5d7bfb8e [android] #3498 - disable missing permission lint check inline 2016-01-12 10:39:03 +01:00
Minh Nguyễn
5eaf7a6211 [ios, osx] Fixed Xcode 7.3 build
Fixed a compiler error that’s new in Xcode 7.3. Also corrected a typo in MGLMapView on OS X.
2016-01-11 14:21:15 -08:00
Tobrun
c10f6489e6 [android] #2187 - added LeakCanary to Android test app 2016-01-11 16:42:21 +01:00
Thiago Marcos P. Santos
259fe1c81d [tests] Fix how we launch the test server
`execl` uses varargs thus must be NULL terminated.
2016-01-11 15:40:10 +02:00
Konstantin Käfer
13fbf8b39b [test] Fix test case comments
Follow up to a06f28ddb7
2016-01-11 11:14:29 +01:00
Minh Nguyễn
cd94049537 [ios] Categorized classes added in #3456 2016-01-09 22:20:50 -08:00
Jason Wray
45a0f48ea0 [ios] Add telemetry setting directly to attribution button action sheet
- Deprecate and no-op `+[MGLAccountManager mapboxMetricsEnabledSettingShownInApp]`
- Check for attribution button hiding and make sure ToS are understood
2016-01-09 01:21:45 -05:00
Thiago Marcos P. Santos
d7fdcc73bf [core] Get rid of ::unref() for Timer and AsyncTask
Not need, legacy from libuv. The RunLoop keep the main
loop running until is explicitly no longer needed.
2016-01-09 01:26:29 +02:00
John Firebaugh
e7b0b31d58 [core] Privatize SQLiteCache 2016-01-08 12:31:13 -08:00
John Firebaugh
0a8fef1f51 [core] Merge OnlineFileRequestImpl::notify into OnlineFileRequestImpl::setResponse
In every case where setResponse is called, notify was called soon after. In one case immediately, in another, after intervening functions which are safe to reorder after notifications.

The null-check of response is safe to eliminate because response must not be null inside setResponse.
2016-01-08 12:29:11 -08:00
John Firebaugh
adf3dea4e5 [core] Simplify OnlineFileSource's Timer use
There is no need for the timer to be created only under certain conditions. Stopping a non-started timer is a no-op. Therefore it can simply be a direct member.

While here, rename the variable. It's a timer, not a request.
2016-01-08 12:23:48 -08:00
John Firebaugh
4b7db28157 [tests] Test that Timer::stop on a stopped timer is a no-op 2016-01-08 12:23:48 -08:00