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

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

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 typedef TestHelper::AttribInfo AttribInfo; 222 typedef TestHelper::AttribInfo AttribInfo;
223 typedef TestHelper::UniformInfo UniformInfo; 223 typedef TestHelper::UniformInfo UniformInfo;
224 224
225 void SetupShader( 225 void SetupShader(
226 AttribInfo* attribs, size_t num_attribs, 226 AttribInfo* attribs, size_t num_attribs,
227 UniformInfo* uniforms, size_t num_uniforms, 227 UniformInfo* uniforms, size_t num_uniforms,
228 GLuint client_id, GLuint service_id, 228 GLuint client_id, GLuint service_id,
229 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, 229 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id,
230 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); 230 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id);
231 231
232 void SetupInitCapabilitiesExpectations(); 232 void SetupInitCapabilitiesExpectations(bool es3_capable);
233 void SetupInitStateExpectations(); 233 void SetupInitStateExpectations();
234 void ExpectEnableDisable(GLenum cap, bool enable); 234 void ExpectEnableDisable(GLenum cap, bool enable);
235 235
236 // Setups up a shader for testing glUniform. 236 // Setups up a shader for testing glUniform.
237 void SetupShaderForUniform(GLenum uniform_type); 237 void SetupShaderForUniform(GLenum uniform_type);
238 void SetupDefaultProgram(); 238 void SetupDefaultProgram();
239 void SetupCubemapProgram(); 239 void SetupCubemapProgram();
240 void SetupSamplerExternalProgram(); 240 void SetupSamplerExternalProgram();
241 void SetupTexture(); 241 void SetupTexture();
242 242
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 }; 678 };
679 679
680 // SpecializedSetup specializations that are needed in multiple unittest files. 680 // SpecializedSetup specializations that are needed in multiple unittest files.
681 template <> 681 template <>
682 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); 682 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid);
683 683
684 } // namespace gles2 684 } // namespace gles2
685 } // namespace gpu 685 } // namespace gpu
686 686
687 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 687 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698