summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 01:46:28 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 01:46:28 +0000
commitb7e30e51704755b7f8a26521234c3410bc319f26 (patch)
treece5efe231fe4caff8ecfdd1b0cc846c5d4d80298
parent0cfddf1baf87f3945220c0dae02dbf1131542e3e (diff)
downloadchromium_src-b7e30e51704755b7f8a26521234c3410bc319f26.zip
chromium_src-b7e30e51704755b7f8a26521234c3410bc319f26.tar.gz
chromium_src-b7e30e51704755b7f8a26521234c3410bc319f26.tar.bz2
Remove unused kDisable4444Textures flag
BUG=none Review URL: https://codereview.chromium.org/189603003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256388 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--cc/base/switches.cc3
-rw-r--r--cc/base/switches.h1
-rw-r--r--content/renderer/gpu/render_widget_compositor.cc3
3 files changed, 1 insertions, 6 deletions
diff --git a/cc/base/switches.cc b/cc/base/switches.cc
index 6ebf6d6..46f4992 100644
--- a/cc/base/switches.cc
+++ b/cc/base/switches.cc
@@ -110,9 +110,6 @@ const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
// Makes pixel tests write their output instead of read it.
const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests";
-// Disable textures using RGBA_4444 layout.
-const char kDisable4444Textures[] = "disable-4444-textures";
-
// Disable touch hit testing in the compositor.
const char kDisableCompositorTouchHitTesting[] =
"disable-compositor-touch-hit-testing";
diff --git a/cc/base/switches.h b/cc/base/switches.h
index 46548b3..92339cb 100644
--- a/cc/base/switches.h
+++ b/cc/base/switches.h
@@ -30,7 +30,6 @@ CC_EXPORT extern const char kMaxTilesForInterestArea[];
CC_EXPORT extern const char kMaxUnusedResourceMemoryUsagePercentage[];
CC_EXPORT extern const char kEnablePinchVirtualViewport[];
CC_EXPORT extern const char kStrictLayerPropertyChangeChecking[];
-CC_EXPORT extern const char kDisable4444Textures[];
CC_EXPORT extern const char kDisableCompositorTouchHitTesting[];
// Switches for both the renderer and ui compositors.
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index ec7c3a9..eafca984 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -257,8 +257,7 @@ scoped_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create(
// and are disabled for Android WebView as it doesn't support the format.
settings.use_rgba_4444_textures =
base::android::SysUtils::IsLowEndDevice() &&
- !widget->UsingSynchronousRendererCompositor() &&
- !cmd->HasSwitch(cc::switches::kDisable4444Textures);
+ !widget->UsingSynchronousRendererCompositor();
if (widget->UsingSynchronousRendererCompositor()) {
// TODO(boliu): Set this ratio for Webview.
} else if (base::android::SysUtils::IsLowEndDevice()) {