Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | [core] Implement an eviction policy for OfflineDatabase | John Firebaugh | 2016-02-10 | 1 | -30/+47 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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] Throttle the number of concurrent requests to 20 | John Firebaugh | 2016-02-10 | 1 | -0/+1 | |
| | | ||||||
* | | Add binary for smoke-testing offline downloads | John Firebaugh | 2016-02-10 | 1 | -0/+22 | |
| | | ||||||
* | | [core] Interface and implementation for offline | John Firebaugh | 2016-02-10 | 1 | -0/+2 | |
| | | ||||||
* | | [all] Don't interpret 404s on non-tile resources as "no content" | John Firebaugh | 2016-02-10 | 7 | -144/+121 | |
| | | ||||||
* | | [core] Reimplement existing caching within an offline-capable database schema | John Firebaugh | 2016-02-10 | 1 | -44/+0 | |
| | | ||||||
* | | [core] Cache with mapbox:// tile URLs | John Firebaugh | 2016-02-10 | 3 | -65/+35 | |
| | | ||||||
* | | [core] Add a method for statically evaluating font stacks used by a style | John Firebaugh | 2016-02-10 | 3 | -0/+26 | |
| | | ||||||
* | | [core] Refactor tileCover | John Firebaugh | 2016-02-10 | 9 | -122/+117 | |
| | | ||||||
* | | [core] round() not always on std:: namespace | Thiago Marcos P. Santos | 2016-02-10 | 1 | -2/+4 | |
| | | | | | | | | Build fix. | |||||
* | | [core] draw clipping masks from ClipIDGenerator rather than Sources | Konstantin Käfer | 2016-02-10 | 5 | -27/+20 | |
| | | ||||||
* | | [core] compute the actual clipping masks that we have to draw with getStencils() | Konstantin Käfer | 2016-02-10 | 3 | -36/+99 | |
| | | ||||||
* | | [core] make sure icons fit before the ends of the line | Ansis Brammanis | 2016-02-09 | 1 | -3/+13 | |
| | | | | | | | | | | | | | | This skips anchors if there is not enough room before the beginning or end of the line for the icon to fit. -js: https://github.com/mapbox/mapbox-gl-js/pull/2077/files | |||||
* | | [node] add debug options to node bindings | Ansis Brammanis | 2016-02-08 | 2 | -17/+19 | |
| | | | | | | | | fix #3579 | |||||
* | | [core] move GL value objects from gl_config.hpp to gl_values.hpp | Konstantin Käfer | 2016-02-08 | 4 | -331/+101 | |
| | | | | | | | | Also removes duplicate code from gl_helper.hpp by reusing the GL values that we already have anyway. | |||||
* | | [core] move platform/gl.hpp to gl/gl.hpp | Konstantin Käfer | 2016-02-08 | 46 | -46/+46 | |
|/ | ||||||
* | [core] #509 - Creating and using MIN_ZOOM and MAX_ZOOM constants | Brad Leege | 2016-02-03 | 2 | -2/+4 | |
| | ||||||
* | [core] #509 - Adding min / max checks to parameters and refactoring to ↵ | Brad Leege | 2016-02-03 | 1 | -14/+4 | |
| | | | | utilize clamp function | |||||
* | [android][core] #509 - Setting Min and Max Zooms warning annotations in ↵ | Brad Leege | 2016-02-03 | 1 | -2/+16 | |
| | | | | Android. Clamping Min and Max zooms at Core GL for all platforms to use at runtime. | |||||
* | [core] Improve LatLngBounds API | John Firebaugh | 2016-02-02 | 2 | -5/+5 | |
| | | | | | | | * 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 | |||||
* | [core] Remove unused | John Firebaugh | 2016-02-02 | 7 | -37/+0 | |
| | ||||||
* | [core] Remove unused | John Firebaugh | 2016-02-02 | 1 | -8/+0 | |
| | ||||||
* | [core] tweak dash rendering and enable render tests | Ansis Brammanis | 2016-02-02 | 1 | -3/+5 | |
| | | | | fixes #2646 | |||||
* | [core] make symbol sort order more deterministic | Ansis Brammanis | 2016-02-02 | 2 | -6/+10 | |
| | ||||||
* | [core] support tiles with non-4096 extents | Ansis Brammanis | 2016-02-02 | 24 | -36/+91 | |
| | | | | | Convert all geometries to the maximum extent supported by our buffers and then use that constant extent everywhere else. | |||||
* | [core] Simplify latLngToCoordinate calculation | John Firebaugh | 2016-02-02 | 1 | -5/+3 | |
| | ||||||
* | [core] Remove unused | John Firebaugh | 2016-02-02 | 2 | -5/+0 | |
| | ||||||
* | [core] Remove TransformState::getNormalizedZoom | John Firebaugh | 2016-02-02 | 5 | -19/+14 | |
| | | | | It calculated the same value as TransformState::getZoom. | |||||
* | [core] Remove unused declarations | John Firebaugh | 2016-02-02 | 1 | -3/+0 | |
| | ||||||
* | [core] Normalize only raster source tile URLs | John Firebaugh | 2016-02-01 | 3 | -4/+4 | |
| | ||||||
* | [core] Refactor TileJSON parsing for offline | John Firebaugh | 2016-02-01 | 3 | -22/+49 | |
| | ||||||
* | [core] Change TileData pixelRatio to an integer | John Firebaugh | 2016-01-29 | 1 | -1/+1 | |
| | ||||||
* | [core] Rationalize Resource initialization | John Firebaugh | 2016-01-29 | 9 | -86/+102 | |
| | ||||||
* | [core] Ensure that FileSource has access to tile URL, pixelRatio, x, y, z | John Firebaugh | 2016-01-29 | 5 | -29/+54 | |
| | ||||||
* | [core] Camel-case member names | John Firebaugh | 2016-01-29 | 3 | -11/+11 | |
| | ||||||
* | [core] fix redoPlacement blocking main thread, fix #3727 | Ansis Brammanis | 2016-01-29 | 1 | -6/+5 | |
| | | | | | | | | If a workRequest exists, don't cancel it and start an new request. It's ok to just do nothing if the request exists because a new call to redoPlacement will be triggered after the existing request finishes. this fixes a regression in e44db93f1cb3276dcdc7de8400ca96beda1b1d30 | |||||
* | [core] Move rapidjson document creation into StyleParser | John Firebaugh | 2016-01-28 | 3 | -13/+14 | |
| | ||||||
* | [core] add setMaxZoom, setMinZoom | Ansis Brammanis | 2016-01-28 | 5 | -1/+36 | |
| | | | | also change the default maxZoom to 20 to match -js. | |||||
* | [core] destruct WorkTask data before calling the callback | Konstantin Käfer | 2016-01-28 | 3 | -5/+7 | |
| | ||||||
* | [core, ios, osx] Tilt around visual center point | Minh Nguyễn | 2016-01-26 | 3 | -1/+18 | |
| | | | | The tilt gesture on both iOS and OS X now respects the content insets. On iOS, in user tracking mode, it additionally respects the user dot’s position if it’s aligned to the top or bottom of the view. | |||||
* | [core] bump sprite atlas to 1024x1024 | Ansis Brammanis | 2016-01-26 | 3 | -3/+3 | |
| | ||||||
* | Cleanup std::chrono usage | Bruno de Oliveira Abinader | 2016-01-25 | 5 | -5/+7 | |
| | | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible. | |||||
* | [core] Include prior values of caching headers in Resource | John Firebaugh | 2016-01-22 | 3 | -11/+9 | |
| | | | | This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations. | |||||
* | [core] Use notModified to check for style change | John Firebaugh | 2016-01-22 | 1 | -5/+7 | |
| | ||||||
* | [core] Avoid storing raw glyph data in addition to parsed representation | John Firebaugh | 2016-01-22 | 2 | -31/+17 | |
| | ||||||
* | [core] Remove unused parts of chrono.hpp | John Firebaugh | 2016-01-22 | 1 | -16/+0 | |
| | ||||||
* | [core] Merge rfc1123, iso8601, and parse_date into chrono.hpp and fix their API | John Firebaugh | 2016-01-22 | 5 | -34/+76 | |
| | ||||||
* | [core] fix missing icon collision boxes | Ansis Brammanis | 2016-01-22 | 2 | -10/+18 | |
| | | | | port https://github.com/mapbox/mapbox-gl-js/pull/1981 | |||||
* | [core] use nearest neigbour for some line icons | Ansis Brammanis | 2016-01-22 | 1 | -1/+1 | |
| | | | | | Use nearest neighbour texture filtering to draw sharper icons when the icons are aligned with the viewport. This matches -js. | |||||
* | [core] trigger repaint after placement is redone | Ansis Brammanis | 2016-01-22 | 7 | -41/+38 | |
| | | | | | | | fixes #3140 This also fixes a bug where placement could be redone with a stale PlacementConfig after the tile first finishes loading. |