summaryrefslogtreecommitdiffstats
path: root/ui/gfx/switches.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-14 04:14:48 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-14 04:14:48 +0000
commit0d3b9dda19ce9f3fb74e601146ac9f1f1d68dfbe (patch)
tree39b348736b26c4e45d8fe6fc4ca2054d89b48320 /ui/gfx/switches.cc
parent16dbfb0e842b3ebb5dc156dc4b0990dc7dfa04db (diff)
downloadchromium_src-0d3b9dda19ce9f3fb74e601146ac9f1f1d68dfbe.zip
chromium_src-0d3b9dda19ce9f3fb74e601146ac9f1f1d68dfbe.tar.gz
chromium_src-0d3b9dda19ce9f3fb74e601146ac9f1f1d68dfbe.tar.bz2
ui/gfx: Create a new gfx switches file to put gfx specific switches there.
BUG=103304 TEST=ui_unittests R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/11359184 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/switches.cc')
-rw-r--r--ui/gfx/switches.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/ui/gfx/switches.cc b/ui/gfx/switches.cc
new file mode 100644
index 0000000..f25ea9b
--- /dev/null
+++ b/ui/gfx/switches.cc
@@ -0,0 +1,26 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/gfx/switches.h"
+
+namespace gfx {
+namespace switches {
+
+// Whether or not ImageSkiaOperations methods can scale one of images
+// if they don't have the same scale factor.
+const char kDisableScalingInImageSkiaOperations[] =
+ "disable-scaling-in-image-skia-operations";
+
+// Let text glyphs have X-positions that aren't snapped to the pixel grid in
+// the browser UI.
+const char kEnableBrowserTextSubpixelPositioning[] =
+ "enable-browser-text-subpixel-positioning";
+
+// Enable text glyphs to have X-positions that aren't snapped to the pixel grid
+// in webkit renderers.
+const char kEnableWebkitTextSubpixelPositioning[] =
+ "enable-webkit-text-subpixel-positioning";
+
+} // namespace switches
+} // namespace gfx