| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 86 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 void GLES3DecoderTest::SetUp() { | 90 void GLES3DecoderTest::SetUp() { |
| 91 base::CommandLine command_line(0, NULL); | 91 base::CommandLine command_line(0, NULL); |
| 92 command_line.AppendSwitch(switches::kEnableUnsafeES3APIs); | 92 command_line.AppendSwitch(switches::kEnableUnsafeES3APIs); |
| 93 InitState init; | 93 InitState init; |
| 94 init.gl_version = "OpenGL ES 3.0"; | 94 init.gl_version = "OpenGL ES 3.0"; |
| 95 init.bind_generates_resource = true; | 95 init.bind_generates_resource = true; |
| 96 init.webgl_version = 2; | 96 init.context_type = ContextCreationAttribHelper::CONTEXT_TYPE_OPENGLES3; |
| 97 InitDecoderWithCommandLine(init, &command_line); | 97 InitDecoderWithCommandLine(init, &command_line); |
| 98 } | 98 } |
| 99 | 99 |
| 100 | 100 |
| 101 TEST_P(GLES3DecoderTest, Basic) { | 101 TEST_P(GLES3DecoderTest, Basic) { |
| 102 // Make sure the setup is correct for ES3. | 102 // Make sure the setup is correct for ES3. |
| 103 EXPECT_TRUE(decoder_->unsafe_es3_apis_enabled()); | 103 EXPECT_TRUE(decoder_->unsafe_es3_apis_enabled()); |
| 104 EXPECT_TRUE(feature_info()->validators()->texture_bind_target.IsValid( | 104 EXPECT_TRUE(feature_info()->validators()->texture_bind_target.IsValid( |
| 105 GL_TEXTURE_3D)); | 105 GL_TEXTURE_3D)); |
| 106 } | 106 } |
| (...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 INSTANTIATE_TEST_CASE_P(Service, | 1578 INSTANTIATE_TEST_CASE_P(Service, |
| 1579 GLES2DecoderRGBBackbufferTest, | 1579 GLES2DecoderRGBBackbufferTest, |
| 1580 ::testing::Bool()); | 1580 ::testing::Bool()); |
| 1581 | 1581 |
| 1582 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); | 1582 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); |
| 1583 | 1583 |
| 1584 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); | 1584 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); |
| 1585 | 1585 |
| 1586 } // namespace gles2 | 1586 } // namespace gles2 |
| 1587 } // namespace gpu | 1587 } // namespace gpu |
| OLD | NEW |