| 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_base.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 GLenum target, | 664 GLenum target, |
| 665 GLint level, | 665 GLint level, |
| 666 GLenum internal_format, | 666 GLenum internal_format, |
| 667 GLenum format, | 667 GLenum format, |
| 668 GLenum type, | 668 GLenum type, |
| 669 GLsizei width, | 669 GLsizei width, |
| 670 GLsizei height) { | 670 GLsizei height) { |
| 671 EXPECT_CALL(*gl_, BindTexture(bind_target, service_id)) | 671 EXPECT_CALL(*gl_, BindTexture(bind_target, service_id)) |
| 672 .Times(1) | 672 .Times(1) |
| 673 .RetiresOnSaturation(); | 673 .RetiresOnSaturation(); |
| 674 EXPECT_CALL(*gl_, TexImage2D( | 674 EXPECT_CALL( |
| 675 target, level, internal_format, width, height, 0, format, type, _)) | 675 *gl_, TexSubImage2D(target, level, 0, 0, width, height, format, type, _)) |
| 676 .Times(1) | 676 .Times(1) |
| 677 .RetiresOnSaturation(); | 677 .RetiresOnSaturation(); |
| 678 EXPECT_CALL(*gl_, BindTexture(bind_target, old_service_id)) | 678 EXPECT_CALL(*gl_, BindTexture(bind_target, old_service_id)) |
| 679 .Times(1) | 679 .Times(1) |
| 680 .RetiresOnSaturation(); | 680 .RetiresOnSaturation(); |
| 681 } | 681 } |
| 682 | 682 |
| 683 void GLES2DecoderTestBase::SetupExpectationsForFramebufferClearing( | 683 void GLES2DecoderTestBase::SetupExpectationsForFramebufferClearing( |
| 684 GLenum target, | 684 GLenum target, |
| 685 GLuint clear_bits, | 685 GLuint clear_bits, |
| (...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1815 SetupDefaultProgram(); | 1815 SetupDefaultProgram(); |
| 1816 } | 1816 } |
| 1817 | 1817 |
| 1818 // Include the auto-generated part of this file. We split this because it means | 1818 // Include the auto-generated part of this file. We split this because it means |
| 1819 // we can easily edit the non-auto generated parts right here in this file | 1819 // we can easily edit the non-auto generated parts right here in this file |
| 1820 // instead of having to edit some template or the code generator. | 1820 // instead of having to edit some template or the code generator. |
| 1821 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 1821 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
| 1822 | 1822 |
| 1823 } // namespace gles2 | 1823 } // namespace gles2 |
| 1824 } // namespace gpu | 1824 } // namespace gpu |
| OLD | NEW |