John Firebaugh
e04c5f6506
[core] Replace StyleLayerType with RTTI
2015-12-07 18:22:33 -08:00
John Firebaugh
203b443d26
[core] Avoid making a new copy of layers for redoPlacement
2015-12-07 11:19:08 -08:00
John Firebaugh
cdd129335c
[core] Make Paint/LayoutProperties constructor explicit
2015-12-07 11:19:08 -08:00
John Firebaugh
0a0007e0ac
[core] More efficient layer cloning
2015-12-07 11:19:08 -08:00
John Firebaugh
47be1f5774
[core] Remove unused header
2015-12-03 12:44:43 -08:00
John Firebaugh
398ab663be
[core] Clean up Painter
2015-12-03 12:44:43 -08:00
Konstantin Käfer
964a1e7b62
[core] rudimentary support for offsetting lines
2015-12-03 11:41:53 -08:00
Konstantin Käfer
c279fb1717
[core] throw values, catch references
2015-12-03 15:38:36 +01:00
Konstantin Käfer
0c351eb523
[core] use default instead of empty function body
2015-12-03 15:38:36 +01:00
Konstantin Käfer
478472e501
[core] add std::move to constructors
2015-12-03 15:38:36 +01:00
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01:00
Konstantin Käfer
6feb89cbbc
[core] fix various errors reported by clang-tidy
2015-12-03 15:38:36 +01:00
Konstantin Käfer
dc620f48de
[core] Fix std::move() misuse that disables copy elision
2015-12-03 15:38:36 +01:00
John Firebaugh
e5181e2668
[core] Use optional where SpriteAtlas return values might not exist
...
Fixes #3162
2015-12-01 18:05:54 -08:00
John Firebaugh
8afa14fa78
[core] Map::setSprite ⇢ Map::addAnnotationIcon
...
Fixes #3084
2015-12-01 15:10:28 -08:00
John Firebaugh
8a66b7047f
[core] Remove mutex from Style
...
There's no cross-thread sharing to be protected here.
2015-12-01 11:16:57 -08:00
John Firebaugh
b7674040ab
[core] Privatize layers and sources
2015-12-01 11:16:57 -08:00
John Firebaugh
bafbf6c04b
[core] Don't share util::ptr<StyleLayer> across threads
2015-12-01 11:16:57 -08:00
John Firebaugh
96f5ae7cb8
[core] Don't share Style& across threads
2015-12-01 11:16:57 -08:00
Adam Hunter
e1091db45e
[core] Use a separate atlas and store for annotation sprites
...
Fixes #1488
2015-12-01 09:15:05 -08:00
John Firebaugh
58886842bc
[core] Move MapData storage to MapContext
...
This allows MapData members to hold GL resources which must be released
on the MapContext thread -- necessary for the following commit.
2015-12-01 09:15:05 -08:00
John Firebaugh
40ebf5d0d0
[core] Introduce StyleUpdateParameters
2015-12-01 09:07:03 -08:00
John Firebaugh
f27c28b6c4
Partially revert "[core] Source should receive a ref to MapData just once"
...
This partially reverts commit d55aa7929c .
2015-12-01 09:07:03 -08:00
Thiago Marcos P. Santos
ed29223e5a
[core] Remove mbgl/util/uv.hpp
...
Now only a few things depend on libuv and they can use it directly.
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
a1f714bd37
[core] Do not use uv::rwlock on Style
...
It was being used as a normal mutex anyway.
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
62990f0a21
[core] Port uv::tls to pthreads
2015-12-01 11:49:02 +02:00
John Firebaugh
c5a4377714
[core] Privatize internal headers
2015-12-01 11:49:02 +02:00
John Firebaugh
1c63f98f6d
[core] Expose fewer RunLoop implementation details in header
2015-12-01 11:49:02 +02:00
John Firebaugh
f2553fff89
[core] Merge uv_detail.hpp into uv.hpp
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
d515f84caf
[core] Remove unused libuv includes
2015-12-01 11:49:01 +02:00
Thiago Marcos P. Santos
9b36c19aeb
[core] Introduce Timer abstraction
2015-12-01 00:00:09 +02:00
Thiago Marcos P. Santos
0d8ea6c0a2
[core] Removed dependency on uv_loop from the file source
2015-12-01 00:00:09 +02:00
Thiago Marcos P. Santos
d422c8cac4
[core] Abstract main loop inside RunLoop class
2015-12-01 00:00:09 +02:00
Thiago Marcos P. Santos
1d62332204
[core] Use AsyncTask on the MapContext
2015-12-01 00:00:09 +02:00
Thiago Marcos P. Santos
123c5df922
[core] Introduce the AsyncTask
2015-12-01 00:00:09 +02:00
Bruno de Oliveira Abinader
92856f394c
[core] Collision debug is now MapDebugOptions::Collision
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
d55aa7929c
[core] Source should receive a ref to MapData just once
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
1f0820c8e8
[core] Added MapDebugOptions
...
Map debug options are now cycled up to all debug options enabled, then
back to none.
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
044e92f5e8
[core] Display modify, expires debug information
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
591e0dde2f
[core] Added modified, expires information to TileData
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
31fd2822f5
[core] Replace time_t with std::chrono::seconds
...
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.
2015-11-27 17:47:02 +02:00
John Firebaugh
1d33790dc0
[core] Fix image type of Map::renderStill
...
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.
2015-11-25 15:57:37 -08:00
John Firebaugh
f3d6f68106
[core] Always manually premultiply libpng output
...
It appears to be the only way to get the results we want in all cases.
2015-11-25 15:57:36 -08:00
John Firebaugh
0c1e378bc9
[core] Rewrite image handling
...
* Consolidate Image and StillImage
* Typecheck unassociated vs premultiplied images
* Rewrite default platform image decoding implementation
2015-11-25 15:57:36 -08:00
Minh Nguyễn
2de0a351a0
[core] [iOS] Completion handlers for animated methods
...
Added transition frame and finish functions to CameraOptions. Added Objective-C equivalents to the three main entry points to easeTo() in MGLMapView.
Fixes #1581 .
2015-11-25 15:20:25 -08:00
Thomas Voß
3f786c7171
Fix GCC5 complaining about -Wunused-variable.
2015-11-25 14:23:13 +01:00
Konstantin Käfer
b5f7cafab4
[core] more robust max-age parsing
2015-11-20 14:39:44 +01:00
John Firebaugh
d08861daf4
[core] Force style-sourced annotations to be visible
2015-11-19 19:50:29 -08:00
John Firebaugh
afa04de152
[core] Followup fix to #3037
...
The previous fix resulted in annotations sometimes never being added.
This would happen if, during the execution of MapContext::update where
Update::Annotations was set, the style itself was loaded but some of
its subresources (sprite or sources) were not.
#3082 is a follow up issue to make MapContext::update less error-prone.
2015-11-19 18:01:42 -08:00
John Firebaugh
db1c4f2cc2
[core] Avoid calling AnnotationManager::updateStyle until the style is loaded
...
Fixes #3037
2015-11-18 16:05:13 -08:00