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

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

Issue 10807072: Merge 147584 - On desktop GL, don't disable vertex attribute 0 when restoring state, or nothing wil… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 months 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 9
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 .RetiresOnSaturation(); 1198 .RetiresOnSaturation();
1199 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0)) 1199 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0))
1200 .Times(1) 1200 .Times(1)
1201 .RetiresOnSaturation(); 1201 .RetiresOnSaturation();
1202 EXPECT_CALL(*gl_, VertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, NULL)) 1202 EXPECT_CALL(*gl_, VertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, NULL))
1203 .Times(1) 1203 .Times(1)
1204 .RetiresOnSaturation(); 1204 .RetiresOnSaturation();
1205 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, buffer_id)) 1205 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, buffer_id))
1206 .Times(1) 1206 .Times(1)
1207 .RetiresOnSaturation(); 1207 .RetiresOnSaturation();
1208
1209 EXPECT_CALL(*gl_, DisableVertexAttribArray(0))
1210 .Times(1)
1211 .RetiresOnSaturation();
1212 } 1208 }
1213 } 1209 }
1214 1210
1215 void GLES2DecoderTestBase::AddExpectationsForSimulatedAttrib0( 1211 void GLES2DecoderTestBase::AddExpectationsForSimulatedAttrib0(
1216 GLsizei num_vertices, GLuint buffer_id) { 1212 GLsizei num_vertices, GLuint buffer_id) {
1217 AddExpectationsForSimulatedAttrib0WithError( 1213 AddExpectationsForSimulatedAttrib0WithError(
1218 num_vertices, buffer_id, GL_NO_ERROR); 1214 num_vertices, buffer_id, GL_NO_ERROR);
1219 } 1215 }
1220 1216
1221 void GLES2DecoderWithShaderTestBase::SetUp() { 1217 void GLES2DecoderWithShaderTestBase::SetUp() {
1222 GLES2DecoderTestBase::SetUp(); 1218 GLES2DecoderTestBase::SetUp();
1223 SetupDefaultProgram(); 1219 SetupDefaultProgram();
1224 } 1220 }
1225 1221
1226 } // namespace gles2 1222 } // namespace gles2
1227 } // namespace gpu 1223 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698