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

Unified 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: Minor tweak. 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu_feature_flags.h
diff --git a/content/common/gpu_feature_flags.h b/content/common/gpu_feature_flags.h
index 38fd1a624b719aa4a14b532c04b7fac82e0fdb48..0068ae00aabea9c08957a5efde89bfb3054e7e27 100644
--- a/content/common/gpu_feature_flags.h
+++ b/content/common/gpu_feature_flags.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -47,12 +47,18 @@ class GpuFeatureFlags {
static GpuFeatureType StringToGpuFeatureType(
const std::string& feature_string);
+ // Gets a string version of a feature type for use in about:gpu. Will yield
+ // strings from StringToGpuFeatureType, e.g. kGpuFeatureAccelerated2dCanvas
+ // becomes "accelerated_2d_canvas"
+ static std::string GpuFeatureTypeToString(GpuFeatureType feature);
+
private:
static const char kGpuFeatureNameAccelerated2dCanvas[];
static const char kGpuFeatureNameAcceleratedCompositing[];
static const char kGpuFeatureNameWebgl[];
static const char kGpuFeatureNameMultisampling[];
static const char kGpuFeatureNameAll[];
+ static const char kGpuFeatureNameUnknown[];
// If a bit is set to 1, corresponding feature is blacklisted.
uint32 flags_;

Powered by Google App Engine
This is Rietveld 408576698