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

Unified Diff: content/browser/gpu/gpu_switching_list_json.cc

Issue 15094006: Change gpu blacklists from json resource to const string. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | « content/browser/gpu/gpu_switching_list.json ('k') | content/browser/gpu/gpu_switching_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_switching_list_json.cc
===================================================================
--- content/browser/gpu/gpu_switching_list_json.cc (revision 198570)
+++ content/browser/gpu/gpu_switching_list_json.cc (working copy)
@@ -1,3 +1,7 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// Determines whether a certain gpu is prefered in a dual-gpu situation.
// A valid gpu_switching_list.json file are in the format of
// {
@@ -69,6 +73,14 @@
// "any". "value" and "value2" are valid float numbers.
// INT is very much like FLOAT, except that the values need to be integers.
+#include "content/browser/gpu/gpu_control_list_jsons.h"
+
+#define LONG_STRING_CONST(...) #__VA_ARGS__
+
+namespace content {
+
+const char kGpuSwitchingListJson[] = LONG_STRING_CONST(
+
{
"name": "gpu switching list",
// Please update the version number whenever you change this file.
@@ -105,3 +117,8 @@
}
]
}
+
+); // LONG_STRING_CONST macro
+
+} // namespace content
+
« no previous file with comments | « content/browser/gpu/gpu_switching_list.json ('k') | content/browser/gpu/gpu_switching_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698