summaryrefslogtreecommitdiff
path: root/bin/render.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core, node, android] Remove used "base" parameter from setStyleJSONJohn Firebaugh2016-06-021-1/+1
|
* add pitch to bin/render.cppMike Morris2016-04-051-0/+3
|
* [core] Eliminate platform::assetRoot()John Firebaugh2016-01-131-1/+3
| | | | I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
* [core] Privatize SQLiteCacheJohn Firebaugh2016-01-081-3/+1
|
* [render] Add a RunLoop to `render` main threadThiago Marcos P. Santos2015-12-011-26/+10
| | | | Also simplified the code making the logic more linear.
* [core] Added MapDebugOptionsBruno de Oliveira Abinader2015-11-271-1/+1
| | | | | Map debug options are now cycled up to all debug options enabled, then back to none.
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-251-3/+3
| | | | | | | 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-7/+4
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* [core] bump libuv to 1.7.5 across all platformsMike Morris2015-10-141-1/+7
| | | | | | UV_ASYNC_PARAMS and UV_TIMER_PARAMS for libuv <= 0.10 compatibility use st_mtim.tv_sec in libuv > 0.10.x
* [osx] Fix build on Xcode 6.4John Firebaugh2015-09-281-6/+1
|
* [osx] disable -Wunused-local-typedefsMike Morris2015-09-241-1/+5
| | | | | Fixes OS X builds with Xcode 7, necessitated by https://svn.boost.org/trac/boost/ticket/11240
* Make pixelRatio constant across a Map object lifetimeKonstantin Käfer2015-07-081-2/+1
| | | | also moves framebuffer size out of TransformState into its own object
* Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-261-1/+0
|
* DefaultFileSource has responsibility for handling mapbox:// URLsJohn Firebaugh2015-05-261-4/+4
|
* Add callback for error notifications on renderStill()Thiago Marcos P. Santos2015-05-221-1/+10
| | | | | | | | | The callback will be called when any of the resources requested from the network failed to load. There is not recovery implemented yet, so the closest thing to reseting the Map object and reloading all the resources would be setting a new style.
* allow passing --debug to view tile boundaries in mbgl-renderKonstantin Käfer2015-05-131-0/+6
|
* Update the 'render' to reflect recent API changesThiago Marcos P. Santos2015-05-081-7/+2
| | | | | We don't call start/stop anymore and the resize is done via the map object.
* rename Mode::Static => Mode::StillKonstantin Käfer2015-04-171-1/+1
|
* align static render mode and still image render modeKonstantin Käfer2015-04-171-10/+24
| | | | | - static rendering now also runs in a separate thread; you have to start it with map.start(Map::Mode::Static) and join the thread with map.stop() before destructing the Map object - map.renderStill() takes a callback with will be invoked on the *map* thread, so you'll have to figure out your own method of dispatching back to the main thread.
* make implementation files private headersKonstantin Käfer2015-04-131-1/+1
|
* hide Thread<> and separate the Implementation objectKonstantin Käfer2015-04-131-3/+2
|
* add Thread<T> and RunLoopKonstantin Käfer2015-04-101-2/+3
| | | | | | Thread<T> is a generic thread management object that starts a thread, creates an object T in that thread and calls its .start() function. When the Thread<T> object is destructed (which must happen in the thread that created it), it'll call the object's .stop() function, and wait for thread termination. The .stop() function must somehow get the thread to terminate. Note that object T's constructor/destructor/start()/stop() must be protected/private, and Thread<T> must be declared as a friend class. All public functions may be called from any thread and are exposed through operator->(). RunLoop encapsulates a libuv runloop and has a facility of dispatching function objects to the thread. It can be used either as a worker thread class by itself, or it can be derived from. This commit converts SQLiteCache to derive from RunLoop and removes the custom code used previously for managing the cache thread.
* Make the logging system staticThiago Marcos P. Santos2015-03-121-13/+1
| | | | | | | 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).
* Trivial build fix, do not call private methodThiago Marcos P. Santos2015-03-111-1/+0
| | | | Resize is internally called by the view now.
* Fix build warnings on GCCThiago Marcos P. Santos2015-03-111-0/+7
| | | | Apperently boost has a few quirks on its headers.
* update static image rendering executableKonstantin Käfer2015-03-061-10/+4
|
* fixes #476 & #853: pixel/meter/latlng conversion routines in core & iOSJustin R. Miller2015-02-161-1/+1
|
* refactor makefileKonstantin Käfer2015-02-041-8/+11
|
* update bin/render for recent changesMike Morris2015-01-161-1/+1
|
* don't assing nullptr to std::stringKonstantin Käfer2014-12-161-1/+4
|
* don't provide a default value for the stylesheet fileKonstantin Käfer2014-12-111-1/+1
|
* allow setting the cache databaseKonstantin Käfer2014-12-111-1/+3
|
* show default values and allow setting the output filenameKonstantin Käfer2014-12-111-9/+10
|
* add cli tool for rendering a map to an imageKonstantin Käfer2014-12-111-0/+109