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

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

Issue 1136713003: Add ES3 commands GetVertexAttribI{u}iv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include "gpu/command_buffer/common/gles2_cmd_format.h" 7 #include "gpu/command_buffer/common/gles2_cmd_format.h"
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" 9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h"
10 #include "gpu/command_buffer/service/cmd_buffer_engine.h" 10 #include "gpu/command_buffer/service/cmd_buffer_engine.h"
(...skipping 19 matching lines...) Expand all
30 using namespace cmds; 30 using namespace cmds;
31 31
32 class GLES2DecoderTest3 : public GLES2DecoderTestBase { 32 class GLES2DecoderTest3 : public GLES2DecoderTestBase {
33 public: 33 public:
34 GLES2DecoderTest3() { } 34 GLES2DecoderTest3() { }
35 }; 35 };
36 36
37 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest3, ::testing::Bool()); 37 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest3, ::testing::Bool());
38 38
39 template <> 39 template <>
40 void GLES2DecoderTestBase::SpecializedSetup<cmds::UniformMatrix3fvImmediate, 0>(
41 bool /* valid */) {
42 SetupShaderForUniform(GL_FLOAT_MAT3);
43 };
44
45 template <>
40 void GLES2DecoderTestBase::SpecializedSetup<cmds::UniformMatrix4fvImmediate, 0>( 46 void GLES2DecoderTestBase::SpecializedSetup<cmds::UniformMatrix4fvImmediate, 0>(
41 bool /* valid */) { 47 bool /* valid */) {
42 SetupShaderForUniform(GL_FLOAT_MAT4); 48 SetupShaderForUniform(GL_FLOAT_MAT4);
43 }; 49 };
44 50
45 51
46 template <> 52 template <>
47 void GLES2DecoderTestBase::SpecializedSetup<cmds::UseProgram, 0>( 53 void GLES2DecoderTestBase::SpecializedSetup<cmds::UseProgram, 0>(
48 bool /* valid */) { 54 bool /* valid */) {
49 // Needs the same setup as LinkProgram. 55 // Needs the same setup as LinkProgram.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 119
114 end_cmd.Init(); 120 end_cmd.Init();
115 EXPECT_EQ(error::kNoError, ExecuteCmd(end_cmd)); 121 EXPECT_EQ(error::kNoError, ExecuteCmd(end_cmd));
116 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 122 EXPECT_EQ(GL_NO_ERROR, GetGLError());
117 } 123 }
118 124
119 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h" 125 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h"
120 126
121 } // namespace gles2 127 } // namespace gles2
122 } // namespace gpu 128 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698