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

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

Issue 148153025: Merge 249460 "Hookup clear_uniforms_before_first_program_use wor..." (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
206 void SetupInitCapabilitiesExpectations(); 200 void SetupInitCapabilitiesExpectations();
207 void SetupInitStateExpectations(); 201 void SetupInitStateExpectations();
208 void ExpectEnableDisable(GLenum cap, bool enable); 202 void ExpectEnableDisable(GLenum cap, bool enable);
209 203
210 // Setups up a shader for testing glUniform. 204 // Setups up a shader for testing glUniform.
211 void SetupShaderForUniform(GLenum uniform_type); 205 void SetupShaderForUniform(GLenum uniform_type);
212 void SetupDefaultProgram(); 206 void SetupDefaultProgram();
213 void SetupCubemapProgram(); 207 void SetupCubemapProgram();
214 void SetupSamplerExternalProgram(); 208 void SetupSamplerExternalProgram();
215 void SetupTexture(); 209 void SetupTexture();
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 protected: 551 protected:
558 virtual void SetUp() OVERRIDE; 552 virtual void SetUp() OVERRIDE;
559 virtual void TearDown() OVERRIDE; 553 virtual void TearDown() OVERRIDE;
560 554
561 }; 555 };
562 556
563 } // namespace gles2 557 } // namespace gles2
564 } // namespace gpu 558 } // namespace gpu
565 559
566 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 560 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698