summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-12-01 16:36:11 -0500
committerMike Morris <michael.patrick.morris@gmail.com>2014-12-01 16:36:11 -0500
commit0fd7f26533b56703137567c9843683c5e8ddfade (patch)
tree24a6761cd900ad6996e7471a907db86e6d42a703 /test
parentc732f5c7123c574d6b4a94350953bc518266be7e (diff)
downloadqtlocation-mapboxgl-0fd7f26533b56703137567c9843683c5e8ddfade.tar.gz
move pixel flip from headless test into HeadlessView::readPixels
Diffstat (limited to 'test')
-rw-r--r--test/headless.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/headless.cpp b/test/headless.cpp
index 680f51aeb1..e0409c4739 100644
--- a/test/headless.cpp
+++ b/test/headless.cpp
@@ -203,15 +203,6 @@ TEST_P(HeadlessTest, render) {
auto pixels = view.readPixels();
- const int stride = w * 4;
- auto tmp = std::unique_ptr<char[]>(new char[stride]());
- char *rgba = reinterpret_cast<char *>(pixels.get());
- for (int i = 0, j = height - 1; i < j; i++, j--) {
- memcpy(tmp.get(), rgba + i * stride, stride);
- memcpy(rgba + i * stride, rgba + j * stride, stride);
- memcpy(rgba + j * stride, tmp.get(), stride);
- }
-
const std::string image = util::compress_png(w, h, pixels.get());
util::write_file(actual_image, image);
}