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

Side by Side Diff: content/browser/gpu/gpu_blacklist.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »
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 "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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 int feature_type = GPU_FEATURE_TYPE_UNKNOWN; 942 int feature_type = GPU_FEATURE_TYPE_UNKNOWN;
943 for (size_t i = 0; i < size; ++i) { 943 for (size_t i = 0; i < size; ++i) {
944 GpuFeatureType type = StringToGpuFeatureType(blacklisted_features[i]); 944 GpuFeatureType type = StringToGpuFeatureType(blacklisted_features[i]);
945 switch (type) { 945 switch (type) {
946 case GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS: 946 case GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS:
947 case GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING: 947 case GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING:
948 case GPU_FEATURE_TYPE_WEBGL: 948 case GPU_FEATURE_TYPE_WEBGL:
949 case GPU_FEATURE_TYPE_MULTISAMPLING: 949 case GPU_FEATURE_TYPE_MULTISAMPLING:
950 case GPU_FEATURE_TYPE_FLASH3D: 950 case GPU_FEATURE_TYPE_FLASH3D:
951 case GPU_FEATURE_TYPE_FLASH_STAGE3D: 951 case GPU_FEATURE_TYPE_FLASH_STAGE3D:
952 case GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE:
952 case GPU_FEATURE_TYPE_TEXTURE_SHARING: 953 case GPU_FEATURE_TYPE_TEXTURE_SHARING:
953 case GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE: 954 case GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE:
954 case GPU_FEATURE_TYPE_3D_CSS: 955 case GPU_FEATURE_TYPE_3D_CSS:
955 case GPU_FEATURE_TYPE_ACCELERATED_VIDEO: 956 case GPU_FEATURE_TYPE_ACCELERATED_VIDEO:
956 case GPU_FEATURE_TYPE_PANEL_FITTING: 957 case GPU_FEATURE_TYPE_PANEL_FITTING:
957 case GPU_FEATURE_TYPE_FORCE_COMPOSITING_MODE: 958 case GPU_FEATURE_TYPE_FORCE_COMPOSITING_MODE:
958 case GPU_FEATURE_TYPE_ALL: 959 case GPU_FEATURE_TYPE_ALL:
959 feature_type |= type; 960 feature_type |= type;
960 break; 961 break;
961 case GPU_FEATURE_TYPE_UNKNOWN: 962 case GPU_FEATURE_TYPE_UNKNOWN:
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 if (op == ">=") 1404 if (op == ">=")
1404 return kGE; 1405 return kGE;
1405 if (op == "any") 1406 if (op == "any")
1406 return kAny; 1407 return kAny;
1407 if (op == "between") 1408 if (op == "between")
1408 return kBetween; 1409 return kBetween;
1409 return kUnknown; 1410 return kUnknown;
1410 } 1411 }
1411 1412
1412 } // namespace content 1413 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698