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

Unified Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 2737983002: WebGL feature will only enabled when accelerated (Closed)
Patch Set: Added SwiftShader as a GPU feature Created 3 years, 9 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
Index: chrome/browser/extensions/extension_service_unittest.cc
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc
index 31e13f4dd56818f1f8e2015b2e0710a44bd9396b..b893de53d64d3620fceebdfc3d6a4f4f5ce26c99 100644
--- a/chrome/browser/extensions/extension_service_unittest.cc
+++ b/chrome/browser/extensions/extension_service_unittest.cc
@@ -640,16 +640,19 @@ class ExtensionServiceTest
void BlackListWebGL() {
static const std::string json_blacklist =
- "{\n"
- " \"name\": \"gpu blacklist\",\n"
- " \"version\": \"1.0\",\n"
- " \"entries\": [\n"
- " {\n"
- " \"id\": 1,\n"
- " \"features\": [\"webgl\"]\n"
- " }\n"
- " ]\n"
- "}";
+ "{\n"
sugoi1 2017/03/09 16:17:34 Note: Those whitespace changes are from running 'g
+ " \"name\": \"gpu blacklist\",\n"
+ " \"version\": \"1.0\",\n"
+ " \"entries\": [\n"
+ " {\n"
+ " \"id\": 1,\n"
+ " \"features\": [\n"
+ " \"webgl\",\n"
+ " \"swiftshader\"\n"
+ " ]\n"
+ " }\n"
+ " ]\n"
+ "}";
gpu::GPUInfo gpu_info;
content::GpuDataManager::GetInstance()->InitializeForTesting(
json_blacklist, gpu_info);

Powered by Google App Engine
This is Rietveld 408576698