| 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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 .WillOnce(Return(GL_NO_ERROR)) | 1247 .WillOnce(Return(GL_NO_ERROR)) |
| 1248 .RetiresOnSaturation(); | 1248 .RetiresOnSaturation(); |
| 1249 EXPECT_CALL(*gl_, FramebufferTexture2DEXT( | 1249 EXPECT_CALL(*gl_, FramebufferTexture2DEXT( |
| 1250 target, attachment, textarget, texture_service_id, level)) | 1250 target, attachment, textarget, texture_service_id, level)) |
| 1251 .Times(1) | 1251 .Times(1) |
| 1252 .RetiresOnSaturation(); | 1252 .RetiresOnSaturation(); |
| 1253 EXPECT_CALL(*gl_, GetError()) | 1253 EXPECT_CALL(*gl_, GetError()) |
| 1254 .WillOnce(Return(error)) | 1254 .WillOnce(Return(error)) |
| 1255 .RetiresOnSaturation(); | 1255 .RetiresOnSaturation(); |
| 1256 cmds::FramebufferTexture2D cmd; | 1256 cmds::FramebufferTexture2D cmd; |
| 1257 cmd.Init(target, attachment, textarget, texture_client_id); | 1257 cmd.Init(target, attachment, textarget, texture_client_id, level); |
| 1258 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 1258 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 1259 } | 1259 } |
| 1260 | 1260 |
| 1261 void GLES2DecoderTestBase::DoFramebufferRenderbuffer( | 1261 void GLES2DecoderTestBase::DoFramebufferRenderbuffer( |
| 1262 GLenum target, | 1262 GLenum target, |
| 1263 GLenum attachment, | 1263 GLenum attachment, |
| 1264 GLenum renderbuffer_target, | 1264 GLenum renderbuffer_target, |
| 1265 GLuint renderbuffer_client_id, | 1265 GLuint renderbuffer_client_id, |
| 1266 GLuint renderbuffer_service_id, | 1266 GLuint renderbuffer_service_id, |
| 1267 GLenum error) { | 1267 GLenum error) { |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1906 SetupDefaultProgram(); | 1906 SetupDefaultProgram(); |
| 1907 } | 1907 } |
| 1908 | 1908 |
| 1909 // Include the auto-generated part of this file. We split this because it means | 1909 // Include the auto-generated part of this file. We split this because it means |
| 1910 // we can easily edit the non-auto generated parts right here in this file | 1910 // we can easily edit the non-auto generated parts right here in this file |
| 1911 // instead of having to edit some template or the code generator. | 1911 // instead of having to edit some template or the code generator. |
| 1912 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 1912 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
| 1913 | 1913 |
| 1914 } // namespace gles2 | 1914 } // namespace gles2 |
| 1915 } // namespace gpu | 1915 } // namespace gpu |
| OLD | NEW |