Leith Bade
d4159d5141
Merge branch 'android-okhttp'
2015-08-12 14:58:33 +10:00
Konstantin Käfer
aa06a9d587
query the monitor's resolution instead of forcing 1024x768
2015-08-11 16:40:40 +03:00
Konstantin Käfer
21ec505648
add benchmark mode that shows the real frame time rather than the vsync time
2015-08-11 16:40:40 +03:00
Leith Bade
0cbe7e07f5
Use OkHTTP to implement HTTPContext on Android.
...
Closes #823
2015-08-11 11:59:08 +10:00
Konstantin Käfer
76c937f119
set thread priority on Linux
2015-08-10 12:01:26 +03:00
Bruno de Oliveira Abinader
fa4636ffe4
Map::nudgeTransitions no longer depends on client information
...
Clients no longer need to provide data (eg. if gesturing or in a custom
animation) to Map::nudgeTransitions().
Upon MapContext::renderSync(), a new atomic bool 'needsRepaint' in MapData
allows thread-safe communication between Map and MapContext.
2015-08-05 15:19:00 +03:00
Bruno de Oliveira Abinader
492bcf0bd7
Added Update::Repaint
2015-08-05 15:19:00 +03:00
Thiago Marcos P. Santos
92d78eae38
Removed debug leftover
2015-08-05 14:56:48 +03:00
Konstantin Käfer
56a4268cca
manually premultiply the image if libpng can't do it
2015-08-04 18:49:51 +02:00
Konstantin Käfer
19e5d9af22
don't require PNG_ALPHA_PREMULTIPLIED to support older versions of libpng
2015-08-04 14:08:20 +02:00
Konstantin Käfer
daaa643bbf
support cURL versions older than 7.21.6
...
prior to cURL 7.21.6, CURLOPT_ACCEPT_ENCODING was called CURLOPT_ENCODING
2015-08-04 14:08:20 +02:00
Konstantin Käfer
78ec33320f
don't use certain STL functions
...
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
2015-08-04 14:08:19 +02:00
Bruno de Oliveira Abinader
3c43171bc0
s/AssetContext/AssetContextBase/
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
0cc69b368d
s/HTTPContext/HTTPContextBase/
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
e42a903bba
Replaced 'override' with 'final' for non-public interfaces
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
590d9ab95c
Created HTTPRequestBase as base for HTTP requests
...
- Added HTTPRequestBase (inherits from RequestBase)
- retry() is now a pure virtual in HTTPRequestBase
- Moved cancelled bool to HTTPRequestBase
- HTTPContext now handles only HTTPRequestBase*
- Renamed HTTPNSURLRequest, HTTPCURLRequest
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
785b34df2e
Moved ResponseStatus to its own header
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
5e2f3b1323
Avoid nudging transitions if a gesture is in progress #2
...
Following the same steps from #1548 and #1912 for GLFW and iOS ports.
Also removed a redundant check if transform state is changing since
we're already dealing with that.
2015-07-27 21:57:51 +03:00
Bruno de Oliveira Abinader
0b8cd02c19
GLFW port now uses nudgeTransitions()
2015-07-20 21:59:13 +03:00
Thiago Marcos P. Santos
938165de17
Re-enable the Satellite style on the Linux/OSX app
2015-07-14 14:26:40 +03:00
Thiago Marcos P. Santos
00308be140
Make one arg ctors explicit
2015-07-11 12:42:45 +03:00
Thiago Marcos P. Santos
bd8210d5a1
Remove unused function: elapsed()
2015-07-11 12:42:45 +03:00
Thiago Marcos P. Santos
67554cae41
Remove unused function: uv_zip_open()
2015-07-11 12:42:45 +03:00
Konstantin Käfer
62ac43a85b
add ability to add random custom markers to test app
2015-07-08 19:46:02 +02:00
Konstantin Käfer
55ef14f3a8
compress_png: void* => const void*
2015-07-08 19:45:59 +02:00
Konstantin Käfer
675ddddee7
Make pixelRatio constant across a Map object lifetime
...
also moves framebuffer size out of TransformState into its own object
2015-07-08 10:40:05 +02:00
Thiago Marcos P. Santos
ec1b4c43fd
Do not force uv_loop_t as the first parameter for a threaded object ctor
2015-07-06 16:01:59 +03:00
John Firebaugh
fc64e97bce
Simplify RunLoop
...
Instead of transforming between return value and callback, pass
the wrapped callback on to the invoked function as the last argument.
This eliminates the need for multiple invokeWithArgument overloads
and permits invoked functions to be asynchronous.
2015-07-01 16:12:12 -07:00
John Firebaugh
5fadda53e5
Move WorkerTask functionality into RunLoop core
...
As a byproduct, this makes FileCache get requests properly
cancelable.
2015-07-01 15:21:10 -07:00
John Firebaugh
42c06e7039
Use array of structs rather than parallel arrays for annotations
2015-06-29 10:54:17 -07:00
Konstantin Käfer
84e2ea886d
drive map rendering from main thread
2015-06-26 10:32:06 -07:00
Thiago Marcos P. Santos
a8b6b67dfe
Introduce the ThreadContext
...
mbgl::Thread will keep a ThreadContext for each running instance
in a thread_local so we don't need to lookup a man in the Environment
every time we need some info about the current thread.
This patch is moving the ::currentlyOn check used on Debug build from
the Environment class to the ThreadContext.
2015-06-25 16:26:21 +03:00
Thiago Marcos P. Santos
1f12bcee90
Support shape annotations on GLFWView
...
Add different random triangles count by using the keys 7, 8, 9 or 0.
Q will clear all the annotations.
W will remove one annotation.
2015-06-18 13:39:18 +03:00
Minh Nguyễn
714b68f7b3
Revert "use array of structs rather than parallel arrays for annotations"
...
This reverts commit 2435c1ad26 (#1710 ), which needs to be revisited in light of #1655 , which is a much higher priority at the moment.
2015-06-15 15:58:22 -07:00
Konstantin Käfer
2435c1ad26
use array of structs rather than parallel arrays for annotations
2015-06-11 17:26:37 -04:00
Konstantin Käfer
0c5f8a2c59
press 1 through 6 to add 10^(n-1) points in the current viewport
...
(only works correctly when rotated to north, but this is a just a debug functionality anyway)
2015-06-09 10:29:07 -04:00
Ansis Brammanis
ff6a5ce5bc
Merge remote-tracking branch 'origin/master' into new-labelling
...
Conflicts:
src/mbgl/map/source.cpp
src/mbgl/map/source.hpp
src/mbgl/map/tile_data.cpp
src/mbgl/map/tile_parser.cpp
src/mbgl/map/vector_tile_data.cpp
src/mbgl/renderer/painter.cpp
src/mbgl/renderer/symbol_bucket.cpp
src/mbgl/text/glyph.hpp
src/mbgl/text/glyph_store.cpp
src/mbgl/text/placement.cpp
test/suite
2015-05-28 20:01:15 -04:00
Ansis Brammanis
8962442b1b
make collision debug boxes toggleable
2015-05-28 19:17:07 -04:00
Konstantin Käfer
f4707f72e0
Replace mbgl::util::make_unique<> with std::make_unique<>
2015-05-26 17:57:38 +02:00
John Firebaugh
5aa5976a71
Speculative fix for PNG alpha/gamma handling
...
The libpng documentation is hopelessly impenetrable and I have no idea
what I'm doing, but this seems to fix the headless rendering failures.
2015-05-14 18:02:15 -07:00
John Firebaugh
7d4f12434e
Ensure call-once semantics inside InitializeExtensions
2015-05-13 19:01:58 -07:00
John Firebaugh
a2344c36c3
Extensible GL extension support
2015-05-13 19:01:58 -07:00
John Firebaugh
0f7c6b0b52
Remove unused GL feature flags
...
These were used only for prerendered textures, which were removed.
2015-05-13 19:01:57 -07:00
John Firebaugh
606e2c7383
Remove currently unsupported styles from defaultStyles
2015-05-12 16:42:26 -07:00
Konstantin Käfer
7dbe768ffc
change the window title to indicate the current style
2015-05-07 11:01:15 +02:00
Thiago Marcos P. Santos
769364c117
Make all GLFWView attributes private
2015-05-07 11:01:15 +02:00
Thiago Marcos P. Santos
168d7c4f17
Add style change functionality to the Linux test app
...
Makes the life of people using Linux as development environment way
easier.
Just press 's' to cycle through 3 different styles.
2015-05-07 11:01:15 +02:00
Konstantin Käfer
248e48eacc
decode URLS when loading from file system
2015-05-05 11:47:23 +02:00
Konstantin Käfer
27d8e82e1c
lower thread priority of worker threads
2015-05-04 17:33:05 +02:00
Konstantin Käfer
72964f5bef
only update GL state when it actually changed
2015-05-04 17:33:05 +02:00