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

Side by Side Diff: chrome/browser/gpu_blacklist.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, 4 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 | « no previous file | chrome/browser/gpu_blacklist_unittest.cc » ('j') | chrome/browser/gpu_util.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/gpu_blacklist.h" 5 #include "chrome/browser/gpu_blacklist.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 GpuFeatureType type = 764 GpuFeatureType type =
765 gpu_util::StringToGpuFeatureType(blacklisted_features[i]); 765 gpu_util::StringToGpuFeatureType(blacklisted_features[i]);
766 switch (type) { 766 switch (type) {
767 case content::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS: 767 case content::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS:
768 case content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING: 768 case content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING:
769 case content::GPU_FEATURE_TYPE_WEBGL: 769 case content::GPU_FEATURE_TYPE_WEBGL:
770 case content::GPU_FEATURE_TYPE_MULTISAMPLING: 770 case content::GPU_FEATURE_TYPE_MULTISAMPLING:
771 case content::GPU_FEATURE_TYPE_FLASH3D: 771 case content::GPU_FEATURE_TYPE_FLASH3D:
772 case content::GPU_FEATURE_TYPE_FLASH_STAGE3D: 772 case content::GPU_FEATURE_TYPE_FLASH_STAGE3D:
773 case content::GPU_FEATURE_TYPE_TEXTURE_SHARING: 773 case content::GPU_FEATURE_TYPE_TEXTURE_SHARING:
774 case content::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE:
774 case content::GPU_FEATURE_TYPE_ALL: 775 case content::GPU_FEATURE_TYPE_ALL:
775 feature_type |= type; 776 feature_type |= type;
776 break; 777 break;
777 case content::GPU_FEATURE_TYPE_UNKNOWN: 778 case content::GPU_FEATURE_TYPE_UNKNOWN:
778 contains_unknown_features_ = true; 779 contains_unknown_features_ = true;
779 break; 780 break;
780 } 781 }
781 } 782 }
782 feature_type_ = static_cast<GpuFeatureType>(feature_type); 783 feature_type_ = static_cast<GpuFeatureType>(feature_type);
783 return true; 784 return true;
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 if (op == ">") 1176 if (op == ">")
1176 return kGT; 1177 return kGT;
1177 if (op == ">=") 1178 if (op == ">=")
1178 return kGE; 1179 return kGE;
1179 if (op == "any") 1180 if (op == "any")
1180 return kAny; 1181 return kAny;
1181 if (op == "between") 1182 if (op == "between")
1182 return kBetween; 1183 return kBetween;
1183 return kUnknown; 1184 return kUnknown;
1184 } 1185 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gpu_blacklist_unittest.cc » ('j') | chrome/browser/gpu_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698