Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Remove goOffline() from DefaultFileSource | Thiago Marcos P. Santos | 2016-03-08 | 1 | -1/+4 |
| | | | | Use the newly added NetworkStatus::Set(). | ||||
* | [core] Ensure OfflineRegionStatus::downloadState is accurately reported | John Firebaugh | 2016-03-07 | 1 | -0/+31 |
| | |||||
* | [core] explicitly initialize a few fields to null | Konstantin Käfer | 2016-03-04 | 1 | -2/+2 |
| | |||||
* | [core] Fix offline status reporting with pre-existing tiles (#4147) | John Firebaugh | 2016-03-04 | 1 | -0/+75 |
| | |||||
* | [core] Moved TileCoordinate to tile cover scope | Bruno de Oliveira Abinader | 2016-03-01 | 1 | -6/+10 |
| | |||||
* | [core] Moved wrapping to LatLng scope | Bruno de Oliveira Abinader | 2016-03-01 | 1 | -0/+23 |
| | | | | Fixes a precision loss when converting unwrapped LatLngs. | ||||
* | [core] PrecisionPoint is now ScreenCoordinate | Bruno de Oliveira Abinader | 2016-03-01 | 1 | -7/+7 |
| | |||||
* | [core] Enforce constants usage | Bruno de Oliveira Abinader | 2016-03-01 | 2 | -31/+33 |
| | | | | | Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever possible. | ||||
* | [tests] Unit tests for clock skew retry timeout | Thiago Marcos P. Santos | 2016-02-26 | 2 | -0/+40 |
| | |||||
* | [tests] Add a test for the retry delay on expired response | Thiago Marcos P. Santos | 2016-02-26 | 2 | -0/+36 |
| | |||||
* | [core] Limit total number of offline Mapbox tiles | John Firebaugh | 2016-02-24 | 3 | -0/+107 |
| | |||||
* | [core] Enforce foreign key constraints in the offline database | John Firebaugh | 2016-02-24 | 2 | -10/+33 |
| | |||||
* | [core] Fix subtle bug in OfflineDatabase with updated resources | John Firebaugh | 2016-02-24 | 1 | -13/+37 |
| | | | | | | SQLite REPLACE is *not* UPSERT. If a conflict occurs, it first deletes the existing row, then inserts a new row. This means that AUTOINCREMENT primary keys change. This will break foreign keys to that value, which we use. Instead we must try an UPDATE, and fall back to an INSERT if the UPDATE changes zero rows. | ||||
* | [core] status.requiredResourceCountIsIndeterminate ⇢ ↵ | John Firebaugh | 2016-02-24 | 1 | -7/+7 |
| | | | | | | status.requiredResourceCountIsPrecise Change the name and reverse the sense. Naming things in the positive is better than naming them in the negative. | ||||
* | [tests] Add utests for HTTP 200 with no data | Thiago Marcos P. Santos | 2016-02-23 | 2 | -0/+29 |
| | | | | The implementation should return a valid empty string. | ||||
* | [tests] Timer is not needed to keep the main loop alive | Thiago Marcos P. Santos | 2016-02-22 | 1 | -5/+0 |
| | | | | The loop will be alive until `.stop()` is called. | ||||
* | [gyp] Use variant compiler flags when needed | Bruno de Oliveira Abinader | 2016-02-21 | 1 | -0/+1 |
| | |||||
* | [gyp] Coverage only if BUILDTYPE=Debug and ENABLE_COVERAGE=1 | Bruno de Oliveira Abinader | 2016-02-21 | 1 | -18/+15 |
| | | | | | | | | Coverage compiler and linker flags are used only when (1) in debug build and (2) with ENABLE_COVERAGE set to 1. Besides, because OS X's libtool is unable to understand '--coverage', this linker flag is only used genrating executable targets. Also, using 'link_settings' to specify linker options and separate instructions for OSX and Linux. | ||||
* | [tests] Use ENABLE_COVERAGE=1 envvar to enable coverage | Bruno de Oliveira Abinader | 2016-02-19 | 1 | -1/+5 |
| | | | | This detaches coverage data collection from typical debug build. | ||||
* | [core] Remove ThreadContext::getFileSource; instead thread FileSource through | John Firebaugh | 2016-02-18 | 4 | -21/+21 |
| | |||||
* | Revert "[gl] Updated CustomLayer tests" | John Firebaugh | 2016-02-18 | 1 | -24/+30 |
| | | | | | | These tests are intended to reflect how someone using the custom layer feature might actually write their callbacks. Therefore the callbacks should not use mbgl-specific classes. This reverts commit 69112a2a09404cc0ee7089a9f1f81ff1feac586f. | ||||
* | [osx] Enable coverage support for debug build | Bruno de Oliveira Abinader | 2016-02-18 | 1 | -0/+7 |
| | |||||
* | [gl] Updated CustomLayer tests | Bruno de Oliveira Abinader | 2016-02-18 | 1 | -26/+24 |
| | |||||
* | [gl] Moved TexturePool to gl namespace | Bruno de Oliveira Abinader | 2016-02-18 | 1 | -2/+2 |
| | |||||
* | [tests] Fix compilation error in test/storage/headers.cpp | Bruno de Oliveira Abinader | 2016-02-16 | 1 | -13/+13 |
| | | | | | | error: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’ [-Werror=conversion-null] | ||||
* | [core] Remove RunLoop::{ref,unref} | John Firebaugh | 2016-02-16 | 1 | -44/+0 |
| | |||||
* | [tests] Add test for Map::updatePointAnnotation | John Firebaugh | 2016-02-12 | 3 | -3/+21 |
| | |||||
* | [ios, osx] Consolidate remaining files in platform/{ios,osx} | John Firebaugh | 2016-02-12 | 312 | -26490/+0 |
| | |||||
* | [tests] Fix build | John Firebaugh | 2016-02-11 | 4 | -4/+4 |
| | |||||
* | Allow using tileSize: 512 as a switch to trade retina support for 512px ↵ | Young Hahn | 2016-02-11 | 2 | -18/+38 |
| | | | | raster tiles | ||||
* | [core] Always store tiles without ratio support with ratio = 1 | John Firebaugh | 2016-02-10 | 1 | -8/+18 |
| | |||||
* | [core] Optimize offline database schema | John Firebaugh | 2016-02-10 | 1 | -5/+6 |
| | | | | | * Under the hood, SQLite creates surrogate keys (ROWID) anyway. We may as well take advantage of this and use the surrogates for foreign keys as well, since they are simpler and more efficient than compound foreign keys. * Create indexes for efficient eviction queries | ||||
* | [core] Retry errors encountered during offline downloads | John Firebaugh | 2016-02-10 | 3 | -13/+48 |
| | |||||
* | [core] Eliminate maximumCacheEntrySize | John Firebaugh | 2016-02-10 | 1 | -26/+44 |
| | | | | Instead, the eviction policy accounts for the actual size needed for an incoming put. | ||||
* | [core] Implement an eviction policy for OfflineDatabase | John Firebaugh | 2016-02-10 | 1 | -0/+72 |
| | | | | | | | | | | | | | When inserting an cached resource, or removing a region, remove least-recently used resources and tiles, not used by offline regions, until the used database size, as calculated by multiplying the number of in-use pages by the page size, is less than the maximum cache size minus 5 times the page size. In addition, OfflineDatabase may be configured to ignore cache puts of individual resources larger than a certain size. This policy is similar but not identical to the former SQLiteCache policy: * It accounts for offline, by exempting resources required by offline regions from eviction. * It must delete from two tables (resources and tiles), rather than one. Currently the strategy is naive: evict 50 rows at a time from each table. * It makes maximumCacheSize and maximumCacheEntrySize completely independent. The SQLiteCache implementation evicted when `usedSize > maximumCacheSize - 2 * maximumCacheEntrySize`. This evicts when `usedSize > maximumCacheSize - 5 * pageSize`. * It uses a non-unlimited default value for maximumCacheSize: 50 MB. We should have always had a limit in place; "a cache without an eviction policy is a resource leak". | ||||
* | [core] Reset SQLite statements after use in order to release locks | John Firebaugh | 2016-02-10 | 1 | -0/+32 |
| | |||||
* | Add binary for smoke-testing offline downloads | John Firebaugh | 2016-02-10 | 1 | -17/+0 |
| | |||||
* | [core] Interface and implementation for offline | John Firebaugh | 2016-02-10 | 8 | -0/+489 |
| | |||||
* | [all] Don't interpret 404s on non-tile resources as "no content" | John Firebaugh | 2016-02-10 | 4 | -7/+119 |
| | |||||
* | [all] Do not set Response data for 404s | John Firebaugh | 2016-02-10 | 2 | -6/+3 |
| | | | | For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent. | ||||
* | [core] Reimplement existing caching within an offline-capable database schema | John Firebaugh | 2016-02-10 | 26 | -1074/+486 |
| | |||||
* | [core] Cache with mapbox:// tile URLs | John Firebaugh | 2016-02-10 | 4 | -100/+68 |
| | |||||
* | [core] Moving caching logic to DefaultFileSource | John Firebaugh | 2016-02-10 | 17 | -63/+52 |
| | | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more. | ||||
* | [core] Add a method for statically evaluating font stacks used by a style | John Firebaugh | 2016-02-10 | 2 | -0/+48 |
| | |||||
* | [core] Refactor tileCover | John Firebaugh | 2016-02-10 | 2 | -0/+119 |
| | |||||
* | [core] compute the actual clipping masks that we have to draw with getStencils() | Konstantin Käfer | 2016-02-10 | 1 | -20/+180 |
| | |||||
* | [tests] Add test for AssetFileSource URL encoding | John Firebaugh | 2016-02-08 | 1 | -0/+21 |
| | |||||
* | [core] Remove Response::Error::Reason::Canceled | John Firebaugh | 2016-02-04 | 1 | -1/+0 |
| | | | | There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response. | ||||
* | [tests] Don't call the callback for cancelled responses | John Firebaugh | 2016-02-04 | 5 | -15/+17 |
| | | | | | | StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback". Fixes #3784 | ||||
* | [all] Make #include <mapbox/variant.hpp> universally accessible | John Firebaugh | 2016-02-04 | 1 | -1/+0 |
| |