summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/tools/test_shell/test_shell.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index c33856ca..765f15b 100644
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -367,6 +367,8 @@ std::string TestShell::DumpImage(skia::PlatformCanvas* canvas,
bool discard_transparency = false;
#elif defined(OS_POSIX)
bool discard_transparency = true;
+ if (WebKit::areLayoutTestImagesOpaque())
+ device.makeOpaque(0, 0, src_bmp.width(), src_bmp.height());
#endif
// Compute MD5 sum. We should have done this before calling