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

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

Issue 11930003: Add force_compositing_mode support in gpu blacklist. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « content/browser/gpu/compositor_util.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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_TEXTURE_SHARING: 952 case GPU_FEATURE_TYPE_TEXTURE_SHARING:
953 case GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE: 953 case GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE:
954 case GPU_FEATURE_TYPE_3D_CSS: 954 case GPU_FEATURE_TYPE_3D_CSS:
955 case GPU_FEATURE_TYPE_ACCELERATED_VIDEO: 955 case GPU_FEATURE_TYPE_ACCELERATED_VIDEO:
956 case GPU_FEATURE_TYPE_PANEL_FITTING: 956 case GPU_FEATURE_TYPE_PANEL_FITTING:
957 case GPU_FEATURE_TYPE_FORCE_COMPOSITING_MODE:
957 case GPU_FEATURE_TYPE_ALL: 958 case GPU_FEATURE_TYPE_ALL:
958 feature_type |= type; 959 feature_type |= type;
959 break; 960 break;
960 case GPU_FEATURE_TYPE_UNKNOWN: 961 case GPU_FEATURE_TYPE_UNKNOWN:
961 contains_unknown_features_ = true; 962 contains_unknown_features_ = true;
962 break; 963 break;
963 } 964 }
964 } 965 }
965 decision_.blacklisted_features = static_cast<GpuFeatureType>(feature_type); 966 decision_.blacklisted_features = static_cast<GpuFeatureType>(feature_type);
966 return true; 967 return true;
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 if (op == ">=") 1403 if (op == ">=")
1403 return kGE; 1404 return kGE;
1404 if (op == "any") 1405 if (op == "any")
1405 return kAny; 1406 return kAny;
1406 if (op == "between") 1407 if (op == "between")
1407 return kBetween; 1408 return kBetween;
1408 return kUnknown; 1409 return kUnknown;
1409 } 1410 }
1410 1411
1411 } // namespace content 1412 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/gpu/gpu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698