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

Side by Side Diff: content/browser/gpu/gpu_blacklist.cc

Issue 10909242: Add "panel_fitting" GPU feature type and use it for mirror mode. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compilation on non-Chrome OS Created 8 years, 2 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
« no previous file with comments | « chromeos/display/output_configurator.cc ('k') | content/browser/gpu/gpu_util.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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chromeos/display/output_configurator.cc ('k') | content/browser/gpu/gpu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698