summaryrefslogtreecommitdiff
path: root/src/mbgl/map
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-10-29 17:27:16 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-10-31 16:53:07 +0200
commita70bfd89108cf1aef75181819ae43e550a69255e (patch)
tree158af7ab005cb4edcb788b4d87c9396e7add4c4d /src/mbgl/map
parentf03afdee218680d95eb5b9b0ab04083bc7cea512 (diff)
downloadqtlocation-mapboxgl-a70bfd89108cf1aef75181819ae43e550a69255e.tar.gz
[core] Don't use GL_LINEAR if panning w/o rotation nor pitch
Diffstat (limited to 'src/mbgl/map')
-rw-r--r--src/mbgl/map/map.cpp1
-rw-r--r--src/mbgl/map/transform_state.cpp4
-rw-r--r--src/mbgl/map/transform_state.hpp1
3 files changed, 0 insertions, 6 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index 75f7788931..c7a47abebd 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -408,7 +408,6 @@ void Map::cancelTransitions() {
void Map::setGestureInProgress(bool inProgress) {
impl->transform.setGestureInProgress(inProgress);
- impl->onUpdate(Update::Repaint);
}
bool Map::isGestureInProgress() const {
diff --git a/src/mbgl/map/transform_state.cpp b/src/mbgl/map/transform_state.cpp
index 5dc7feffc0..188b3aa79a 100644
--- a/src/mbgl/map/transform_state.cpp
+++ b/src/mbgl/map/transform_state.cpp
@@ -175,10 +175,6 @@ float TransformState::getPitch() const {
#pragma mark - State
-bool TransformState::isChanging() const {
- return rotating || scaling || panning || gestureInProgress;
-}
-
bool TransformState::isRotating() const {
return rotating;
}
diff --git a/src/mbgl/map/transform_state.hpp b/src/mbgl/map/transform_state.hpp
index 6faaf4ac41..c274ce1fcd 100644
--- a/src/mbgl/map/transform_state.hpp
+++ b/src/mbgl/map/transform_state.hpp
@@ -60,7 +60,6 @@ public:
float getPitch() const;
// State
- bool isChanging() const;
bool isRotating() const;
bool isScaling() const;
bool isPanning() const;