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

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

Issue 1387143003: Add missing break in switch-case statements in gles2_cmd_decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to go through the clang compiler error! Created 5 years, 1 month 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 } 218 }
219 219
220 ::testing::StrictMock< ::gfx::MockGLInterface>* GetGLMock() const { 220 ::testing::StrictMock< ::gfx::MockGLInterface>* GetGLMock() const {
221 return gl_.get(); 221 return gl_.get();
222 } 222 }
223 223
224 GLES2Decoder* GetDecoder() const { 224 GLES2Decoder* GetDecoder() const {
225 return decoder_.get(); 225 return decoder_.get();
226 } 226 }
227 227
228 uint32 GetAndClearBackbufferClearBitsForTest() const {
229 return decoder_->GetAndClearBackbufferClearBitsForTest();
230 }
231
228 typedef TestHelper::AttribInfo AttribInfo; 232 typedef TestHelper::AttribInfo AttribInfo;
229 typedef TestHelper::UniformInfo UniformInfo; 233 typedef TestHelper::UniformInfo UniformInfo;
230 234
231 void SetupShader( 235 void SetupShader(
232 AttribInfo* attribs, size_t num_attribs, 236 AttribInfo* attribs, size_t num_attribs,
233 UniformInfo* uniforms, size_t num_uniforms, 237 UniformInfo* uniforms, size_t num_uniforms,
234 GLuint client_id, GLuint service_id, 238 GLuint client_id, GLuint service_id,
235 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, 239 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id,
236 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); 240 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id);
237 241
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 }; 725 };
722 726
723 // SpecializedSetup specializations that are needed in multiple unittest files. 727 // SpecializedSetup specializations that are needed in multiple unittest files.
724 template <> 728 template <>
725 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); 729 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid);
726 730
727 } // namespace gles2 731 } // namespace gles2
728 } // namespace gpu 732 } // namespace gpu
729 733
730 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 734 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698