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

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

Issue 903273002: Update from https://crrev.com/315085 (Closed) Base URL: git@github.com:domokit/mojo.git@master
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, VertexAttribI4ivImmediateValidArgs) {
16 cmds::VertexAttribI4ivImmediate& cmd =
17 *GetImmediateAs<cmds::VertexAttribI4ivImmediate>();
18 SpecializedSetup<cmds::VertexAttribI4ivImmediate, 0>(true);
19 GLint temp[4] = {
20 0,
21 };
22 cmd.Init(1, &temp[0]);
23 EXPECT_CALL(*gl_, VertexAttribI4iv(1, reinterpret_cast<GLint*>(
24 ImmediateDataAddress(&cmd))));
25 decoder_->set_unsafe_es3_apis_enabled(true);
26 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp)));
27 EXPECT_EQ(GL_NO_ERROR, GetGLError());
28 decoder_->set_unsafe_es3_apis_enabled(false);
29 EXPECT_EQ(error::kUnknownCommand, ExecuteImmediateCmd(cmd, sizeof(temp)));
30 }
31
32 TEST_P(GLES2DecoderTest3, VertexAttribI4uiValidArgs) {
33 EXPECT_CALL(*gl_, VertexAttribI4ui(1, 2, 3, 4, 5));
34 SpecializedSetup<cmds::VertexAttribI4ui, 0>(true);
35 cmds::VertexAttribI4ui cmd;
36 cmd.Init(1, 2, 3, 4, 5);
37 decoder_->set_unsafe_es3_apis_enabled(true);
38 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
39 EXPECT_EQ(GL_NO_ERROR, GetGLError());
40 decoder_->set_unsafe_es3_apis_enabled(false);
41 EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd));
42 }
43
15 TEST_P(GLES2DecoderTest3, VertexAttribI4uivImmediateValidArgs) { 44 TEST_P(GLES2DecoderTest3, VertexAttribI4uivImmediateValidArgs) {
16 cmds::VertexAttribI4uivImmediate& cmd = 45 cmds::VertexAttribI4uivImmediate& cmd =
17 *GetImmediateAs<cmds::VertexAttribI4uivImmediate>(); 46 *GetImmediateAs<cmds::VertexAttribI4uivImmediate>();
18 SpecializedSetup<cmds::VertexAttribI4uivImmediate, 0>(true); 47 SpecializedSetup<cmds::VertexAttribI4uivImmediate, 0>(true);
19 GLuint temp[4] = { 48 GLuint temp[4] = {
20 0, 49 0,
21 }; 50 };
22 cmd.Init(1, &temp[0]); 51 cmd.Init(1, &temp[0]);
23 EXPECT_CALL(*gl_, VertexAttribI4uiv(1, reinterpret_cast<GLuint*>( 52 EXPECT_CALL(*gl_, VertexAttribI4uiv(1, reinterpret_cast<GLuint*>(
24 ImmediateDataAddress(&cmd)))); 53 ImmediateDataAddress(&cmd))));
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // TODO(gman): GetMaxValueInBufferCHROMIUM 135 // TODO(gman): GetMaxValueInBufferCHROMIUM
107 // TODO(gman): EnableFeatureCHROMIUM 136 // TODO(gman): EnableFeatureCHROMIUM
108 137
109 // TODO(gman): ResizeCHROMIUM 138 // TODO(gman): ResizeCHROMIUM
110 // TODO(gman): GetRequestableExtensionsCHROMIUM 139 // TODO(gman): GetRequestableExtensionsCHROMIUM
111 140
112 // TODO(gman): RequestExtensionCHROMIUM 141 // TODO(gman): RequestExtensionCHROMIUM
113 142
114 // TODO(gman): GetProgramInfoCHROMIUM 143 // TODO(gman): GetProgramInfoCHROMIUM
115 144
145 // TODO(gman): GetUniformBlocksCHROMIUM
146
116 // TODO(gman): GetTranslatedShaderSourceANGLE 147 // TODO(gman): GetTranslatedShaderSourceANGLE
117 // TODO(gman): PostSubBufferCHROMIUM 148 // TODO(gman): PostSubBufferCHROMIUM
118 // TODO(gman): TexImageIOSurface2DCHROMIUM 149 // TODO(gman): TexImageIOSurface2DCHROMIUM
119 // TODO(gman): CopyTextureCHROMIUM 150 // TODO(gman): CopyTextureCHROMIUM
120 // TODO(gman): DrawArraysInstancedANGLE 151 // TODO(gman): DrawArraysInstancedANGLE
121 // TODO(gman): DrawElementsInstancedANGLE 152 // TODO(gman): DrawElementsInstancedANGLE
122 // TODO(gman): VertexAttribDivisorANGLE 153 // TODO(gman): VertexAttribDivisorANGLE
123 // TODO(gman): GenMailboxCHROMIUM 154 // TODO(gman): GenMailboxCHROMIUM
124 155
125 // TODO(gman): ProduceTextureCHROMIUMImmediate 156 // TODO(gman): ProduceTextureCHROMIUMImmediate
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // TODO(gman): InsertSyncPointCHROMIUM 200 // TODO(gman): InsertSyncPointCHROMIUM
170 201
171 // TODO(gman): WaitSyncPointCHROMIUM 202 // TODO(gman): WaitSyncPointCHROMIUM
172 203
173 // TODO(gman): DrawBuffersEXTImmediate 204 // TODO(gman): DrawBuffersEXTImmediate
174 // TODO(gman): DiscardBackbufferCHROMIUM 205 // TODO(gman): DiscardBackbufferCHROMIUM
175 206
176 // TODO(gman): ScheduleOverlayPlaneCHROMIUM 207 // TODO(gman): ScheduleOverlayPlaneCHROMIUM
177 // TODO(gman): SwapInterval 208 // TODO(gman): SwapInterval
178 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ 209 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698