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

Unified Diff: chrome/browser/gpu_util.cc

Issue 10831081: Add accelerated_video_decode as a GPU blacklist feature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « chrome/browser/gpu_util.h ('k') | content/public/common/gpu_feature_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_util.cc
===================================================================
--- chrome/browser/gpu_util.cc (revision 149057)
+++ chrome/browser/gpu_util.cc (working copy)
@@ -40,6 +40,7 @@
const char kGpuFeatureNameFlash3d[] = "flash_3d";
const char kGpuFeatureNameFlashStage3d[] = "flash_stage3d";
const char kGpuFeatureNameTextureSharing[] = "texture_sharing";
+const char kGpuFeatureNameAcceleratedVideoDecode[] = "accelerated_video_decode";
const char kGpuFeatureNameAll[] = "all";
const char kGpuFeatureNameUnknown[] = "unknown";
@@ -258,6 +259,8 @@
return content::GPU_FEATURE_TYPE_FLASH_STAGE3D;
else if (feature_string == kGpuFeatureNameTextureSharing)
return content::GPU_FEATURE_TYPE_TEXTURE_SHARING;
+ else if (feature_string == kGpuFeatureNameAcceleratedVideoDecode)
+ return content::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE;
else if (feature_string == kGpuFeatureNameAll)
return content::GPU_FEATURE_TYPE_ALL;
return content::GPU_FEATURE_TYPE_UNKNOWN;
@@ -371,6 +374,14 @@
"Sharing textures between processes has been disabled, either via"
" about:flags or command line.",
false
+ },
+ {
+ "video_decode",
+ flags & content::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE,
+ command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode),
+ "Accelerated video decode has been disabled, either via about:flags"
+ " or command line.",
+ true
Ami GONE FROM CHROMIUM 2012/07/30 23:38:29 Not sure what the "true" here means; if it means S
Zhenyao Mo 2012/07/30 23:40:10 It means it falls back to SW path.
}
};
const size_t kNumFeatures = sizeof(kGpuFeatureInfo) / sizeof(GpuFeatureInfo);
« no previous file with comments | « chrome/browser/gpu_util.h ('k') | content/public/common/gpu_feature_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698