| 1 | #pragma once |
| 2 | |
| 3 | #include <memory> |
| 4 | #include <string> |
| 5 | |
| 6 | namespace mbgl { |
| 7 | namespace platform { |
| 8 | |
| 9 | class Request; |
| 10 | |
| 11 | // Uppercase a string, potentially using platform-specific routines. |
| 12 | std::string uppercase(const std::string &string); |
| 13 | |
| 14 | // Lowercase a string, potentially using platform-specific routines. |
| 15 | std::string lowercase(const std::string &string); |
| 16 | |
| 17 | // Gets the name of the current thread. |
| 18 | std::string getCurrentThreadName(); |
| 19 | |
| 20 | // Set the name of the current thread, truncated at 15. |
| 21 | void setCurrentThreadName(const std::string& name); |
| 22 | |
| 23 | // Makes the current thread low priority. |
| 24 | void makeThreadLowPriority(); |
| 25 | |
| 26 | // Shows an alpha image with the specified dimensions in a named window. |
| 27 | void showDebugImage(std::string name, const char *data, size_t width, size_t height); |
| 28 | |
| 29 | // Shows an alpha image with the specified dimensions in a named window. |
| 30 | void showColorDebugImage(std::string name, const char *data, size_t logical_width, size_t logical_height, size_t width, size_t height); |
| 31 | } // namespace platform |
| 32 | } // namespace mbgl |
| 33 | |