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

Side by Side Diff: gpu/config/gpu_control_list.h

Issue 2642923002: Add pixel shader version to GPU control list (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « no previous file | gpu/config/gpu_control_list.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef GPU_CONFIG_GPU_CONTROL_LIST_H_ 5 #ifndef GPU_CONFIG_GPU_CONTROL_LIST_H_
6 #define GPU_CONFIG_GPU_CONTROL_LIST_H_ 6 #define GPU_CONFIG_GPU_CONTROL_LIST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 const std::string& version_string, 401 const std::string& version_string,
402 const std::string& version_string2); 402 const std::string& version_string2);
403 403
404 bool SetGpuCountInfo(const std::string& op, 404 bool SetGpuCountInfo(const std::string& op,
405 const std::string& int_string, 405 const std::string& int_string,
406 const std::string& int_string2); 406 const std::string& int_string2);
407 407
408 void SetDirectRenderingInfo(bool value); 408 void SetDirectRenderingInfo(bool value);
409 void SetInProcessGPUInfo(bool value); 409 void SetInProcessGPUInfo(bool value);
410 410
411 bool SetPixelShaderVersionInfo(const std::string& version_op,
412 const std::string& version_string,
413 const std::string& version_string2);
414
411 bool SetFeatures(const std::vector<std::string>& features, 415 bool SetFeatures(const std::vector<std::string>& features,
412 const std::vector<std::string>& exceptions, 416 const std::vector<std::string>& exceptions,
413 const FeatureMap& feature_map, 417 const FeatureMap& feature_map,
414 bool supports_feature_type_all); 418 bool supports_feature_type_all);
415 419
416 void AddException(ScopedGpuControlListEntry exception); 420 void AddException(ScopedGpuControlListEntry exception);
417 421
418 // Return true if GL_VERSION string does not fit the entry info 422 // Return true if GL_VERSION string does not fit the entry info
419 // on GL type and GL version. 423 // on GL type and GL version.
420 bool GLVersionInfoMismatch(const std::string& gl_version) const; 424 bool GLVersionInfoMismatch(const std::string& gl_version) const;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 std::unique_ptr<IntInfo> gl_reset_notification_strategy_info_; 463 std::unique_ptr<IntInfo> gl_reset_notification_strategy_info_;
460 std::string cpu_brand_; 464 std::string cpu_brand_;
461 std::unique_ptr<FloatInfo> perf_graphics_info_; 465 std::unique_ptr<FloatInfo> perf_graphics_info_;
462 std::unique_ptr<FloatInfo> perf_gaming_info_; 466 std::unique_ptr<FloatInfo> perf_gaming_info_;
463 std::unique_ptr<FloatInfo> perf_overall_info_; 467 std::unique_ptr<FloatInfo> perf_overall_info_;
464 std::vector<std::string> machine_model_name_list_; 468 std::vector<std::string> machine_model_name_list_;
465 std::unique_ptr<VersionInfo> machine_model_version_info_; 469 std::unique_ptr<VersionInfo> machine_model_version_info_;
466 std::unique_ptr<IntInfo> gpu_count_info_; 470 std::unique_ptr<IntInfo> gpu_count_info_;
467 std::unique_ptr<BoolInfo> direct_rendering_info_; 471 std::unique_ptr<BoolInfo> direct_rendering_info_;
468 std::unique_ptr<BoolInfo> in_process_gpu_info_; 472 std::unique_ptr<BoolInfo> in_process_gpu_info_;
473 std::unique_ptr<VersionInfo> pixel_shader_version_info_;
469 std::set<int> features_; 474 std::set<int> features_;
470 std::vector<ScopedGpuControlListEntry> exceptions_; 475 std::vector<ScopedGpuControlListEntry> exceptions_;
471 }; 476 };
472 477
473 // Gets the current OS type. 478 // Gets the current OS type.
474 static OsType GetOsType(); 479 static OsType GetOsType();
475 480
476 bool LoadList(const base::DictionaryValue& parsed_json, OsFilter os_filter); 481 bool LoadList(const base::DictionaryValue& parsed_json, OsFilter os_filter);
477 482
478 void Clear(); 483 void Clear();
(...skipping 17 matching lines...) Expand all
496 bool supports_feature_type_all_; 501 bool supports_feature_type_all_;
497 502
498 bool control_list_logging_enabled_; 503 bool control_list_logging_enabled_;
499 std::string control_list_logging_name_; 504 std::string control_list_logging_name_;
500 }; 505 };
501 506
502 } // namespace gpu 507 } // namespace gpu
503 508
504 #endif // GPU_CONFIG_GPU_CONTROL_LIST_H_ 509 #endif // GPU_CONFIG_GPU_CONTROL_LIST_H_
505 510
OLDNEW
« no previous file with comments | « no previous file | gpu/config/gpu_control_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698