summaryrefslogtreecommitdiffstats
path: root/media/base/cpu_features.h
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 19:32:27 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 19:32:27 +0000
commit67637b8ab2e6bef2ba134048461d14c9ecfff0c6 (patch)
tree4f8385e55be8edbcf6d3445957c516de50f3a398 /media/base/cpu_features.h
parent018a96fdb1e10160e0f12f066d9389739b37a97e (diff)
downloadchromium_src-67637b8ab2e6bef2ba134048461d14c9ecfff0c6.zip
chromium_src-67637b8ab2e6bef2ba134048461d14c9ecfff0c6.tar.gz
chromium_src-67637b8ab2e6bef2ba134048461d14c9ecfff0c6.tar.bz2
Runtime check to enable SSE2 color space conversion code
This will make text in chromoting view to looks much nicer. BUG=72218 TEST=Text looks much better in chromoting Review URL: http://codereview.chromium.org/6410127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74154 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/cpu_features.h')
-rw-r--r--media/base/cpu_features.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/media/base/cpu_features.h b/media/base/cpu_features.h
new file mode 100644
index 0000000..c5bdcd7
--- /dev/null
+++ b/media/base/cpu_features.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2011 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.
+
+// This file provide utility functions to check CPU features such as SSE2,
+// NEON.
+
+#ifndef MEDIA_BASE_CPU_FEATURES_H_
+#define MEDIA_BASE_CPU_FEATURES_H_
+
+namespace media {
+
+// Returns true if CPU has SSE2 support.
+bool hasSSE2();
+
+} // namespace media
+
+#endif // MEDIA_BASE_CPU_FEATURES_H_