| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 cmd.Init(target, client_id); | 1177 cmd.Init(target, client_id); |
| 1178 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 1178 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 void GLES2DecoderTestBase::DoRenderbufferStorageMultisampleCHROMIUM( | 1181 void GLES2DecoderTestBase::DoRenderbufferStorageMultisampleCHROMIUM( |
| 1182 GLenum target, | 1182 GLenum target, |
| 1183 GLsizei samples, | 1183 GLsizei samples, |
| 1184 GLenum internal_format, | 1184 GLenum internal_format, |
| 1185 GLenum gl_format, | 1185 GLenum gl_format, |
| 1186 GLsizei width, | 1186 GLsizei width, |
| 1187 GLsizei height, | 1187 GLsizei height) { |
| 1188 bool expect_bind) { | |
| 1189 EXPECT_CALL(*gl_, GetError()) | 1188 EXPECT_CALL(*gl_, GetError()) |
| 1190 .WillOnce(Return(GL_NO_ERROR)) | 1189 .WillOnce(Return(GL_NO_ERROR)) |
| 1191 .RetiresOnSaturation(); | 1190 .RetiresOnSaturation(); |
| 1192 EnsureRenderbufferBound(expect_bind); | |
| 1193 EXPECT_CALL(*gl_, | 1191 EXPECT_CALL(*gl_, |
| 1194 RenderbufferStorageMultisampleEXT( | 1192 RenderbufferStorageMultisampleEXT( |
| 1195 target, samples, gl_format, width, height)) | 1193 target, samples, gl_format, width, height)) |
| 1196 .Times(1) | 1194 .Times(1) |
| 1197 .RetiresOnSaturation(); | 1195 .RetiresOnSaturation(); |
| 1198 EXPECT_CALL(*gl_, GetError()) | 1196 EXPECT_CALL(*gl_, GetError()) |
| 1199 .WillOnce(Return(GL_NO_ERROR)) | 1197 .WillOnce(Return(GL_NO_ERROR)) |
| 1200 .RetiresOnSaturation(); | 1198 .RetiresOnSaturation(); |
| 1201 cmds::RenderbufferStorageMultisampleCHROMIUM cmd; | 1199 cmds::RenderbufferStorageMultisampleCHROMIUM cmd; |
| 1202 cmd.Init(target, samples, internal_format, width, height); | 1200 cmd.Init(target, samples, internal_format, width, height); |
| (...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2182 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 2180 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 2183 } | 2181 } |
| 2184 | 2182 |
| 2185 // Include the auto-generated part of this file. We split this because it means | 2183 // Include the auto-generated part of this file. We split this because it means |
| 2186 // we can easily edit the non-auto generated parts right here in this file | 2184 // we can easily edit the non-auto generated parts right here in this file |
| 2187 // instead of having to edit some template or the code generator. | 2185 // instead of having to edit some template or the code generator. |
| 2188 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 2186 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
| 2189 | 2187 |
| 2190 } // namespace gles2 | 2188 } // namespace gles2 |
| 2191 } // namespace gpu | 2189 } // namespace gpu |
| OLD | NEW |