summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/context_group_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/context_group_unittest.cc')
-rw-r--r--gpu/command_buffer/service/context_group_unittest.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/context_group_unittest.cc b/gpu/command_buffer/service/context_group_unittest.cc
index 34c8adc..c8717c4 100644
--- a/gpu/command_buffer/service/context_group_unittest.cc
+++ b/gpu/command_buffer/service/context_group_unittest.cc
@@ -122,6 +122,7 @@ TEST_F(ContextGroupTest, Basic) {
EXPECT_TRUE(group_.texture_manager() == NULL);
EXPECT_TRUE(group_.program_manager() == NULL);
EXPECT_TRUE(group_.shader_manager() == NULL);
+ EXPECT_FALSE(group_.extension_flags().ext_framebuffer_multisample);
}
TEST_F(ContextGroupTest, InitializeNoExtensions) {
@@ -286,6 +287,24 @@ TEST_F(ContextGroupTest, InitializeOES_texture_half_float_linearGLES2) {
EXPECT_TRUE(group_.validators()->pixel_type.IsValid(GL_HALF_FLOAT_OES));
}
+TEST_F(ContextGroupTest, InitializeEXT_framebuffer_multisample) {
+ SetupInitExpectations("GL_EXT_framebuffer_multisample");
+ group_.Initialize();
+ EXPECT_TRUE(group_.extension_flags().ext_framebuffer_multisample);
+ EXPECT_THAT(group_.extensions(), HasSubstr("GL_EXT_framebuffer_multisample"));
+ EXPECT_THAT(group_.extensions(), HasSubstr("GL_EXT_framebuffer_blit"));
+ EXPECT_TRUE(group_.validators()->frame_buffer_target.IsValid(
+ GL_READ_FRAMEBUFFER_EXT));
+ EXPECT_TRUE(group_.validators()->frame_buffer_target.IsValid(
+ GL_DRAW_FRAMEBUFFER_EXT));
+ EXPECT_TRUE(group_.validators()->g_l_state.IsValid(
+ GL_READ_FRAMEBUFFER_BINDING_EXT));
+ EXPECT_TRUE(group_.validators()->g_l_state.IsValid(
+ GL_DRAW_FRAMEBUFFER_BINDING_EXT));
+ EXPECT_TRUE(group_.validators()->render_buffer_parameter.IsValid(
+ GL_MAX_SAMPLES_EXT));
+}
+
} // namespace gles2
} // namespace gpu