Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: chrome/browser/component_updater/swiftshader_component_installer.cc

Issue 2273703004: Don't attempt to get SwiftShader from component updater on x86-64. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix header Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0dc025849b93cb6217d194407c9c984c5b3be1bb..ce54b48b1fedbf0ad60242823b7c3b4b1a409e82 100644
--- a/chrome/browser/component_updater/swiftshader_component_installer.cc
+++ b/chrome/browser/component_updater/swiftshader_component_installer.cc
@@ -17,6 +17,7 @@
#include "base/path_service.h"
#include "base/strings/string_util.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "components/component_updater/component_updater_paths.h"
#include "components/component_updater/component_updater_service.h"
#include "components/update_client/update_client.h"
@@ -255,7 +256,7 @@ void RegisterSwiftShaderPath(ComponentUpdateService* cus) {
} // namespace
void RegisterSwiftShaderComponent(ComponentUpdateService* cus) {
-#if defined(ENABLE_SWIFTSHADER)
+#if defined(ENABLE_SWIFTSHADER) && defined(ARCH_CPU_X86)
BrowserThread::PostTask(BrowserThread::FILE,
FROM_HERE,
base::Bind(&RegisterSwiftShaderPath, cus));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698