Commit Graph

7032 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
d5da86b098 [linux] Enable coverage support for debug build 2016-02-18 15:01:58 +02:00
Bruno de Oliveira Abinader
d900e7a9a3 [tests] Bumped KIF hash
Commit 766ff59663f19222993ed32e5be36894bcb6949d removes a generated
.gcda file that prevents proper lcov usage.
2016-02-18 15:01:58 +02:00
Tobrun
1180df00f2 [android] #4007 - improve coverage geometry package 2016-02-18 13:32:41 +01:00
Bruno de Oliveira Abinader
dcbdfde932 [core] Use RVO in PremultipliedImage::decodeJPEG 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
3762dcfb82 [gl] Refactor texture pool cleanup
Texture pool now allocates a block of 64 textures per time. Each block
contains a TextureObject which handles GL object lifetime. Blocks can be
added or removed according to the following rules:

1. If pool is empty, created a new block upon first call (lazy load);
2. Iterate blocks to find an available texture ID:
- If found, remove that from the list of available IDs for that block
  and return its ID.
- Othewise, allocate a new block and grab an available ID from that.
3. When releasing a texture ID, check if the associated block is free.
If no IDs are currently in use, then abandon its TextureObject and
remove the block from the pool.
2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
69112a2a09 [gl] Updated CustomLayer tests 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
93cfca4d4e [gl] Added mbgl::gl::VAOHolder 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
124173080f [gl] Added mbgl::gl::Texture{,Pool}Holder 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
3397398c1f [gl] Added mbgl::gl::BufferHolder 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
a503233d1c [gl] Added mbgl::gl::ShaderHolder 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
69fa8fe3c0 [gl] Added mbgl::gl::ProgramHolder 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
bfafc360a7 [gl] Moved TexturePool to gl namespace 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
1336e3e30f [gl] Moved GLObjectStore to gl namespace 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
47d6099242 [gl] Use Buffer::getID() whenever possible 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
0386dc7a4e [gl] Use Shader::getID() whenever possible 2016-02-18 13:27:35 +02:00
Bruno de Oliveira Abinader
ee72e93f94 [gl] Moved VAO helpers to common header 2016-02-18 13:27:35 +02:00
Tobrun
cd13e2b769 [android] #4005 move annotations to correct package 2016-02-18 11:48:10 +01:00
Tobrun
a24d06b992 [android] #4003 - add unit tests for InfoWindow 2016-02-18 11:46:48 +01:00
Tobrun
daedb3ddb2 [android] #4000 - add unit tests icon 2016-02-18 10:21:12 +01:00
Tobrun
a331e94b1b [androd] #3119 - use resourcePrefix for library resources 2016-02-17 09:57:57 +01:00
Tobrun
94c5c2e203 [android] #2816 - make save instance state robuster + cleanup some old permission annotations 2016-02-17 09:56:34 +01:00
Bruno de Oliveira Abinader
44ec2ad0ee [tests] Fix compilation error in test/storage/headers.cpp
error: converting ‘false’ to pointer type for argument 1 of ‘char
testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’
[-Werror=conversion-null]
2016-02-16 23:30:26 +02:00
Thiago Marcos P. Santos
1efc299e66 [core] Faster access with unordered_set
The ordering won't be affected because requests are made
as they arrive and later stored on the map just for
keeping state.
2016-02-16 23:06:04 +02:00
Thiago Marcos P. Santos
f5b521ffb5 [core] Remove requests from the pending queue on cancel
If we don't do this, we can activate a request twice.

The issue here is that we use memory address as the 'key'. So if
we destroy a request, another request might take the same memory
address, or the same 'key'.

The entry at 'pendingRequests' survives the 'cancel()' and is
ultimatelly removed at 'activatePendingRequest()'. This is fine
unless a request is created using the same 'key' before we call
'activatePendingRequest()'.

The check if the request was canceled at 'activatePendingRequest()'
will be no longer valid, activating the request. At the same time
the request will be activated again by the task scheduled at the
constructor of the 'OnlineFileRequestImpl' class.
2016-02-16 23:06:04 +02:00
John Firebaugh
d66d145c6e [core] Remove RunLoop::{ref,unref} 2016-02-16 12:48:50 -08:00
John Firebaugh
5ca625ba0d [ios, osx] Adjust HTTPNSURLRequest so that it may always delete itself immediately 2016-02-16 12:48:50 -08:00
Tobrun
fd67579b09 [android] #3976 - hide info window when removing annotations 2016-02-16 16:23:54 +01:00
Tobrun
f0e0a39acd [android] #3976 - remove annotations doesn't work 2016-02-16 16:08:10 +01:00
Tobrun
6249f9f674 [android] #3941 - update espresso tests 2016-02-16 15:33:44 +01:00
Tobrun
373cd33df0 [android] #3963 - move and relax if permission check
[android] #3963 - update unit tests, moved permission check to MapView to be mocked during tests
2016-02-16 14:05:08 +01:00
Tobrun
4baee63d8e [android] #3750 - update proguard library for 4.0.0 release (maps package) + update for leak canary. 2016-02-16 09:20:09 +01:00
Brad Leege
a3f8710574 [android] #3960 - Return hex strings of SHA1 digests 2016-02-15 17:13:38 -06:00
Ansis Brammanis
47dc38bf4a [core] less slanted dashed lines near sharp corners
port https://github.com/mapbox/mapbox-gl-js/pull/2043 from -js
2016-02-15 12:55:41 -08:00
Ansis Brammanis
cdab06306f [core] round points created by clipLines instead of truncating them 2016-02-15 12:55:41 -08:00
Minh Nguyễn
a503048457 [ios] Updated podspec screenshot URL 2016-02-15 11:52:23 -08:00
Jesse Bounds
9891d0eb79 [iOS] Generate and send a turnstile event when map view event is queued
This change adds logic to push a turnstile event whenever a map view
event is queued. It guards against sending the turnstile event more
than once per session.

Note that `pushTurnstileEvent` is actually a "force push" in that it
flushes the queue and, since it enqueues a turnstile event, the
flush's call to `postEvents` will attempt to send any queued events
even if telemetry is paused. This has the side effect of defeating
the other queue / timing / flush logic in place whenever map load
(and now implicitly turnstile) events are pushed.
2016-02-15 11:35:07 -08:00
Minh Nguyễn
16d4aa2933 ios-v3.1.1 2016-02-15 10:25:37 -08:00
Tom MacWright
14f81dbed5 Fix coordinate bounds documentation.
4-space indentation was being intepreted as a Markdown code block
2016-02-15 12:43:04 -05:00
Tobrun
fb9021f929 [android] #3756 - unit test annotations integration in MapboxMap
[android] #3756 - unit tests fixes

[android] #3756 - allow using inheritance Marker, added example to WindowAdapterActivity
2016-02-15 17:05:15 +01:00
Brad Leege
ef865f04f6 [android] #3944 - Using ApplicationContext instead of Activity context for MapboxEventManager 2016-02-15 09:29:34 -06:00
Tobrun
d06a7c4b86 [android] #3895 - remove request permission annotation 2016-02-15 13:18:46 +01:00
Tobrun
1b7ebca279 [Android] #3761 - add map padding, introduce new feature activity
[android] #3781 #3899 - add map padding, user location view, ViewSettings, TrackingSettings

[android] #3761 - update map padding sample

[android] #3761 - add map padding
2016-02-15 12:25:18 +01:00
Tobrun
7d6ac6adfc [android] #3943 #3775 #3885 - added sample feature activity + espresso test 2016-02-15 12:00:51 +01:00
Gabriel Miklós
b395302990 [android] Update marker position and icon #3885 2016-02-15 11:05:29 +01:00
Brad Leege
97ff6cfd49 [android] #3938 - Upgrading OkHttp to version 3.1.2 2016-02-13 14:21:50 -06:00
Minh Nguyễn
c7e885643d ios-v3.1.1-pre.2 2016-02-13 11:23:45 -08:00
Minh Nguyễn
55fca26ea5 [ios] Distinguish between AGV and semver
Distinguish between Apple Generic Versioning and Semantic Versioning in Info.plist. Also fill in the build number in the dynamic framework.

Fixes #3911.
2016-02-13 09:56:44 -08:00
Jason Wray
a7e61bee54 [ios] Fix screenshot link in generated docs
[skip ci]
2016-02-12 19:43:49 -08:00
Jason Wray
f37093e108 [ios] Fix screenshot link
[skip ci]
2016-02-12 19:37:52 -08:00
John Firebaugh
ce1d8561b4 [tests] Add test for Map::updatePointAnnotation 2016-02-12 16:47:24 -08:00