| 21 | namespace { |
| 22 | |
| 23 | std::string getCachePath(const std::string& imagePath) { |
| 24 | // Replace extension with .pxc (pixel cache) |
| 25 | size_t dotPos = imagePath.rfind('.'); |
| 26 | if (dotPos != std::string::npos) { |
| 27 | return imagePath.substr(0, dotPos) + ".pxc"; |
| 28 | } |
| 29 | return imagePath + ".pxc"; |
| 30 | } |
| 31 | |
| 32 | bool renderFromCache(GfxRenderer& renderer, const std::string& cachePath, int x, int y, int expectedWidth, |
| 33 | int expectedHeight) { |
no outgoing calls
no test coverage detected