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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 kServiceRenderbufferId); 112 kServiceRenderbufferId);
113 }; 113 };
114 114
115 template <> 115 template <>
116 void GLES2DecoderTestBase::SpecializedSetup<GetProgramInfoLog, 0>( 116 void GLES2DecoderTestBase::SpecializedSetup<GetProgramInfoLog, 0>(
117 bool /* valid */) { 117 bool /* valid */) {
118 ProgramManager::ProgramInfo* info = GetProgramInfo(client_program_id_); 118 ProgramManager::ProgramInfo* info = GetProgramInfo(client_program_id_);
119 info->set_log_info("hello"); 119 info->set_log_info("hello");
120 }; 120 };
121 121
122 template <>
123 void GLES2DecoderTestBase::SpecializedSetup<GetVertexAttribfv, 0>(bool valid) {
124 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId);
125 DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0);
126 if (valid) {
127 EXPECT_CALL(*gl_, GetError())
128 .WillOnce(Return(GL_NO_ERROR))
129 .WillOnce(Return(GL_NO_ERROR))
130 .RetiresOnSaturation();
131 }
132 };
122 133
123 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" 134 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h"
124 135
125 } // namespace gles2 136 } // namespace gles2
126 } // namespace gpu 137 } // namespace gpu
127 138
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698