Bruno de Oliveira Abinader
92f605df32
[tidy] Check modernize-use-nullptr
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2016-06-13 23:32:05 +03:00
John Firebaugh
e802aedb8c
[core, node, android] Remove used "base" parameter from setStyleJSON
2016-06-02 16:33:56 -07:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
d7e1ecd19e
[core] Generalize Map::{add,remove}CustomLayer
2016-06-02 14:51:39 -07:00
Bruno de Oliveira Abinader
4e04a107e8
Revert "[core] Do not clear custom layers upon style switch"
...
This reverts commit 8ec875b87c .
2016-04-21 20:15:18 +03:00
Bruno de Oliveira Abinader
8ec875b87c
[core] Do not clear custom layers upon style switch
2016-04-21 15:09:54 +03:00
John Firebaugh
b55692132a
[tests] Use StubFileSource where a real FileSource is not required
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
Konstantin Käfer
db5ac4785f
[test] rearrange test files so they're not in the fixtures folder
2016-03-22 11:56:01 -07:00
John Firebaugh
d5eb5240f8
Revert "[gl] Updated CustomLayer tests"
...
These tests are intended to reflect how someone using the custom layer feature might actually write their callbacks. Therefore the callbacks should not use mbgl-specific classes.
This reverts commit 69112a2a09 .
2016-02-18 15:15:24 -08:00
Bruno de Oliveira Abinader
69112a2a09
[gl] Updated CustomLayer tests
2016-02-18 13:27:35 +02:00
John Firebaugh
dbb8e58aea
[core] Moving caching logic to DefaultFileSource
...
This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
2016-02-10 15:40:20 -08:00
John Firebaugh
86c8446d3a
[core] Simplify asset:// implementation
...
* Move asset:// URL handling to DefaultFileSource.
* AssetFileSource implements FileSource interface and follows familiar implementation patterns.
* Move default implementation to platform/default, zip implementation to platform/android.
* Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter.
* Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit.
2016-01-13 13:40:31 -08:00
John Firebaugh
7a6076ea9d
[tests] Test with OnlineFileSource
...
When we introduce OfflineFileSource, the behavior of existing tests should
not change.
2015-12-23 14:55:12 -08:00
John Firebaugh
65b3220368
[core] Reduce custom layer API to lowest common denominator
2015-12-11 12:44:54 -08:00
John Firebaugh
bde07c8f0e
[core] Custom layers
2015-12-09 13:51:28 -08:00