Fix overlays on Mac OS when running on Core Profile.
The command buffer service must advertise support for
EXT_texture_format_bgra8888 in order for GLImages to work. I scoured
the spec and extensions and it isn't obvious that this format is
supported, but it works and doesn't generate any GL errors (verified
by regenerating the GL bindings with --generate-dchecks).
Also fixed extensions string displayed in about:gpu when running on
core profile on Mac OS.
BUG=516840
Review URL: https://codereview.chromium.org/1269163004
Cr-Commit-Position: refs/heads/master@{#342039}
diff --git a/gpu/command_buffer/service/test_helper.cc b/gpu/command_buffer/service/test_helper.cc
index 308ab8e8..c3efa89 100644
--- a/gpu/command_buffer/service/test_helper.cc
+++ b/gpu/command_buffer/service/test_helper.cc
@@ -386,6 +386,9 @@
.RetiresOnSaturation();
}
+ EXPECT_CALL(*gl, GetString(GL_VERSION))
+ .WillOnce(Return(reinterpret_cast<const uint8*>(gl_version)))
+ .RetiresOnSaturation();
EXPECT_CALL(*gl, GetString(GL_RENDERER))
.WillOnce(Return(reinterpret_cast<const uint8*>(gl_renderer)))
.RetiresOnSaturation();