| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 kServiceFramebufferId); | 123 kServiceFramebufferId); |
| 124 if (valid) { | 124 if (valid) { |
| 125 EXPECT_CALL(*gl_, GetError()) | 125 EXPECT_CALL(*gl_, GetError()) |
| 126 .WillOnce(Return(GL_NO_ERROR)) | 126 .WillOnce(Return(GL_NO_ERROR)) |
| 127 .WillOnce(Return(GL_NO_ERROR)) | 127 .WillOnce(Return(GL_NO_ERROR)) |
| 128 .RetiresOnSaturation(); | 128 .RetiresOnSaturation(); |
| 129 } | 129 } |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 template <> | 132 template <> |
| 133 void GLES2DecoderTestBase::SpecializedSetup<cmds::FramebufferTexture2D, 0>( | |
| 134 bool valid) { | |
| 135 DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_, | |
| 136 kServiceFramebufferId); | |
| 137 if (valid) { | |
| 138 EXPECT_CALL(*gl_, GetError()) | |
| 139 .WillOnce(Return(GL_NO_ERROR)) | |
| 140 .WillOnce(Return(GL_NO_ERROR)) | |
| 141 .RetiresOnSaturation(); | |
| 142 } | |
| 143 }; | |
| 144 | |
| 145 template <> | |
| 146 void GLES2DecoderTestBase::SpecializedSetup<cmds::FramebufferTextureLayer, 0>( | 133 void GLES2DecoderTestBase::SpecializedSetup<cmds::FramebufferTextureLayer, 0>( |
| 147 bool valid) { | 134 bool valid) { |
| 148 DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_, | 135 DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_, |
| 149 kServiceFramebufferId); | 136 kServiceFramebufferId); |
| 150 if (valid) { | 137 if (valid) { |
| 151 EXPECT_CALL(*gl_, GetError()) | 138 EXPECT_CALL(*gl_, GetError()) |
| 152 .WillOnce(Return(GL_NO_ERROR)) | 139 .WillOnce(Return(GL_NO_ERROR)) |
| 153 .WillOnce(Return(GL_NO_ERROR)) | 140 .WillOnce(Return(GL_NO_ERROR)) |
| 154 .RetiresOnSaturation(); | 141 .RetiresOnSaturation(); |
| 155 } | 142 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 .WillOnce(Return(GL_NO_ERROR)) | 174 .WillOnce(Return(GL_NO_ERROR)) |
| 188 .RetiresOnSaturation(); | 175 .RetiresOnSaturation(); |
| 189 } | 176 } |
| 190 } | 177 } |
| 191 | 178 |
| 192 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" | 179 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" |
| 193 | 180 |
| 194 } // namespace gles2 | 181 } // namespace gles2 |
| 195 } // namespace gpu | 182 } // namespace gpu |
| 196 | 183 |
| OLD | NEW |