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

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

Issue 12079111: Allow separately blacklisting Stage3D baseline mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_internals_ui.cc ('k') | content/browser/resources/gpu/info_view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_util.cc
diff --git a/content/browser/gpu/gpu_util.cc b/content/browser/gpu/gpu_util.cc
index b013cadc0aa8a6447e273e068254b037e330666f..7d7d932b0bb30b20e450e78be29e60a158a2928c 100644
--- a/content/browser/gpu/gpu_util.cc
+++ b/content/browser/gpu/gpu_util.cc
@@ -24,6 +24,7 @@ const char kGpuFeatureNameWebgl[] = "webgl";
const char kGpuFeatureNameMultisampling[] = "multisampling";
const char kGpuFeatureNameFlash3d[] = "flash_3d";
const char kGpuFeatureNameFlashStage3d[] = "flash_stage3d";
+const char kGpuFeatureNameFlashStage3dBaseline[] = "flash_stage3d_baseline";
const char kGpuFeatureNameTextureSharing[] = "texture_sharing";
const char kGpuFeatureNameAcceleratedVideoDecode[] = "accelerated_video_decode";
const char kGpuFeatureName3dCss[] = "3d_css";
@@ -99,6 +100,8 @@ GpuFeatureType StringToGpuFeatureType(const std::string& feature_string) {
return GPU_FEATURE_TYPE_FLASH3D;
if (feature_string == kGpuFeatureNameFlashStage3d)
return GPU_FEATURE_TYPE_FLASH_STAGE3D;
+ if (feature_string == kGpuFeatureNameFlashStage3dBaseline)
+ return GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE;
if (feature_string == kGpuFeatureNameTextureSharing)
return GPU_FEATURE_TYPE_TEXTURE_SHARING;
if (feature_string == kGpuFeatureNameAcceleratedVideoDecode)
@@ -133,6 +136,8 @@ std::string GpuFeatureTypeToString(GpuFeatureType type) {
matches.push_back(kGpuFeatureNameFlash3d);
if (type & GPU_FEATURE_TYPE_FLASH_STAGE3D)
matches.push_back(kGpuFeatureNameFlashStage3d);
+ if (type & GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE)
+ matches.push_back(kGpuFeatureNameFlashStage3dBaseline);
if (type & GPU_FEATURE_TYPE_TEXTURE_SHARING)
matches.push_back(kGpuFeatureNameTextureSharing);
if (type & GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE)
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | content/browser/resources/gpu/info_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698