summaryrefslogtreecommitdiffstats
path: root/src/core/backing_store_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/backing_store_qt.cpp')
-rw-r--r--src/core/backing_store_qt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/backing_store_qt.cpp b/src/core/backing_store_qt.cpp
index b12f09f18..613dfdbbc 100644
--- a/src/core/backing_store_qt.cpp
+++ b/src/core/backing_store_qt.cpp
@@ -121,7 +121,12 @@ void BackingStoreQt::PaintToBackingStore(content::RenderProcessHost *process,
, copy_rect_dst.width()
, copy_rect_dst.height());
+#if defined(OS_ANDROID)
+ // The received image format is BGRA with Android so we have to swizzle the image data.
+ painter.drawImage(destination, img.rgbSwapped(), source);
+#else
painter.drawImage(destination, img, source);
+#endif
}
}