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

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

Issue 906613005: Add glUniformBlockBinding to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uniform
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
11 // It is included by gles2_cmd_decoder_unittest_3.cc 11 // It is included by gles2_cmd_decoder_unittest_3.cc
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ 12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ 13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_
14 14
15 TEST_P(GLES2DecoderTest3, VertexAttrib4fvImmediateValidArgs) {
16 cmds::VertexAttrib4fvImmediate& cmd =
17 *GetImmediateAs<cmds::VertexAttrib4fvImmediate>();
18 SpecializedSetup<cmds::VertexAttrib4fvImmediate, 0>(true);
19 GLfloat temp[4] = {
20 0,
21 };
22 cmd.Init(1, &temp[0]);
23 EXPECT_CALL(*gl_, VertexAttrib4fv(1, reinterpret_cast<GLfloat*>(
24 ImmediateDataAddress(&cmd))));
25 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp)));
26 EXPECT_EQ(GL_NO_ERROR, GetGLError());
27 }
28
15 TEST_P(GLES2DecoderTest3, VertexAttribI4iValidArgs) { 29 TEST_P(GLES2DecoderTest3, VertexAttribI4iValidArgs) {
16 EXPECT_CALL(*gl_, VertexAttribI4i(1, 2, 3, 4, 5)); 30 EXPECT_CALL(*gl_, VertexAttribI4i(1, 2, 3, 4, 5));
17 SpecializedSetup<cmds::VertexAttribI4i, 0>(true); 31 SpecializedSetup<cmds::VertexAttribI4i, 0>(true);
18 cmds::VertexAttribI4i cmd; 32 cmds::VertexAttribI4i cmd;
19 cmd.Init(1, 2, 3, 4, 5); 33 cmd.Init(1, 2, 3, 4, 5);
20 decoder_->set_unsafe_es3_apis_enabled(true); 34 decoder_->set_unsafe_es3_apis_enabled(true);
21 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 35 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
22 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 36 EXPECT_EQ(GL_NO_ERROR, GetGLError());
23 decoder_->set_unsafe_es3_apis_enabled(false); 37 decoder_->set_unsafe_es3_apis_enabled(false);
24 EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd)); 38 EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd));
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // TODO(gman): InsertSyncPointCHROMIUM 226 // TODO(gman): InsertSyncPointCHROMIUM
213 227
214 // TODO(gman): WaitSyncPointCHROMIUM 228 // TODO(gman): WaitSyncPointCHROMIUM
215 229
216 // TODO(gman): DrawBuffersEXTImmediate 230 // TODO(gman): DrawBuffersEXTImmediate
217 // TODO(gman): DiscardBackbufferCHROMIUM 231 // TODO(gman): DiscardBackbufferCHROMIUM
218 232
219 // TODO(gman): ScheduleOverlayPlaneCHROMIUM 233 // TODO(gman): ScheduleOverlayPlaneCHROMIUM
220 // TODO(gman): SwapInterval 234 // TODO(gman): SwapInterval
221 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ 235 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698