summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
* [osx] Removed libuv dependency from HTTPNSUrl*Bruno de Oliveira Abinader2015-12-011-8/+5
|
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-271-4/+4
| | | | | | | 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.
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-251-2/+2
| | | | | | | It's a premultiplied image. This implies that we were misusing encodePNG in most cases, as we were passing premultiplied pixels which were then interpreted as unmultiplied. I changed encodePNG to accept premultipled pixels, and unpremultiply in the implementations.
* [core] Rewrite image handlingJohn Firebaugh2015-11-251-18/+15
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* [core] For binary image data use uint8_t, not charJohn Firebaugh2015-11-231-2/+2
|
* [iOS] Set application root as asset rootMinh Nguyễn2015-11-201-12/+1
| | | | | | As of #2746, we no longer bundle any styles with the SDK, so the asset: URL scheme is unused. Instead, point asset: to the application root for developer convenience and consistency with the Android and default asset roots. Also fixed an issue that prevented relative URLs from being treated as asset: URLs. Fixes #1208, fixes #3050.
* [core] move retry logic to DefaultFileSourceKonstantin Käfer2015-11-021-135/+76
|
* [http] don't retry when there's already a request in progressKonstantin Käfer2015-10-271-2/+1
|
* [core] Move parseCacheControl() up in the class hierarchyThiago Marcos P. Santos2015-10-261-15/+0
| | | | Avoid duplicating it on all the ports.
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-261-1/+4
|
* [ios] [android] Use Response::NotFound in other HTTP implementations tooJohn Firebaugh2015-09-291-0/+3
|
* Fixed persistence of user tracking mode in iOSMinh Nguyễn2015-08-311-2/+2
| | | | This typo prevented the tracking mode from being restored when relaunching iosapp.
* iOS perspective gesture supportJason Wray2015-08-261-0/+3
| | | | | | Drag two fingers upward to tilt the map. Implements #2116
* GL is the library, SDK is the productJustin R. Miller2015-08-211-1/+1
|
* MGLUserTrackingModeFollowWithCourseMinh Nguyễn2015-08-141-1/+1
| | | | | | Added course-tracking. However, rotation has to happen atomically without animation until #1834 is fixed. Fixes #1605.
* s/HTTPContext/HTTPContextBase/Bruno de Oliveira Abinader2015-07-281-4/+4
|
* Replaced 'override' with 'final' for non-public interfacesBruno de Oliveira Abinader2015-07-281-1/+1
|
* Created HTTPRequestBase as base for HTTP requestsBruno de Oliveira Abinader2015-07-281-18/+18
| | | | | | | | - Added HTTPRequestBase (inherits from RequestBase) - retry() is now a pure virtual in HTTPRequestBase - Moved cancelled bool to HTTPRequestBase - HTTPContext now handles only HTTPRequestBase* - Renamed HTTPNSURLRequest, HTTPCURLRequest
* Moved ResponseStatus to its own headerBruno de Oliveira Abinader2015-07-281-30/+1
|
* compress_png: void* => const void*Konstantin Käfer2015-07-081-1/+1
|
* Namespaced reachability notification constantMinh Nguyễn2015-06-121-2/+2
| | | Fixes #1717.
* Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-262-7/+5
|
* prefix Reachability with "MGL" to avoid linking conflicts and app store ↵Konstantin Käfer2015-05-261-5/+5
| | | | rejections
* update Reachability with latest versionKonstantin Käfer2015-05-261-143/+85
|
* Check account type before comparing hostnameMinh Nguyễn2015-05-191-6/+5
|
* Cache account type user defaultMinh Nguyễn2015-05-191-1/+4
|
* Compare hostname for adding events=trueMinh Nguyễn2015-05-191-9/+6
| | | | ref #1596, #1599
* #1596 - Adding mapbox.com checking to http requestsBrad Leege2015-05-191-6/+8
|
* Renamed settings keysMinh Nguyễn2015-05-081-1/+1
| | | | The new keys fit the standard naming convention for Info.plist keys and more clearly communicate how they’re to be used.
* Fixed NSMutableString leakMinh Nguyễn2015-05-051-4/+2
| | | | Fixed analyzer warnings in http-nsurl target, which is MRR rather than ARC.
* lower thread priority of worker threadsKonstantin Käfer2015-05-041-0/+13
|
* Introduce and use uv::timerJohn Firebaugh2015-04-301-34/+10
|
* Use uv::asyncJohn Firebaugh2015-04-301-14/+4
|
* Restructure *Request and ContextJohn Firebaugh2015-04-281-79/+61
| | | | | | | | The previous implementation, based on thread-local storage, did not ensure that the context was destructed before the FileSource run loop. This resulted in implementations attempting to uv_close handles for a loop that had already been destroyed. This change also fixes #1262.
* Remove RequestBase::startJohn Firebaugh2015-04-281-13/+10
| | | | | | Requests are always started immediately upon construction. While here, use typed pointers, not void*.
* Separate RequestBase from DefaultFileSource internalsJohn Firebaugh2015-04-281-10/+3
| | | | | | | | SharedRequestBase was trying to do two different jobs: be a base class for Asset/HttpRequest and track internal state for DefaultFileSource. Now we have RequestBase for the former, and DefaultFileRequest for the latter.
* pointer ⇢ referenceJohn Firebaugh2015-04-281-1/+1
|
* make implementation files private headersKonstantin Käfer2015-04-131-2/+2
|
* hide Thread<> and separate the Implementation objectKonstantin Käfer2015-04-131-1/+1
|
* convert DefaultFileSource to use util::Thread<>Konstantin Käfer2015-04-101-12/+12
|
* #1185 - Adding "events=true" query string to all non metrics http requests ↵Brad Leege2015-04-021-1/+12
| | | | if metrics are not disabled
* closes #1082, refs #756: user dot on map in iOSJustin R. Miller2015-03-251-10/+26
|
* Log the Environment ID and the Thread nameThiago Marcos P. Santos2015-03-181-4/+2
| | | | | | | | | | | | | | | | | | | To make it easier to debug, add the Environment ID and the Thread name to the log messages. For instance log messages from the TileParser will look like: [WARNING] {0}{TileWorker_15/18653/9486}[ParseTile]: some relevant warning message | | | | | | | +-> Component | | +--------------------> Thread name | +----------------------------------> Environment ID +------------------------------------------> Severity level Log messages that are not inside an Environment::Scope will work normally and will look like: [WARNING] [JNI]: some relevant warning message Fixes #882.
* Look inside MapboxGL.bundle when presentMinh Nguyễn2015-03-161-1/+10
| | | | Fixes #1011.
* Make the logging system staticThiago Marcos P. Santos2015-03-121-3/+3
| | | | | | | No initialization is needed anymore and we can use the logging functions safely at any point of the code (threading is not handled though, so you might get multiplexed messages if you log from two threads simultaneously).
* Simplify the logging mechanismThiago Marcos P. Santos2015-03-121-26/+0
| | | | | | | | | Move the implementation of the more specialized methods to the base class and let the platform implement only the most generic method that takes all the possible arguments. These specialized methods will then map to the generic implementation that must be provided by the platforms we support.
* scope Requests to an Environment object for easier cancelationKonstantin Käfer2015-03-061-0/+3
| | | | | | | | | we are now scoping all file requests to an environment object. The FileSource implementation treats this as an opaque pointer, but allows canceling all Requests that are associated with that pointer. This is necessary to abort all file requests that originated from a particular Map object. Aborting a file request is different from canceling a file request: A canceled request doesn't have its callback called, while an aborted request will have its callback called with an error, indicating that the environment is going to be shut down.
* fix handling around unique_ptr releasesKonstantin Käfer2015-03-061-1/+0
|
* move iOS code from gl-cocoa to this projectJustin R. Miller2015-02-092-4/+0
|
* refactor makefileKonstantin Käfer2015-02-042-10/+28
|