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

Side by Side Diff: content/common/gpu_feature_flags.h

Issue 6712048: Implement easy GPU feature status summary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First rev Created 9 years, 8 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_GPU_FEATURE_FLAGS_H_ 5 #ifndef CONTENT_COMMON_GPU_FEATURE_FLAGS_H_
6 #define CONTENT_COMMON_GPU_FEATURE_FLAGS_H_ 6 #define CONTENT_COMMON_GPU_FEATURE_FLAGS_H_
7 #pragma once 7 #pragma once
8 8
9 // Provides flags indicating which gpu features are blacklisted for the system 9 // Provides flags indicating which gpu features are blacklisted for the system
10 // on which chrome is currently running. 10 // on which chrome is currently running.
11 11
(...skipping 28 matching lines...) Expand all
40 40
41 // Maps string to GpuFeatureType; returns kGpuFeatureUnknown if none of the 41 // Maps string to GpuFeatureType; returns kGpuFeatureUnknown if none of the
42 // following is input (case-sensitive): 42 // following is input (case-sensitive):
43 // "accelerated_2d_canvas" 43 // "accelerated_2d_canvas"
44 // "accelerated_compositing" 44 // "accelerated_compositing"
45 // "webgl" 45 // "webgl"
46 // "multisampling" 46 // "multisampling"
47 static GpuFeatureType StringToGpuFeatureType( 47 static GpuFeatureType StringToGpuFeatureType(
48 const std::string& feature_string); 48 const std::string& feature_string);
49 49
50 // Gets a user-friendly string version of a feature type for use in
51 // about:gpu. For example, kGpuFeatureAccelerated2dCanvas becomes
52 // "Acclerated 2D Canvas"
Avi (use Gerrit) 2011/04/07 00:28:20 typo: Accelerated
53 static std::string GpuFeatureTypeToUserFriendlyString(GpuFeatureType feature);
54
50 private: 55 private:
51 static const char kGpuFeatureNameAccelerated2dCanvas[]; 56 static const char kGpuFeatureNameAccelerated2dCanvas[];
52 static const char kGpuFeatureNameAcceleratedCompositing[]; 57 static const char kGpuFeatureNameAcceleratedCompositing[];
53 static const char kGpuFeatureNameWebgl[]; 58 static const char kGpuFeatureNameWebgl[];
54 static const char kGpuFeatureNameMultisampling[]; 59 static const char kGpuFeatureNameMultisampling[];
55 static const char kGpuFeatureNameAll[]; 60 static const char kGpuFeatureNameAll[];
56 61
57 // If a bit is set to 1, corresponding feature is blacklisted. 62 // If a bit is set to 1, corresponding feature is blacklisted.
58 uint32 flags_; 63 uint32 flags_;
59 }; 64 };
60 65
61 #endif // CONTENT_COMMON_GPU_FEATURE_FLAGS_H_ 66 #endif // CONTENT_COMMON_GPU_FEATURE_FLAGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698