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 16b83945970c969ebb731ba88ac3acb8436ed1e5..a1c095234b366f531a17398f305ec16aaf655b88 100644 |
--- a/chrome/browser/component_updater/swiftshader_component_installer.cc |
+++ b/chrome/browser/component_updater/swiftshader_component_installer.cc |
@@ -10,6 +10,7 @@ |
#include "base/base_paths.h" |
#include "base/bind.h" |
#include "base/compiler_specific.h" |
+#include "base/cpu.h" |
#include "base/files/file_enumerator.h" |
#include "base/files/file_path.h" |
#include "base/files/file_util.h" |
@@ -248,6 +249,10 @@ |
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)); |