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

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

Issue 15385003: Move GPU device/driver info related code from content to gpu. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/gpu/gpu_switching_list_unittest.cc ('k') | content/browser/gpu/gpu_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_GPU_GPU_UTIL_H_
6 #define CONTENT_BROWSER_GPU_GPU_UTIL_H_
7
8 #include <set>
9 #include <string>
10
11 #include "base/basictypes.h"
12 #include "build/build_config.h"
13 #include "content/common/content_export.h"
14 #include "content/public/common/gpu_switching_option.h"
15
16 namespace content {
17 class GpuBlacklist;
18
19 // Maps string to GpuSwitchingOption; returns GPU_SWITCHING_UNKNOWN if an
20 // unknown name is input (case-sensitive).
21 CONTENT_EXPORT GpuSwitchingOption StringToGpuSwitchingOption(
22 const std::string& switching_string);
23
24 // Gets a string version of a GpuSwitchingOption.
25 CONTENT_EXPORT std::string GpuSwitchingOptionToString(
26 GpuSwitchingOption option);
27
28 // Send UMA histograms about the enabled features.
29 CONTENT_EXPORT void UpdateStats(
30 const GpuBlacklist* blacklist, const std::set<int>& blacklisted_features);
31
32 // Merge features in src into dst.
33 CONTENT_EXPORT void MergeFeatureSets(
34 std::set<int>* dst, const std::set<int>& src);
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_GPU_GPU_UTIL_H_
39
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_switching_list_unittest.cc ('k') | content/browser/gpu/gpu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698