Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: ui/compositor/test/test_suite.cc

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/win/foreground_helper.h ('k') | ui/gfx/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « ui/base/win/foreground_helper.h ('k') | ui/gfx/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698