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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 kServiceFramebufferId); | 136 kServiceFramebufferId); |
137 if (valid) { | 137 if (valid) { |
138 EXPECT_CALL(*gl_, GetError()) | 138 EXPECT_CALL(*gl_, GetError()) |
139 .WillOnce(Return(GL_NO_ERROR)) | 139 .WillOnce(Return(GL_NO_ERROR)) |
140 .WillOnce(Return(GL_NO_ERROR)) | 140 .WillOnce(Return(GL_NO_ERROR)) |
141 .RetiresOnSaturation(); | 141 .RetiresOnSaturation(); |
142 } | 142 } |
143 }; | 143 }; |
144 | 144 |
145 template <> | 145 template <> |
| 146 void GLES2DecoderTestBase::SpecializedSetup<cmds::FramebufferTextureLayer, 0>( |
| 147 bool valid) { |
| 148 DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_, |
| 149 kServiceFramebufferId); |
| 150 if (valid) { |
| 151 EXPECT_CALL(*gl_, GetError()) |
| 152 .WillOnce(Return(GL_NO_ERROR)) |
| 153 .WillOnce(Return(GL_NO_ERROR)) |
| 154 .RetiresOnSaturation(); |
| 155 } |
| 156 }; |
| 157 |
| 158 template <> |
146 void GLES2DecoderTestBase::SpecializedSetup< | 159 void GLES2DecoderTestBase::SpecializedSetup< |
147 cmds::GetBufferParameteri64v, 0>(bool /* valid */) { | 160 cmds::GetBufferParameteri64v, 0>(bool /* valid */) { |
148 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); | 161 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); |
149 }; | 162 }; |
150 | 163 |
151 template <> | 164 template <> |
152 void GLES2DecoderTestBase::SpecializedSetup< | 165 void GLES2DecoderTestBase::SpecializedSetup< |
153 cmds::GetBufferParameteriv, 0>(bool /* valid */) { | 166 cmds::GetBufferParameteriv, 0>(bool /* valid */) { |
154 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); | 167 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); |
155 }; | 168 }; |
(...skipping 18 matching lines...) Expand all Loading... |
174 .WillOnce(Return(GL_NO_ERROR)) | 187 .WillOnce(Return(GL_NO_ERROR)) |
175 .RetiresOnSaturation(); | 188 .RetiresOnSaturation(); |
176 } | 189 } |
177 } | 190 } |
178 | 191 |
179 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" | 192 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" |
180 | 193 |
181 } // namespace gles2 | 194 } // namespace gles2 |
182 } // namespace gpu | 195 } // namespace gpu |
183 | 196 |
OLD | NEW |