Commit Graph

2248 Commits

Author SHA1 Message Date
Konstantin Käfer
1f91be988b add user agent header
fixes #628
2014-12-08 11:04:08 +01:00
John Firebaugh
de098591c5 Remove Map::cleanup and Painter::cleanup
Both were noops.
2014-12-06 14:08:40 -08:00
Dane Springmeyer
004d12ea0b Merge pull request #698 from mapbox/cache-shaders
Add caching of compiled shaders
2014-12-05 23:37:35 -05:00
Leith Bade
67c1ff2f95 Fix rebase 2014-12-06 14:28:34 +11:00
Leith Bade
6df4e4a52c Load program binary extension on Linux 2014-12-06 14:21:08 +11:00
John Firebaugh
ff640132de Move setAccessToken to CachingHTTPFileSource 2014-12-04 17:03:23 -08:00
John Firebaugh
0a942b6f14 Change Map::stop to use std::function<void()>
Fixes #685
2014-12-04 15:58:04 -08:00
John Firebaugh
13564fb876 Create GlyphStore up front 2014-12-04 15:26:54 -08:00
John Firebaugh
0c9ae49b47 get/setBase may be called from main thread 2014-12-04 15:26:54 -08:00
John Firebaugh
36500b9f95 Add CachingHTTPFileSource::clearLoop()
So loop state can be cleaned up in the appropriate thread.
This is a hack; loop needs to be externalized from Map.

Fixes #686
2014-12-04 15:26:54 -08:00
John Firebaugh
16fe8e64c4 Move setReachability to CachingHTTPFileSource 2014-12-04 15:14:40 -08:00
John Firebaugh
9aff2c386c Remove invalid map->terminate()
Map has already been destroyed by this point, so the
call is invalid. The work that terminate() would do
has already been done.
2014-12-04 14:31:29 -08:00
Konstantin Käfer
22f02ac007 Merge pull request #622 from mapbox/private-headers
make most headers private
2014-12-04 20:24:29 +01:00
Konstantin Käfer
3b190ddd0d fix build 2014-12-04 20:13:08 +01:00
Konstantin Käfer
1e3fb3a423 remove usage of relative paths 2014-12-04 20:02:51 +01:00
Konstantin Käfer
abafb52f37 make most headers private 2014-12-04 20:02:50 +01:00
Konstantin Käfer
bff6aeb4da switch to plain file streams rather than JSON 2014-12-04 20:00:41 +01:00
John Firebaugh
97d7f065d6 Add virtual destructor for FileSource 2014-12-04 10:52:26 -08:00
John Firebaugh
e5f70bddf6 Update mapbox-gl-cocoa 2014-12-04 10:35:50 -08:00
Konstantin Käfer
b449b22abc remove use of std::to_string in favor of boost::lexical_cast
std::to_string calls sprintf() internally, which is really slow
2014-12-04 12:59:09 +01:00
Konstantin Käfer
65451187f5 [performance] remove use of snprintf in hot path; it's pretty slow on iOS 2014-12-04 12:19:21 +01:00
John Firebaugh
57249ca32c Prefer stdlib to libuv (fixes #688) 2014-12-03 17:38:10 -08:00
John Firebaugh
10ebcbca93 Remove unused 2014-12-03 13:42:02 -08:00
John Firebaugh
21b4f8c501 libuv handles must be deallocated asynchronously
Fixes #659
2014-12-03 12:04:56 -08:00
Mike Morris
90a7be9079 Merge pull request #677 from mapbox/caching-http-file-source
Break out FileSource interface
2014-12-03 12:36:32 -05:00
Mike Morris
dac76a0f92 break out FileSource as an abstract class
add CachingHTTPFileSource implementation
2014-12-03 12:25:11 -05:00
Konstantin Käfer
d3ab895153 switch to a newer version of GLFW
refs #679
2014-12-03 12:30:29 +01:00
Konstantin Käfer
dbdc64592c don't set the window title on every frame
this is a significant performance penalty, at least on OS X, and drops our frame rate below 60fps on even simple scenes. instead of showing the position of the map in the window, we should display it elsewhere
2014-12-03 11:59:39 +01:00
Konstantin Käfer
82f3574d09 add array overloads to make_unique and move it to mbgl::util from std 2014-12-03 11:27:24 +01:00
John Firebaugh
50669307c5 Remove unnecessary cast 2014-12-02 12:24:26 -08:00
John Firebaugh
a6522d4a5a Texturepool ⇢ TexturePool (fixes #655) 2014-12-02 12:24:25 -08:00
John Firebaugh
8fdf645e12 Adhere to naming conventions 2014-12-02 12:24:25 -08:00
John Firebaugh
8f1772f18f More complete uv::thread 2014-12-02 12:24:25 -08:00
artemp
9e819a4cbe untabify 2014-12-02 16:38:04 +01:00
artemp
2c05b23f6a update nunicode version to 1.5.1 2014-12-02 16:34:51 +01:00
Leith Bade
42966004f3 Merge pull request #670 from mapbox/gl-debug
Use GL debug callbacks
2014-12-02 19:02:16 +11:00
Mike Morris
9aa638201d Merge pull request #673 from mapbox/pixel-flip
Move pixel flip from headless test into HeadlessView::readPixels
2014-12-01 19:28:47 -05:00
Mike Morris
7e7b85e132 fix memcpy includes/namespace 2014-12-01 13:49:47 -08:00
Mike Morris
0fd7f26533 move pixel flip from headless test into HeadlessView::readPixels 2014-12-01 16:36:11 -05:00
Leith Bade
5ad094e823 Fix iOS compile 2014-12-02 03:43:04 +11:00
Leith Bade
2800f36142 Add debug markers and labels 2014-12-02 03:24:42 +11:00
Leith Bade
66349e33ab Add GL_ARB_debug_output 2014-12-02 03:09:09 +11:00
Leith Bade
204700ff7e Stop mipmap allocation for textures 2014-12-02 02:29:07 +11:00
Leith Bade
763e636fd7 Improve formatting 2014-12-02 02:01:10 +11:00
Leith Bade
d27ede63fe Enable all messages 2014-12-02 01:57:18 +11:00
Leith Bade
2113e27990 Implement debug callback 2014-12-02 01:53:44 +11:00
Leith Bade
bbfe5d5ce4 Define GL callback func. Improve GL err macro. 2014-12-02 01:21:40 +11:00
Leith Bade
8f60624bec Fix import problem 2014-12-02 00:52:43 +11:00
Leith Bade
6998c6ecb9 Load KHR_debug on Linux 2014-12-02 00:44:08 +11:00
Leith Bade
c732f5c712 Merge pull request #669 from mapbox/fix-vaos
Fix VAOs on Linux
2014-12-02 00:36:16 +11:00