summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | [core] Implement an eviction policy for OfflineDatabaseJohn Firebaugh2016-02-101-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 20John Firebaugh2016-02-101-0/+1
| |
* | Add binary for smoke-testing offline downloadsJohn Firebaugh2016-02-101-0/+22
| |
* | [core] Interface and implementation for offlineJohn Firebaugh2016-02-101-0/+2
| |
* | [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-107-144/+121
| |
* | [core] Reimplement existing caching within an offline-capable database schemaJohn Firebaugh2016-02-101-44/+0
| |
* | [core] Cache with mapbox:// tile URLsJohn Firebaugh2016-02-103-65/+35
| |
* | [core] Add a method for statically evaluating font stacks used by a styleJohn Firebaugh2016-02-103-0/+26
| |
* | [core] Refactor tileCoverJohn Firebaugh2016-02-109-122/+117
| |
* | [core] round() not always on std:: namespaceThiago Marcos P. Santos2016-02-101-2/+4
| | | | | | | | Build fix.
* | [core] draw clipping masks from ClipIDGenerator rather than SourcesKonstantin Käfer2016-02-105-27/+20
| |
* | [core] compute the actual clipping masks that we have to draw with getStencils()Konstantin Käfer2016-02-103-36/+99
| |
* | [core] make sure icons fit before the ends of the lineAnsis Brammanis2016-02-091-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 bindingsAnsis Brammanis2016-02-082-17/+19
| | | | | | | | fix #3579
* | [core] move GL value objects from gl_config.hpp to gl_values.hppKonstantin Käfer2016-02-084-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.hppKonstantin Käfer2016-02-0846-46/+46
|/
* [core] #509 - Creating and using MIN_ZOOM and MAX_ZOOM constantsBrad Leege2016-02-032-2/+4
|
* [core] #509 - Adding min / max checks to parameters and refactoring to ↵Brad Leege2016-02-031-14/+4
| | | | utilize clamp function
* [android][core] #509 - Setting Min and Max Zooms warning annotations in ↵Brad Leege2016-02-031-2/+16
| | | | Android. Clamping Min and Max zooms at Core GL for all platforms to use at runtime.
* [core] Improve LatLngBounds APIJohn Firebaugh2016-02-022-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 unusedJohn Firebaugh2016-02-027-37/+0
|
* [core] Remove unusedJohn Firebaugh2016-02-021-8/+0
|
* [core] tweak dash rendering and enable render testsAnsis Brammanis2016-02-021-3/+5
| | | | fixes #2646
* [core] make symbol sort order more deterministicAnsis Brammanis2016-02-022-6/+10
|
* [core] support tiles with non-4096 extentsAnsis Brammanis2016-02-0224-36/+91
| | | | | Convert all geometries to the maximum extent supported by our buffers and then use that constant extent everywhere else.
* [core] Simplify latLngToCoordinate calculationJohn Firebaugh2016-02-021-5/+3
|
* [core] Remove unusedJohn Firebaugh2016-02-022-5/+0
|
* [core] Remove TransformState::getNormalizedZoomJohn Firebaugh2016-02-025-19/+14
| | | | It calculated the same value as TransformState::getZoom.
* [core] Remove unused declarationsJohn Firebaugh2016-02-021-3/+0
|
* [core] Normalize only raster source tile URLsJohn Firebaugh2016-02-013-4/+4
|
* [core] Refactor TileJSON parsing for offlineJohn Firebaugh2016-02-013-22/+49
|
* [core] Change TileData pixelRatio to an integerJohn Firebaugh2016-01-291-1/+1
|
* [core] Rationalize Resource initializationJohn Firebaugh2016-01-299-86/+102
|
* [core] Ensure that FileSource has access to tile URL, pixelRatio, x, y, zJohn Firebaugh2016-01-295-29/+54
|
* [core] Camel-case member namesJohn Firebaugh2016-01-293-11/+11
|
* [core] fix redoPlacement blocking main thread, fix #3727Ansis Brammanis2016-01-291-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 StyleParserJohn Firebaugh2016-01-283-13/+14
|
* [core] add setMaxZoom, setMinZoomAnsis Brammanis2016-01-285-1/+36
| | | | also change the default maxZoom to 20 to match -js.
* [core] destruct WorkTask data before calling the callbackKonstantin Käfer2016-01-283-5/+7
|
* [core, ios, osx] Tilt around visual center pointMinh Nguyễn2016-01-263-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 1024x1024Ansis Brammanis2016-01-263-3/+3
|
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-255-5/+7
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* [core] Include prior values of caching headers in ResourceJohn Firebaugh2016-01-223-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 changeJohn Firebaugh2016-01-221-5/+7
|
* [core] Avoid storing raw glyph data in addition to parsed representationJohn Firebaugh2016-01-222-31/+17
|
* [core] Remove unused parts of chrono.hppJohn Firebaugh2016-01-221-16/+0
|
* [core] Merge rfc1123, iso8601, and parse_date into chrono.hpp and fix their APIJohn Firebaugh2016-01-225-34/+76
|
* [core] fix missing icon collision boxesAnsis Brammanis2016-01-222-10/+18
| | | | port https://github.com/mapbox/mapbox-gl-js/pull/1981
* [core] use nearest neigbour for some line iconsAnsis Brammanis2016-01-221-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 redoneAnsis Brammanis2016-01-227-41/+38
| | | | | | | fixes #3140 This also fixes a bug where placement could be redone with a stale PlacementConfig after the tile first finishes loading.