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

Unified Diff: gpu/ipc/common/struct_traits_unittest.cc

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: auto* Created 4 years, 3 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/ipc/common/gpu_param_traits_macros.h ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/struct_traits_unittest.cc
diff --git a/gpu/ipc/common/struct_traits_unittest.cc b/gpu/ipc/common/struct_traits_unittest.cc
index a66a99b55433def87355945b47bb65b5ec7d7fac..e7a0e437645b5424f71a13fed4f6ba9368ea296b 100644
--- a/gpu/ipc/common/struct_traits_unittest.cc
+++ b/gpu/ipc/common/struct_traits_unittest.cc
@@ -162,6 +162,10 @@ TEST_F(StructTraitsTest, GpuInfo) {
const std::vector<gpu::VideoEncodeAcceleratorSupportedProfile>
video_encode_accelerator_supported_profiles;
const bool jpeg_decode_accelerator_supported = true;
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ const VisualID system_visual = 0x1234;
+ const VisualID rgba_visual = 0x5678;
+#endif
gpu::GPUInfo input;
input.initialization_time = initialization_time;
@@ -204,6 +208,10 @@ TEST_F(StructTraitsTest, GpuInfo) {
input.video_encode_accelerator_supported_profiles =
video_encode_accelerator_supported_profiles;
input.jpeg_decode_accelerator_supported = jpeg_decode_accelerator_supported;
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ input.system_visual = system_visual;
+ input.rgba_visual = rgba_visual;
+#endif
mojom::TraitsTestServicePtr proxy = GetTraitsTestProxy();
gpu::GPUInfo output;
@@ -276,6 +284,10 @@ TEST_F(StructTraitsTest, GpuInfo) {
video_decode_accelerator_capabilities.supported_profiles.size());
EXPECT_EQ(output.video_encode_accelerator_supported_profiles.size(),
video_encode_accelerator_supported_profiles.size());
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ EXPECT_EQ(system_visual, output.system_visual);
+ EXPECT_EQ(rgba_visual, output.rgba_visual);
+#endif
}
TEST_F(StructTraitsTest, EmptyGpuInfo) {
« no previous file with comments | « gpu/ipc/common/gpu_param_traits_macros.h ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698