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

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

Issue 159183002: Revert 250146 "Merge 249460 "Hookup clear_uniforms_before_first_..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 10 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
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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
7 7
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/buffer_manager.h" 10 #include "gpu/command_buffer/service/buffer_manager.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 typedef TestHelper::AttribInfo AttribInfo; 190 typedef TestHelper::AttribInfo AttribInfo;
191 typedef TestHelper::UniformInfo UniformInfo; 191 typedef TestHelper::UniformInfo UniformInfo;
192 192
193 void SetupShader( 193 void SetupShader(
194 AttribInfo* attribs, size_t num_attribs, 194 AttribInfo* attribs, size_t num_attribs,
195 UniformInfo* uniforms, size_t num_uniforms, 195 UniformInfo* uniforms, size_t num_uniforms,
196 GLuint client_id, GLuint service_id, 196 GLuint client_id, GLuint service_id,
197 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, 197 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id,
198 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); 198 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id);
199 199
200 void SetupExpectationsForClearingUniforms(
201 UniformInfo* uniforms, size_t num_uniforms) {
202 TestHelper::SetupExpectationsForClearingUniforms(
203 gl_.get(), uniforms, num_uniforms);
204 }
205
200 void SetupInitCapabilitiesExpectations(); 206 void SetupInitCapabilitiesExpectations();
201 void SetupInitStateExpectations(); 207 void SetupInitStateExpectations();
202 void ExpectEnableDisable(GLenum cap, bool enable); 208 void ExpectEnableDisable(GLenum cap, bool enable);
203 209
204 // Setups up a shader for testing glUniform. 210 // Setups up a shader for testing glUniform.
205 void SetupShaderForUniform(GLenum uniform_type); 211 void SetupShaderForUniform(GLenum uniform_type);
206 void SetupDefaultProgram(); 212 void SetupDefaultProgram();
207 void SetupCubemapProgram(); 213 void SetupCubemapProgram();
208 void SetupSamplerExternalProgram(); 214 void SetupSamplerExternalProgram();
209 void SetupTexture(); 215 void SetupTexture();
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 protected: 557 protected:
552 virtual void SetUp() OVERRIDE; 558 virtual void SetUp() OVERRIDE;
553 virtual void TearDown() OVERRIDE; 559 virtual void TearDown() OVERRIDE;
554 560
555 }; 561 };
556 562
557 } // namespace gles2 563 } // namespace gles2
558 } // namespace gpu 564 } // namespace gpu
559 565
560 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 566 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698