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 <GLES2/gl2.h> | 5 #include <GLES2/gl2.h> |
6 #include <GLES2/gl2ext.h> | 6 #include <GLES2/gl2ext.h> |
| 7 #include <GLES2/gl2extchromium.h> |
7 | 8 |
8 #include "gpu/command_buffer/tests/gl_manager.h" | 9 #include "gpu/command_buffer/tests/gl_manager.h" |
9 #include "gpu/command_buffer/tests/gl_test_utils.h" | 10 #include "gpu/command_buffer/tests/gl_test_utils.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 | 13 |
13 namespace gpu { | 14 namespace gpu { |
14 | 15 |
15 class GLChromiumFramebufferMultisampleTest : public testing::Test { | 16 class GLChromiumFramebufferMultisampleTest : public testing::Test { |
16 protected: | 17 protected: |
(...skipping 24 matching lines...) Expand all Loading... |
41 // GL_FRAMEBUFFER_COMPLETE and rendering will generate an error. | 42 // GL_FRAMEBUFFER_COMPLETE and rendering will generate an error. |
42 EXPECT_EQ(static_cast<GLenum>(GL_FRAMEBUFFER_COMPLETE), | 43 EXPECT_EQ(static_cast<GLenum>(GL_FRAMEBUFFER_COMPLETE), |
43 glCheckFramebufferStatus(GL_FRAMEBUFFER)); | 44 glCheckFramebufferStatus(GL_FRAMEBUFFER)); |
44 | 45 |
45 glClear(GL_COLOR_BUFFER_BIT); | 46 glClear(GL_COLOR_BUFFER_BIT); |
46 GLTestHelper::CheckGLError("no errors", __LINE__); | 47 GLTestHelper::CheckGLError("no errors", __LINE__); |
47 } | 48 } |
48 | 49 |
49 } // namespace gpu | 50 } // namespace gpu |
50 | 51 |
OLD | NEW |