summaryrefslogtreecommitdiff
path: root/include/mbgl/util
Commit message (Collapse)AuthorAgeFilesLines
...
* [core] Added DEGREES_MAX as constant valueBruno de Oliveira Abinader2016-03-012-1/+2
|
* [core] Moved wrapping to LatLng scopeBruno de Oliveira Abinader2016-03-011-4/+22
| | | | Fixes a precision loss when converting unwrapped LatLngs.
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-011-3/+3
|
* [core] Get rid of mbgl/util/vec4 - use vec4 from vec.hpp insteadBruno de Oliveira Abinader2016-03-012-3/+7
|
* [core] Coordinate is now GeometryCoordinateBruno de Oliveira Abinader2016-03-011-2/+0
| | | | | Also introduced GeometryCoordinates (vector of GeometryCoordinate items), to better cope with GeometryCollection.
* [core] Enforce constants usageBruno de Oliveira Abinader2016-03-011-0/+1
| | | | | Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever possible.
* [core] Build fixThiago Marcos P. Santos2016-02-261-1/+1
| | | | Fix no viable conversion on OSX.
* [core] Add timeout for clock skewThiago Marcos P. Santos2016-02-261-0/+4
| | | | | | | | | | If the server keeps sending replies considered from the client in the past (there is no way to tell if the server or client clock is wrong), the client will try to interpolate a valid expiration time based on the delta of the expiration intervals sent by the server. If the intervals are always the same, exponential backoff kicks in until we get a different expiration time from what we already have.
* [core] Remove RunLoop::{ref,unref}John Firebaugh2016-02-161-3/+0
|
* [core] less slanted dashed lines near sharp cornersAnsis Brammanis2016-02-151-0/+5
| | | | port https://github.com/mapbox/mapbox-gl-js/pull/2043 from -js
* [core] Eliminate maximumCacheEntrySizeJohn Firebaugh2016-02-101-1/+0
| | | | Instead, the eviction policy accounts for the actual size needed for an incoming put.
* [core] Implement an eviction policy for OfflineDatabaseJohn Firebaugh2016-02-101-0/+3
| | | | | | | | | | | | | 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] move util/gl_helper.hpp to gl/gl_helper.hppKonstantin Käfer2016-02-081-90/+0
|
* [core] move platform/gl.hpp to gl/gl.hppKonstantin Käfer2016-02-081-1/+1
|
* [core] Comparison operators for LatLngBoundsJohn Firebaugh2016-02-031-0/+11
|
* [core] #509 - Creating and using MIN_ZOOM and MAX_ZOOM constantsBrad Leege2016-02-031-0/+2
|
* [core] Make bool conversions explicitJohn Firebaugh2016-02-031-4/+12
| | | | Implicit bool conversions are bad; they'll be used e.g. for a == b and a != b if those operators are not defined. This was happening at https://github.com/mapbox/mapbox-gl-native/blob/032c8fba3c8e3c122dd399b5c9341d92ad9d286f/src/mbgl/map/transform.cpp#L132-L132, for example.
* [core] Improve LatLngBounds APIJohn Firebaugh2016-02-021-9/+47
| | | | | | | * 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 superflous inlinesJohn Firebaugh2016-02-021-18/+18
|
* [core] Remove unusedJohn Firebaugh2016-02-021-4/+0
|
* [core] Remove unusedJohn Firebaugh2016-02-021-10/+0
|
* [core] support tiles with non-4096 extentsAnsis Brammanis2016-02-021-0/+1
| | | | | Convert all geometries to the maximum extent supported by our buffers and then use that constant extent everywhere else.
* [core] Don't use structJohn Firebaugh2016-02-011-5/+10
| | | | It makes forward declarations inconsistent and liable to change, for no real gain.
* [core] destruct WorkTask data before calling the callbackKonstantin Käfer2016-01-281-1/+1
|
* [core] Remove unused parts of chrono.hppJohn Firebaugh2016-01-221-25/+0
|
* [core] Polyfill std::chrono::absJohn Firebaugh2016-01-221-0/+8
|
* [core] Merge rfc1123, iso8601, and parse_date into chrono.hpp and fix their APIJohn Firebaugh2016-01-223-62/+13
|
* [core] Add ref counting to the main loopThiago Marcos P. Santos2016-01-201-0/+3
| | | | | | | | Should not be used at all, added for a corner case on OSX network backend where the request is processed on a worker thread managed by OSX and we need to wait for that reply before destroying the thread that pushed the request.
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-201-0/+5
| | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed.
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-0/+13
|
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-191-5/+0
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-191-0/+5
| | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
* [ios] Flip points, not edge insetsMinh Nguyễn2016-01-181-2/+0
|
* [core] Added padding option to CameraOptionsMinh Nguyễn2016-01-181-0/+34
| | | | | | Moved EdgeInsets to geo.hpp so CameraOptions and Transform can refer to it. Added a padding option to CameraOptions that alters the frame of reference for the center option. Added optional padding parameters to LatLng getters and setters. Working towards #2600.
* [core] Rationalize error handling for resource loadingJohn Firebaugh2015-12-231-20/+0
| | | | | | | | | * Standardize on std::exception_ptr as the error representation (fixes #2854). * Don't format textual strings at the error source; pass on the constituent data via observer method parameters instead. * Use the null object pattern to simplify observer notification code. * Further refactoring for ResourceLoading tests.
* [tests] Rewrite resource loading testJohn Firebaugh2015-12-221-0/+9
| | | | Make it more readable and easier to debug.
* [core] Clamp pitch in easeTo(), flyTo()Minh Nguyễn2015-12-191-0/+1
| | | | Also factored out the maximum pitch into a constant.
* [core] allow changing the orientationKonstantin Käfer2015-12-152-0/+9
| | | | You can now change the orientation of north to be to the right, bottom, left in addition to the default of top
* [core] use `default` instead of empty function bodyKonstantin Käfer2015-12-032-5/+5
|
* [core] add std::move to constructorsKonstantin Käfer2015-12-031-1/+1
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-0321-34/+36
|
* [core] Removed libuv dependency from HTTPCurl*Thiago Marcos P. Santos2015-12-011-0/+14
| | | | | Moved the fd watcher to the RunLoop. So far only needs to be implemented by platforms using HTTPCurlRequest et al.
* [core] Privatize internal headersJohn Firebaugh2015-12-013-359/+0
|
* [core] Expose fewer RunLoop implementation details in headerJohn Firebaugh2015-12-011-16/+7
|
* [core] Merge uv_detail.hpp into uv.hppJohn Firebaugh2015-12-013-231/+207
|
* [core] Introduce Timer abstractionThiago Marcos P. Santos2015-12-011-0/+30
|
* [core] Abstract main loop inside RunLoop classThiago Marcos P. Santos2015-12-011-12/+33
|
* [core] Use AsyncTask on the MapContextThiago Marcos P. Santos2015-12-011-0/+28
|
* [core] Display modify, expires debug informationBruno de Oliveira Abinader2015-11-271-0/+5
|
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-271-0/+31
| | | | | | | Added aliases for std::chrono typedefs (eg. 'Seconds' for std::chrono::seconds). These aliases are used together with templated helper functions to replace time_t with std::chrono::seconds for most cases, in particular for 'modified' and 'expires' values in Response.