Makes gfx::Screen an instance, rather than a collection of static methods.
This is in support of supporting separate Screen implementations on Aura for desktop and metro on Windows.
Some callsites are not yet correct, and noted with a reference to the http://crbug.com/133312. As-is those sites will behave the same as before this patch, but may not be correct once desktop/metro can run simultaneously.
BUG=133312
Review URL: https://chromiumcodereview.appspot.com/11030017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161644 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 415e25d7..2c48385 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -669,7 +669,8 @@
prefs.max_untiled_layer_height =
GetSwitchValueAsInt(command_line, switches::kMaxUntiledLayerHeight, 1);
- if (gfx::Screen::IsDIPEnabled()) {
+ // TODO(scottmg): Probably Native is wrong: http://crbug.com/133312
+ if (gfx::Screen::GetNativeScreen()->IsDIPEnabled()) {
// Only apply when using DIP coordinate system as this setting interferes
// with fixed layout mode.
prefs.apply_default_device_scale_factor_in_compositor = true;