Index: ui/compositor/test/test_suite.cc |
diff --git a/ui/compositor/test/test_suite.cc b/ui/compositor/test/test_suite.cc |
index d6601b0f99247eb2594c29ab8be060f4a059b8ca..b811bfd2e89e7c27aa3f473ac3246b8004bffddc 100644 |
--- a/ui/compositor/test/test_suite.cc |
+++ b/ui/compositor/test/test_suite.cc |
@@ -15,6 +15,10 @@ |
#include <X11/Xlib.h> |
#endif |
+#if defined(OS_WIN) |
+#include "ui/gfx/win/dpi.h" |
+#endif |
+ |
namespace ui { |
namespace test { |
@@ -32,6 +36,10 @@ void CompositorTestSuite::Initialize() { |
gfx::RegisterPathProvider(); |
+#if defined(OS_WIN) |
+ gfx::InitDeviceScaleFactor(1.0f); |
+#endif |
+ |
message_loop_.reset(new base::MessageLoop(base::MessageLoop::TYPE_UI)); |
} |