Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
Conflicts: platform/default/glfw_view.cpp platform/default/headless_view.cpp src/mbgl/map/map.cpp
This commit is contained in:
@@ -33,18 +33,18 @@ public:
|
||||
// Called from the render thread. Makes the GL context active in the current
|
||||
// thread. This is typically just called once at the beginning of the
|
||||
// renderer setup since the render thread doesn't switch the contexts.
|
||||
virtual void make_active() = 0;
|
||||
virtual void activate() = 0;
|
||||
|
||||
// Called from the render thread. Makes the GL context inactive in the current
|
||||
// thread. This is called once just before the rendering thread terminates.
|
||||
virtual void make_inactive() = 0;
|
||||
virtual void deactivate() = 0;
|
||||
|
||||
virtual void notify() = 0;
|
||||
|
||||
// Notifies a watcher of map x/y/scale/rotation changes.
|
||||
// Must only be called from the same thread that caused the change.
|
||||
// Must not be called from the render thread.
|
||||
virtual void notify_map_change(MapChange change, timestamp delay = 0) = 0;
|
||||
virtual void notifyMapChange(MapChange change, timestamp delay = 0) = 0;
|
||||
|
||||
protected:
|
||||
mbgl::Map *map = nullptr;
|
||||
|
||||
@@ -16,16 +16,16 @@ public:
|
||||
|
||||
void initialize(mbgl::Map *map);
|
||||
void swap();
|
||||
void make_active();
|
||||
void make_inactive();
|
||||
void activate();
|
||||
void deactivate();
|
||||
void notify();
|
||||
void notify_map_change(mbgl::MapChange change, mbgl::timestamp delay = 0);
|
||||
void notifyMapChange(mbgl::MapChange change, mbgl::timestamp delay = 0);
|
||||
|
||||
static void key(GLFWwindow *window, int key, int scancode, int action, int mods);
|
||||
static void scroll(GLFWwindow *window, double xoffset, double yoffset);
|
||||
static void resize(GLFWwindow *window, int, int);
|
||||
static void mouseclick(GLFWwindow *window, int button, int action, int modifiers);
|
||||
static void mousemove(GLFWwindow *window, double x, double y);
|
||||
static void resize(GLFWwindow *window, int width, int height);
|
||||
static void mouseClick(GLFWwindow *window, int button, int action, int modifiers);
|
||||
static void mouseMove(GLFWwindow *window, double x, double y);
|
||||
|
||||
static void eventloop(void *arg);
|
||||
|
||||
@@ -35,12 +35,12 @@ public:
|
||||
public:
|
||||
bool fullscreen = false;
|
||||
|
||||
double last_x = 0, last_y = 0;
|
||||
double lastX = 0, lastY = 0;
|
||||
bool tracking = false;
|
||||
|
||||
bool rotating = false;
|
||||
|
||||
double last_click = -1;
|
||||
double lastClick = -1;
|
||||
|
||||
GLFWwindow *window = nullptr;
|
||||
};
|
||||
|
||||
@@ -31,13 +31,13 @@ public:
|
||||
std::unique_ptr<uint32_t[]> readPixels();
|
||||
|
||||
void notify();
|
||||
void notify_map_change(MapChange change, timestamp delay = 0);
|
||||
void make_active();
|
||||
void make_inactive();
|
||||
void notifyMapChange(MapChange change, timestamp delay = 0);
|
||||
void activate();
|
||||
void deactivate();
|
||||
void swap();
|
||||
|
||||
private:
|
||||
void clear_buffers();
|
||||
void clearBuffers();
|
||||
|
||||
private:
|
||||
std::shared_ptr<HeadlessDisplay> display_;
|
||||
|
||||
Reference in New Issue
Block a user