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

Side by Side Diff: content/browser/gpu/gpu_blacklist.h

Issue 10909221: Implement blacklist's force GPU capability in dual GPU machines. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
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 #ifndef CONTENT_BROWSER_GPU_GPU_BLACKLIST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_BLACKLIST_H_
6 #define CONTENT_BROWSER_GPU_GPU_BLACKLIST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_BLACKLIST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "content/public/common/gpu_feature_type.h" 18 #include "content/public/common/gpu_feature_type.h"
19 #include "content/public/common/gpu_switching_option.h"
19 20
20 class Version; 21 class Version;
21 22
22 namespace content { 23 namespace content {
23 struct GPUInfo; 24 struct GPUInfo;
24 } 25 }
25 26
26 class CONTENT_EXPORT GpuBlacklist { 27 class CONTENT_EXPORT GpuBlacklist {
27 public: 28 public:
28 enum OsType { 29 enum OsType {
(...skipping 11 matching lines...) Expand all
40 // In loading, keep all entries. This is for testing only. 41 // In loading, keep all entries. This is for testing only.
41 kAllOs 42 kAllOs
42 }; 43 };
43 44
44 struct Decision { 45 struct Decision {
45 content::GpuFeatureType blacklisted_features; 46 content::GpuFeatureType blacklisted_features;
46 content::GpuSwitchingOption gpu_switching; 47 content::GpuSwitchingOption gpu_switching;
47 48
48 Decision() 49 Decision()
49 : blacklisted_features(content::GPU_FEATURE_TYPE_UNKNOWN), 50 : blacklisted_features(content::GPU_FEATURE_TYPE_UNKNOWN),
50 gpu_switching(content::GPU_SWITCHING_AUTOMATIC) { 51 gpu_switching(content::GPU_SWITCHING_OPTION_UNKNOWN) {
51 } 52 }
52 }; 53 };
53 54
54 GpuBlacklist(); 55 GpuBlacklist();
55 virtual ~GpuBlacklist(); 56 virtual ~GpuBlacklist();
56 57
57 // Loads blacklist information from a json file. 58 // Loads blacklist information from a json file.
58 // If failed, the current GpuBlacklist is un-touched. 59 // If failed, the current GpuBlacklist is un-touched.
59 bool LoadGpuBlacklist(const std::string& json_context, OsFilter os_filter); 60 bool LoadGpuBlacklist(const std::string& json_context, OsFilter os_filter);
60 bool LoadGpuBlacklist(const std::string& browser_version_string, 61 bool LoadGpuBlacklist(const std::string& browser_version_string,
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 400
400 uint32 max_entry_id_; 401 uint32 max_entry_id_;
401 402
402 bool contains_unknown_fields_; 403 bool contains_unknown_fields_;
403 404
404 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist); 405 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist);
405 }; 406 };
406 407
407 #endif // CONTENT_BROWSER_GPU_GPU_BLACKLIST_H_ 408 #endif // CONTENT_BROWSER_GPU_GPU_BLACKLIST_H_
408 409
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698