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

Unified Diff: gpu/config/gpu_control_list_entry_unittest.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/config/gpu_control_list.cc ('k') | gpu/config/gpu_control_list_format.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_control_list_entry_unittest.cc
diff --git a/gpu/config/gpu_control_list_entry_unittest.cc b/gpu/config/gpu_control_list_entry_unittest.cc
index 5287d4c845934a27e31d0cbc3939a818544260fa..7c63438e291197e4404745159f2d931d646f9ed6 100644
--- a/gpu/config/gpu_control_list_entry_unittest.cc
+++ b/gpu/config/gpu_control_list_entry_unittest.cc
@@ -1359,5 +1359,19 @@ TEST_F(GpuControlListEntryTest, LinuxKernelVersion) {
gpu_info));
}
+TEST_F(GpuControlListEntryTest, PixelShaderVersion) {
+ const std::string json = LONG_STRING_CONST(
+ {"id" : 1, "pixel_shader_version" : {"op" : "<", "value" : "4.1"}});
+ ScopedEntry entry(GetEntryFromString(json));
+ EXPECT_TRUE(entry.get() != NULL);
+ EXPECT_EQ(GpuControlList::kOsAny, entry->GetOsType());
+
+ GPUInfo gpu_info;
+ gpu_info.pixel_shader_version = "3.2";
+ EXPECT_TRUE(entry->Contains(GpuControlList::kOsMacosx, "10.9", gpu_info));
+ gpu_info.pixel_shader_version = "4.9";
+ EXPECT_FALSE(entry->Contains(GpuControlList::kOsMacosx, "10.9", gpu_info));
+}
+
} // namespace gpu
« no previous file with comments | « gpu/config/gpu_control_list.cc ('k') | gpu/config/gpu_control_list_format.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698