Index: chrome/browser/component_updater/swiftshader_component_installer.cc |
diff --git a/chrome/browser/component_updater/swiftshader_component_installer.cc b/chrome/browser/component_updater/swiftshader_component_installer.cc |
index 03b9482839f05bd254b37c9bb5b2bd1de57b2b77..c482ab4d4619de4d265097d707c9af48f600ac55 100644 |
--- a/chrome/browser/component_updater/swiftshader_component_installer.cc |
+++ b/chrome/browser/component_updater/swiftshader_component_installer.cc |
@@ -7,6 +7,7 @@ |
#include "base/bind.h" |
#include "base/base_paths.h" |
#include "base/compiler_specific.h" |
+#include "base/cpu.h" |
#include "base/file_path.h" |
#include "base/file_util.h" |
#include "base/logging.h" |
@@ -211,6 +212,10 @@ void RegisterSwiftShaderPath(ComponentUpdateService* cus) { |
void RegisterSwiftShaderComponent(ComponentUpdateService* cus) { |
#if defined(ENABLE_SWIFTSHADER) |
+ base::CPU cpu; |
+ |
+ if (!cpu.has_sse2()) |
+ return; |
BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
base::Bind(&RegisterSwiftShaderPath, cus)); |
#endif |