| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.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 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2113 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 2113 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 2114 } | 2114 } |
| 2115 | 2115 |
| 2116 TEST_P(GLES2DecoderManualInitTest, InvalidateFramebufferBinding) { | 2116 TEST_P(GLES2DecoderManualInitTest, InvalidateFramebufferBinding) { |
| 2117 InitState init; | 2117 InitState init; |
| 2118 init.gl_version = "opengl es 3.0"; | 2118 init.gl_version = "opengl es 3.0"; |
| 2119 InitDecoder(init); | 2119 InitDecoder(init); |
| 2120 | 2120 |
| 2121 // EXPECT_EQ can't be used to compare function pointers | 2121 // EXPECT_EQ can't be used to compare function pointers |
| 2122 EXPECT_TRUE( | 2122 EXPECT_TRUE( |
| 2123 gfx::MockGLInterface::GetGLProcAddress("glInvalidateFramebuffer") == | 2123 gfx::MockGLInterface::GetGLProcAddress("glInvalidateFramebuffer") != |
| 2124 gfx::g_driver_gl.fn.glDiscardFramebufferEXTFn); | 2124 gfx::g_driver_gl.fn.glDiscardFramebufferEXTFn); |
| 2125 EXPECT_TRUE( | 2125 EXPECT_TRUE( |
| 2126 gfx::MockGLInterface::GetGLProcAddress("glInvalidateFramebuffer") != | 2126 gfx::MockGLInterface::GetGLProcAddress("glInvalidateFramebuffer") != |
| 2127 gfx::MockGLInterface::GetGLProcAddress("glDiscardFramebufferEXT")); | 2127 gfx::MockGLInterface::GetGLProcAddress("glDiscardFramebufferEXT")); |
| 2128 } | 2128 } |
| 2129 | 2129 |
| 2130 TEST_P(GLES2DecoderManualInitTest, DiscardFramebufferEXT) { | 2130 TEST_P(GLES2DecoderManualInitTest, DiscardFramebufferEXT) { |
| 2131 InitState init; | 2131 InitState init; |
| 2132 init.extensions = "GL_EXT_discard_framebuffer"; | 2132 init.extensions = "GL_EXT_discard_framebuffer"; |
| 2133 init.gl_version = "opengl es 2.0"; | 2133 init.gl_version = "opengl es 2.0"; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2391 EXPECT_EQ(1, result->GetNumResults()); | 2391 EXPECT_EQ(1, result->GetNumResults()); |
| 2392 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 2392 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 2393 } | 2393 } |
| 2394 | 2394 |
| 2395 // TODO(gman): PixelStorei | 2395 // TODO(gman): PixelStorei |
| 2396 | 2396 |
| 2397 // TODO(gman): SwapBuffers | 2397 // TODO(gman): SwapBuffers |
| 2398 | 2398 |
| 2399 } // namespace gles2 | 2399 } // namespace gles2 |
| 2400 } // namespace gpu | 2400 } // namespace gpu |
| OLD | NEW |