Commit Graph

2302 Commits

Author SHA1 Message Date
Ansis Brammanis
70362662f7 [core] look for loaded parent tiles in cache (#4595)
fix #4047

port https://github.com/mapbox/mapbox-gl-js/pull/2158
2016-04-15 13:10:50 -07:00
Thiago Marcos P. Santos
d51944fbea [core] Don't copy TransformState (#3501) 2016-04-15 12:17:19 -07:00
John Firebaugh
1ee0055710 [core] Eliminate MapData 2016-04-15 09:56:18 -07:00
John Firebaugh
9d18d65eda [core] Remove MapData dependency from Painter 2016-04-15 09:56:18 -07:00
John Firebaugh
ed489e7649 [core] Remove MapData dependency from Style 2016-04-15 09:56:18 -07:00
John Firebaugh
25ff2696a1 [core] Remove MapData dependency from AnnotationTile and StyleUpdateParameters 2016-04-15 09:56:18 -07:00
John Firebaugh
ce4270b01c [core] Convert MapContext to Map::Impl; eliminate indirection 2016-04-15 09:56:18 -07:00
John Firebaugh
6e78eabfff [core] Clean up ThreadContext vestiges 2016-04-15 09:56:18 -07:00
Ansis Brammanis
d2b9b1c348 [core] always set activeTexture before binding a texture 2016-04-14 17:12:56 -07:00
John Firebaugh
3af3e72bb3 [all] Replace HTTPContextBase/HTTPRequestBase with FileSource 2016-04-14 14:18:19 -07:00
John Firebaugh
204c7fee03 [core] Render from the main thread
Do not create a thread for the MapContext anymore.
2016-04-14 13:44:08 -07:00
John Firebaugh
a47ab85283 [core] Don't put static objects in a header file (#4707)
This causes duplicate objects -- one for every file that includes that header.
2016-04-14 12:11:02 -07:00
Thiago Marcos P. Santos
2d580364a6 [core] Do the MapContext::cleanup() synchronously
This used to be async assuming the libuv behavior of holding the
main loop until all the messages are processed and also for avoiding
a deadlock at exit that no longer exits.

Now that we support multiple main loops implementation on different
platforms, we do the cleanup synchronously to make sure all the
platforms have the same behavior at exit.

Fixes #4631
2016-04-12 20:15:25 +03:00
Konstantin Käfer
e7ac0f6d4c [core] do not call glStencilFunc when we're not clipping 2016-04-06 14:19:13 -07:00
Konstantin Käfer
3a36079ccc [core] disable stencil test for rasters 2016-04-06 14:16:53 -07:00
Konstantin Käfer
d63da3f2aa [core] only compute ClipIDs for Vector/GeoJSON/Annotation tiles 2016-04-06 14:16:53 -07:00
Konstantin Käfer
ea32ee742f [core] only render tiles that have data 2016-04-06 14:16:53 -07:00
Konstantin Käfer
09684bb1dc [core] do not paint empty debug buckets
this removes "Buffer doesn't contain elements" messages when debug painting is enabled
2016-04-06 14:16:53 -07:00
Ansis Brammanis
e7742f2fe9 [core] get rid of empty buffer warning
fix #3148
2016-04-04 22:35:56 -07:00
Konstantin Käfer
65acf35dcf [core] fix various compilation issues 2016-04-04 16:20:04 -07:00
Ansis Brammanis
415ea295c5 [core] make sprite metrics checking stricter
- check that sprite metrics are within the bounds of the sprite. fix #714
- make sprite metrics problems Errors instead of Warnings
- check for negative image width, height
2016-03-31 10:27:42 -07:00
Ansis Brammanis
273600c16e [core] simplify conversions from pixels to tile units
fix #3768
2016-03-30 18:53:44 -07:00
John Firebaugh
5eda74a514 Merge branch 'release-ios-3.2.0-android-4.0.0' 2016-03-30 17:43:37 -07:00
Ansis Brammanis
b6a181097c [core] fix reparsing overscaled geojson tiles
fix #3838
2016-03-30 13:57:47 -07:00
John Firebaugh
7b5a1ca167 [core] Localize and simplify state for MapChangeDidFinishLoadingMap event
Only Map needs to track this state, and it can simply be set when beginning to load a style and reset when finished.
2016-03-30 13:53:31 -07:00
Ansis Brammanis
8e9e779f2f [core] fix line-dasharray/long-segment render test
fix #3928

reduce LineAtlas width to 256 to match -js. 256 should be enough.
2016-03-30 13:13:54 -07:00
Ansis Brammanis
387f37d035 [core] increase geojson buffer size to match -js 2016-03-30 13:13:53 -07:00
Ansis Brammanis
0539f7b4cb [core] fix infinite loop in mbgl::resample
fix #4416
2016-03-29 11:38:35 -07:00
Ansis Brammanis
fb15582d53 [core] fix background-pattern rendering in perspective view
fix #3801
2016-03-29 11:19:47 -07:00
Ansis Brammanis
6fcc7ba513 [core] fix circle rendering in still mode
fix #3764
2016-03-29 10:10:48 -07:00
Ansis Brammanis
3cc55a9dac [core] pack extrude and line distance into unsigned byte
instead of a signed byte. It's a bit easier to understand.

6c29251b35
2016-03-28 17:44:42 -07:00
Ansis Brammanis
196b7903d1 [core] remove flip from LineBucket.addLine
port dc036bcb3c
2016-03-28 17:44:41 -07:00
Ansis Brammanis
930c3c46c5 [core] reset line distance when it is near max
port 77ce4b45b2

fix #4492
2016-03-28 17:44:41 -07:00
Ansis Brammanis
b352bb81d8 [core] fix background-pattern rendering in perspective view
fix #3801
2016-03-28 16:59:39 -07:00
Bruno de Oliveira Abinader
3afdfc15a1 [core] FrameHistory cleanups 2016-03-24 22:02:30 +02:00
Bruno de Oliveira Abinader
fe1b417d04 [core] Update time point in map context on every update
Previous behavior prevented view from notifying when map was fully
loaded, because the style sources relies on a future time point for
checking if their tiles are updated. This was first caught only in still
mode, but also happens in continuous mode for platforms that rely on
View::notifyMapChange for updating the view.
2016-03-24 22:02:30 +02:00
John Firebaugh
169755e89a [core] Unify FileRequest and WorkRequest 2016-03-24 10:54:32 -07:00
John Firebaugh
2f9e6f4e94 [core] Allow the use of special characters in property field names
Fixes #4336
2016-03-23 17:15:18 -07:00
Ansis Brammanis
666c2658b8 upload new symbol buffers in upload pass
fix #4131
2016-03-22 12:58:41 +02:00
Thiago Marcos P. Santos
baf30cd1f7 [glfw] Main loop integration
This new code can be used for rendering on the Main thread
while it will also work for rendering on the Map thread
before we make the switch. Needed by #2909.
2016-03-21 23:58:48 -03:00
John Firebaugh
ca8212de92 [all] Set maximum maxZoom to 21
Numbers greater than 21 trigger various bugs.
2016-03-21 16:38:54 -07:00
Bruno de Oliveira Abinader
cd1a06c2dc [core] Get rid of MapData::{get,set}animationTime 2016-03-18 01:27:48 +02:00
Bruno de Oliveira Abinader
c6ba05bbc3 [core] Default fade duration is now a constant 2016-03-18 01:27:47 +02:00
Bruno de Oliveira Abinader
8f96dea822 [core] Remove default transition duration 2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
f736e46ca4 [core] s/Update::Zoom/Update/RecalculateStyle/ 2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
4909169996 [core] Added user-defined transition properties when modifying classes 2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
94de5d7f4a [core] Remove MapData::defaultTransitionDelay 2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
aa530d2bea [core] Cleaned up duplicate code in MapContext 2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
01edd4503c [core] Move class handling to Style 2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
c561ea5d05 [core] Check for NaNs in mbgl::util::{min,max,clamp} 2016-03-18 01:26:22 +02:00