Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc

Issue 5626008: Exposed support for dynamically enabling extensions in command buffer... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/gl_mock.h" 7 #include "gpu/command_buffer/common/gl_mock.h"
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" 8 #include "gpu/command_buffer/common/gles2_cmd_format.h"
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" 10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId); 217 DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId);
218 }; 218 };
219 219
220 template <> 220 template <>
221 void GLES2DecoderTestBase::SpecializedSetup<TexParameterivImmediate, 0>( 221 void GLES2DecoderTestBase::SpecializedSetup<TexParameterivImmediate, 0>(
222 bool /* valid */) { 222 bool /* valid */) {
223 DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId); 223 DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId);
224 }; 224 };
225 225
226 template <> 226 template <>
227 void GLES2DecoderTestBase::SpecializedSetup<GetVertexAttribfv, 0>(bool valid) {
228 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId);
229 DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0);
230 if (valid) {
231 EXPECT_CALL(*gl_, GetError())
232 .WillOnce(Return(GL_NO_ERROR))
233 .WillOnce(Return(GL_NO_ERROR))
234 .RetiresOnSaturation();
235 }
236 };
237
238 template <>
239 void GLES2DecoderTestBase::SpecializedSetup<GetVertexAttribiv, 0>(bool valid) { 227 void GLES2DecoderTestBase::SpecializedSetup<GetVertexAttribiv, 0>(bool valid) {
240 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); 228 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId);
241 DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0); 229 DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0);
242 if (valid) { 230 if (valid) {
243 EXPECT_CALL(*gl_, GetError()) 231 EXPECT_CALL(*gl_, GetError())
244 .WillOnce(Return(GL_NO_ERROR)) 232 .WillOnce(Return(GL_NO_ERROR))
245 .WillOnce(Return(GL_NO_ERROR)) 233 .WillOnce(Return(GL_NO_ERROR))
246 .RetiresOnSaturation(); 234 .RetiresOnSaturation();
247 } 235 }
248 }; 236 };
249 237
250 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h" 238 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h"
251 239
252 } // namespace gles2 240 } // namespace gles2
253 } // namespace gpu 241 } // namespace gpu
254 242
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698