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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/component_updater/swiftshader_component_installer.h" 5 #include "chrome/browser/component_updater/swiftshader_component_installer.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/base_paths.h" 11 #include "base/base_paths.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file_enumerator.h" 13 #include "base/files/file_enumerator.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
19 #include "base/values.h" 19 #include "base/values.h"
20 #include "build/build_config.h"
20 #include "components/component_updater/component_updater_paths.h" 21 #include "components/component_updater/component_updater_paths.h"
21 #include "components/component_updater/component_updater_service.h" 22 #include "components/component_updater/component_updater_service.h"
22 #include "components/update_client/update_client.h" 23 #include "components/update_client/update_client.h"
23 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
24 #include "content/public/browser/gpu_data_manager.h" 25 #include "content/public/browser/gpu_data_manager.h"
25 #include "content/public/browser/gpu_data_manager_observer.h" 26 #include "content/public/browser/gpu_data_manager_observer.h"
26 #include "gpu/config/gpu_feature_type.h" 27 #include "gpu/config/gpu_feature_type.h"
27 28
28 using content::BrowserThread; 29 using content::BrowserThread;
29 using content::GpuDataManager; 30 using content::GpuDataManager;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 ++iter) { 249 ++iter) {
249 base::DeleteFile(*iter, true); 250 base::DeleteFile(*iter, true);
250 } 251 }
251 } 252 }
252 253
253 #endif // ENABLE_SWIFTSHADER 254 #endif // ENABLE_SWIFTSHADER
254 255
255 } // namespace 256 } // namespace
256 257
257 void RegisterSwiftShaderComponent(ComponentUpdateService* cus) { 258 void RegisterSwiftShaderComponent(ComponentUpdateService* cus) {
258 #if defined(ENABLE_SWIFTSHADER) 259 #if defined(ENABLE_SWIFTSHADER) && defined(ARCH_CPU_X86)
259 BrowserThread::PostTask(BrowserThread::FILE, 260 BrowserThread::PostTask(BrowserThread::FILE,
260 FROM_HERE, 261 FROM_HERE,
261 base::Bind(&RegisterSwiftShaderPath, cus)); 262 base::Bind(&RegisterSwiftShaderPath, cus));
262 #endif 263 #endif
263 } 264 }
264 265
265 } // namespace component_updater 266 } // namespace component_updater
OLDNEW
« 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