OLD | NEW |
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 "content/browser/gpu/gpu_blacklist.h" | 5 #include "content/browser/gpu/gpu_blacklist.h" |
6 | 6 |
7 #include "base/cpu.h" | 7 #include "base/cpu.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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 case content::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS: | 919 case content::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS: |
920 case content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING: | 920 case content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING: |
921 case content::GPU_FEATURE_TYPE_WEBGL: | 921 case content::GPU_FEATURE_TYPE_WEBGL: |
922 case content::GPU_FEATURE_TYPE_MULTISAMPLING: | 922 case content::GPU_FEATURE_TYPE_MULTISAMPLING: |
923 case content::GPU_FEATURE_TYPE_FLASH3D: | 923 case content::GPU_FEATURE_TYPE_FLASH3D: |
924 case content::GPU_FEATURE_TYPE_FLASH_STAGE3D: | 924 case content::GPU_FEATURE_TYPE_FLASH_STAGE3D: |
925 case content::GPU_FEATURE_TYPE_TEXTURE_SHARING: | 925 case content::GPU_FEATURE_TYPE_TEXTURE_SHARING: |
926 case content::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE: | 926 case content::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE: |
927 case content::GPU_FEATURE_TYPE_3D_CSS: | 927 case content::GPU_FEATURE_TYPE_3D_CSS: |
928 case content::GPU_FEATURE_TYPE_ACCELERATED_VIDEO: | 928 case content::GPU_FEATURE_TYPE_ACCELERATED_VIDEO: |
| 929 case content::GPU_FEATURE_TYPE_PANEL_FITTING: |
929 case content::GPU_FEATURE_TYPE_ALL: | 930 case content::GPU_FEATURE_TYPE_ALL: |
930 feature_type |= type; | 931 feature_type |= type; |
931 break; | 932 break; |
932 case content::GPU_FEATURE_TYPE_UNKNOWN: | 933 case content::GPU_FEATURE_TYPE_UNKNOWN: |
933 contains_unknown_features_ = true; | 934 contains_unknown_features_ = true; |
934 break; | 935 break; |
935 } | 936 } |
936 } | 937 } |
937 decision_.blacklisted_features = static_cast<GpuFeatureType>(feature_type); | 938 decision_.blacklisted_features = static_cast<GpuFeatureType>(feature_type); |
938 return true; | 939 return true; |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1411 if (op == ">") | 1412 if (op == ">") |
1412 return kGT; | 1413 return kGT; |
1413 if (op == ">=") | 1414 if (op == ">=") |
1414 return kGE; | 1415 return kGE; |
1415 if (op == "any") | 1416 if (op == "any") |
1416 return kAny; | 1417 return kAny; |
1417 if (op == "between") | 1418 if (op == "between") |
1418 return kBetween; | 1419 return kBetween; |
1419 return kUnknown; | 1420 return kUnknown; |
1420 } | 1421 } |
OLD | NEW |