| 106 | } |
| 107 | |
| 108 | bool Baseline::Compare(std::shared_ptr<PixelBuffer> pixelBuffer, const std::string& key) { |
| 109 | if (pixelBuffer == nullptr) { |
| 110 | return false; |
| 111 | } |
| 112 | auto pixels = pixelBuffer->lockPixels(); |
| 113 | Pixmap pixmap(pixelBuffer->info(), pixels); |
| 114 | auto result = Baseline::Compare(pixmap, key); |
| 115 | pixelBuffer->unlockPixels(); |
| 116 | return result; |
| 117 | } |
| 118 | |
| 119 | bool Baseline::Compare(const std::shared_ptr<Surface> surface, const std::string& key) { |
| 120 | if (surface == nullptr) { |
nothing calls this directly
no test coverage detected