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.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 7 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" | 9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
10 #include "gpu/command_buffer/service/cmd_buffer_engine.h" | 10 #include "gpu/command_buffer/service/cmd_buffer_engine.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); | 268 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); |
269 DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0); | 269 DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0); |
270 if (valid) { | 270 if (valid) { |
271 EXPECT_CALL(*gl_, GetError()) | 271 EXPECT_CALL(*gl_, GetError()) |
272 .WillOnce(Return(GL_NO_ERROR)) | 272 .WillOnce(Return(GL_NO_ERROR)) |
273 .WillOnce(Return(GL_NO_ERROR)) | 273 .WillOnce(Return(GL_NO_ERROR)) |
274 .RetiresOnSaturation(); | 274 .RetiresOnSaturation(); |
275 } | 275 } |
276 }; | 276 }; |
277 | 277 |
| 278 template <> |
| 279 void GLES2DecoderTestBase::SpecializedSetup<cmds::RenderbufferStorage, 0>( |
| 280 bool valid) { |
| 281 DoBindRenderbuffer(GL_RENDERBUFFER, client_renderbuffer_id_, |
| 282 kServiceRenderbufferId); |
| 283 if (valid) { |
| 284 EXPECT_CALL(*gl_, GetError()) |
| 285 .WillOnce(Return(GL_NO_ERROR)) |
| 286 .RetiresOnSaturation(); |
| 287 EXPECT_CALL(*gl_, |
| 288 RenderbufferStorageEXT(GL_RENDERBUFFER, _, 3, 4)) |
| 289 .Times(1) |
| 290 .RetiresOnSaturation(); |
| 291 EXPECT_CALL(*gl_, GetError()) |
| 292 .WillOnce(Return(GL_NO_ERROR)) |
| 293 .RetiresOnSaturation(); |
| 294 } |
| 295 } |
| 296 |
| 297 |
278 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" | 298 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" |
279 | 299 |
280 } // namespace gles2 | 300 } // namespace gles2 |
281 } // namespace gpu | 301 } // namespace gpu |
282 | 302 |
OLD | NEW |