| 131 | } |
| 132 | |
| 133 | std::string GetOutputFile(const std::string& key) { |
| 134 | #ifdef GENERATE_BASELINE_IMAGES |
| 135 | static const std::string OUT_ROOT = TestDir::GetRoot() + "/baseline-out"; |
| 136 | #else |
| 137 | static const std::string OUT_ROOT = TestDir::GetRoot() + "/out"; |
| 138 | #endif |
| 139 | return OUT_ROOT + "/" + key + ".webp"; |
| 140 | } |
| 141 | |
| 142 | void SaveImage(const tgfx::Bitmap& bitmap, const std::string& key) { |
| 143 | if (bitmap.isEmpty()) { |
no outgoing calls
no test coverage detected