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

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

Issue 282253002: Remove unneeded shm versions of bucket functions from command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-shm-for-immediate-commands
Patch Set: rebase (1 new added hunk) Created 6 years, 6 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_1.cc 11 // It is included by gles2_cmd_decoder_unittest_1.cc
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
14 14
15 // TODO(gman): ActiveTexture 15 // TODO(gman): ActiveTexture
16 16
17 TEST_P(GLES2DecoderTest1, AttachShaderValidArgs) { 17 TEST_P(GLES2DecoderTest1, AttachShaderValidArgs) {
18 EXPECT_CALL(*gl_, AttachShader(kServiceProgramId, kServiceShaderId)); 18 EXPECT_CALL(*gl_, AttachShader(kServiceProgramId, kServiceShaderId));
19 SpecializedSetup<cmds::AttachShader, 0>(true); 19 SpecializedSetup<cmds::AttachShader, 0>(true);
20 cmds::AttachShader cmd; 20 cmds::AttachShader cmd;
21 cmd.Init(client_program_id_, client_shader_id_); 21 cmd.Init(client_program_id_, client_shader_id_);
22 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 22 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
23 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 23 EXPECT_EQ(GL_NO_ERROR, GetGLError());
24 } 24 }
25 // TODO(gman): BindAttribLocation
26
27 // TODO(gman): BindAttribLocationBucket 25 // TODO(gman): BindAttribLocationBucket
28 26
29 TEST_P(GLES2DecoderTest1, BindBufferValidArgs) { 27 TEST_P(GLES2DecoderTest1, BindBufferValidArgs) {
30 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, kServiceBufferId)); 28 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, kServiceBufferId));
31 SpecializedSetup<cmds::BindBuffer, 0>(true); 29 SpecializedSetup<cmds::BindBuffer, 0>(true);
32 cmds::BindBuffer cmd; 30 cmds::BindBuffer cmd;
33 cmd.Init(GL_ARRAY_BUFFER, client_buffer_id_); 31 cmd.Init(GL_ARRAY_BUFFER, client_buffer_id_);
34 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 32 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
35 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 33 EXPECT_EQ(GL_NO_ERROR, GetGLError());
36 } 34 }
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 339 }
342 340
343 TEST_P(GLES2DecoderTest1, ColorMaskValidArgs) { 341 TEST_P(GLES2DecoderTest1, ColorMaskValidArgs) {
344 SpecializedSetup<cmds::ColorMask, 0>(true); 342 SpecializedSetup<cmds::ColorMask, 0>(true);
345 cmds::ColorMask cmd; 343 cmds::ColorMask cmd;
346 cmd.Init(true, true, true, true); 344 cmd.Init(true, true, true, true);
347 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 345 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
348 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 346 EXPECT_EQ(GL_NO_ERROR, GetGLError());
349 } 347 }
350 // TODO(gman): CompileShader 348 // TODO(gman): CompileShader
349 // TODO(gman): CompressedTexImage2DBucket
351 // TODO(gman): CompressedTexImage2D 350 // TODO(gman): CompressedTexImage2D
352 351
353 // TODO(gman): CompressedTexImage2DBucket 352 // TODO(gman): CompressedTexSubImage2DBucket
354 // TODO(gman): CompressedTexSubImage2D 353 // TODO(gman): CompressedTexSubImage2D
355 354
356 // TODO(gman): CompressedTexSubImage2DBucket
357 // TODO(gman): CopyTexImage2D 355 // TODO(gman): CopyTexImage2D
358 356
359 TEST_P(GLES2DecoderTest1, CopyTexSubImage2DValidArgs) { 357 TEST_P(GLES2DecoderTest1, CopyTexSubImage2DValidArgs) {
360 EXPECT_CALL(*gl_, CopyTexSubImage2D(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, 8)); 358 EXPECT_CALL(*gl_, CopyTexSubImage2D(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, 8));
361 SpecializedSetup<cmds::CopyTexSubImage2D, 0>(true); 359 SpecializedSetup<cmds::CopyTexSubImage2D, 0>(true);
362 cmds::CopyTexSubImage2D cmd; 360 cmds::CopyTexSubImage2D cmd;
363 cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, 8); 361 cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, 8);
364 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 362 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
365 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 363 EXPECT_EQ(GL_NO_ERROR, GetGLError());
366 } 364 }
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 ExecuteImmediateCmd(*cmd, sizeof(&client_texture_id_))); 890 ExecuteImmediateCmd(*cmd, sizeof(&client_texture_id_)));
893 } 891 }
894 // TODO(gman): GetActiveAttrib 892 // TODO(gman): GetActiveAttrib
895 893
896 // TODO(gman): GetActiveUniform 894 // TODO(gman): GetActiveUniform
897 895
898 // TODO(gman): GetAttachedShaders 896 // TODO(gman): GetAttachedShaders
899 897
900 // TODO(gman): GetAttribLocation 898 // TODO(gman): GetAttribLocation
901 899
902 // TODO(gman): GetAttribLocationBucket
903
904 TEST_P(GLES2DecoderTest1, GetBooleanvValidArgs) { 900 TEST_P(GLES2DecoderTest1, GetBooleanvValidArgs) {
905 EXPECT_CALL(*gl_, GetError()) 901 EXPECT_CALL(*gl_, GetError())
906 .WillOnce(Return(GL_NO_ERROR)) 902 .WillOnce(Return(GL_NO_ERROR))
907 .WillOnce(Return(GL_NO_ERROR)) 903 .WillOnce(Return(GL_NO_ERROR))
908 .RetiresOnSaturation(); 904 .RetiresOnSaturation();
909 SpecializedSetup<cmds::GetBooleanv, 0>(true); 905 SpecializedSetup<cmds::GetBooleanv, 0>(true);
910 typedef cmds::GetBooleanv::Result Result; 906 typedef cmds::GetBooleanv::Result Result;
911 Result* result = static_cast<Result*>(shared_memory_address_); 907 Result* result = static_cast<Result*>(shared_memory_address_);
912 EXPECT_CALL(*gl_, GetBooleanv(GL_ACTIVE_TEXTURE, result->GetData())); 908 EXPECT_CALL(*gl_, GetBooleanv(GL_ACTIVE_TEXTURE, result->GetData()));
913 result->size = 0; 909 result->size = 0;
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 kInvalidSharedMemoryOffset); 1615 kInvalidSharedMemoryOffset);
1620 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 1616 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1621 EXPECT_EQ(0u, result->size); 1617 EXPECT_EQ(0u, result->size);
1622 } 1618 }
1623 // TODO(gman): GetUniformfv 1619 // TODO(gman): GetUniformfv
1624 1620
1625 // TODO(gman): GetUniformiv 1621 // TODO(gman): GetUniformiv
1626 1622
1627 // TODO(gman): GetUniformLocation 1623 // TODO(gman): GetUniformLocation
1628 1624
1629 // TODO(gman): GetUniformLocationBucket
1630
1631 TEST_P(GLES2DecoderTest1, GetVertexAttribfvValidArgs) { 1625 TEST_P(GLES2DecoderTest1, GetVertexAttribfvValidArgs) {
1632 SpecializedSetup<cmds::GetVertexAttribfv, 0>(true); 1626 SpecializedSetup<cmds::GetVertexAttribfv, 0>(true);
1633 typedef cmds::GetVertexAttribfv::Result Result; 1627 typedef cmds::GetVertexAttribfv::Result Result;
1634 Result* result = static_cast<Result*>(shared_memory_address_); 1628 Result* result = static_cast<Result*>(shared_memory_address_);
1635 result->size = 0; 1629 result->size = 0;
1636 cmds::GetVertexAttribfv cmd; 1630 cmds::GetVertexAttribfv cmd;
1637 cmd.Init(1, 1631 cmd.Init(1,
1638 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, 1632 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED,
1639 shared_memory_id_, 1633 shared_memory_id_,
1640 shared_memory_offset_); 1634 shared_memory_offset_);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 TEST_P(GLES2DecoderTest1, PolygonOffsetValidArgs) { 1900 TEST_P(GLES2DecoderTest1, PolygonOffsetValidArgs) {
1907 EXPECT_CALL(*gl_, PolygonOffset(1, 2)); 1901 EXPECT_CALL(*gl_, PolygonOffset(1, 2));
1908 SpecializedSetup<cmds::PolygonOffset, 0>(true); 1902 SpecializedSetup<cmds::PolygonOffset, 0>(true);
1909 cmds::PolygonOffset cmd; 1903 cmds::PolygonOffset cmd;
1910 cmd.Init(1, 2); 1904 cmd.Init(1, 2);
1911 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1905 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1912 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 1906 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1913 } 1907 }
1914 // TODO(gman): ReadPixels 1908 // TODO(gman): ReadPixels
1915 1909
1910 // TODO(gman): ReleaseShaderCompiler
1911
1912 TEST_P(GLES2DecoderTest1, RenderbufferStorageValidArgs) {
1913 SpecializedSetup<cmds::RenderbufferStorage, 0>(true);
1914 cmds::RenderbufferStorage cmd;
1915 cmd.Init(GL_RENDERBUFFER, GL_RGBA4, 3, 4);
1916 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1917 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1918 }
1919
1920 TEST_P(GLES2DecoderTest1, RenderbufferStorageInvalidArgs0_0) {
1921 EXPECT_CALL(*gl_, RenderbufferStorageEXT(_, _, _, _)).Times(0);
1922 SpecializedSetup<cmds::RenderbufferStorage, 0>(false);
1923 cmds::RenderbufferStorage cmd;
1924 cmd.Init(GL_FRAMEBUFFER, GL_RGBA4, 3, 4);
1925 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1926 EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
1927 }
1928
1929 TEST_P(GLES2DecoderTest1, RenderbufferStorageInvalidArgs2_0) {
1930 EXPECT_CALL(*gl_, RenderbufferStorageEXT(_, _, _, _)).Times(0);
1931 SpecializedSetup<cmds::RenderbufferStorage, 0>(false);
1932 cmds::RenderbufferStorage cmd;
1933 cmd.Init(GL_RENDERBUFFER, GL_RGBA4, -1, 4);
1934 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1935 EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
1936 }
1937
1938 TEST_P(GLES2DecoderTest1, RenderbufferStorageInvalidArgs3_0) {
1939 EXPECT_CALL(*gl_, RenderbufferStorageEXT(_, _, _, _)).Times(0);
1940 SpecializedSetup<cmds::RenderbufferStorage, 0>(false);
1941 cmds::RenderbufferStorage cmd;
1942 cmd.Init(GL_RENDERBUFFER, GL_RGBA4, 3, -1);
1943 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1944 EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
1945 }
1946
1947 TEST_P(GLES2DecoderTest1, SampleCoverageValidArgs) {
1948 EXPECT_CALL(*gl_, SampleCoverage(1, true));
1949 SpecializedSetup<cmds::SampleCoverage, 0>(true);
1950 cmds::SampleCoverage cmd;
1951 cmd.Init(1, true);
1952 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1953 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1954 }
1916 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 1955 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698