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

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

Issue 867123008: Add glGetFragDataLocation to gpu command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 EXPECT_CALL(*gl_, GetFloatv(_, _)).Times(0); 1388 EXPECT_CALL(*gl_, GetFloatv(_, _)).Times(0);
1389 SpecializedSetup<cmds::GetFloatv, 0>(false); 1389 SpecializedSetup<cmds::GetFloatv, 0>(false);
1390 cmds::GetFloatv::Result* result = 1390 cmds::GetFloatv::Result* result =
1391 static_cast<cmds::GetFloatv::Result*>(shared_memory_address_); 1391 static_cast<cmds::GetFloatv::Result*>(shared_memory_address_);
1392 result->size = 0; 1392 result->size = 0;
1393 cmds::GetFloatv cmd; 1393 cmds::GetFloatv cmd;
1394 cmd.Init(GL_ACTIVE_TEXTURE, shared_memory_id_, kInvalidSharedMemoryOffset); 1394 cmd.Init(GL_ACTIVE_TEXTURE, shared_memory_id_, kInvalidSharedMemoryOffset);
1395 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 1395 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1396 EXPECT_EQ(0u, result->size); 1396 EXPECT_EQ(0u, result->size);
1397 } 1397 }
1398 // TODO(gman): GetFragDataLocation
1398 1399
1399 TEST_P(GLES2DecoderTest1, GetFramebufferAttachmentParameterivValidArgs) { 1400 TEST_P(GLES2DecoderTest1, GetFramebufferAttachmentParameterivValidArgs) {
1400 EXPECT_CALL(*gl_, GetError()) 1401 EXPECT_CALL(*gl_, GetError())
1401 .WillOnce(Return(GL_NO_ERROR)) 1402 .WillOnce(Return(GL_NO_ERROR))
1402 .WillOnce(Return(GL_NO_ERROR)) 1403 .WillOnce(Return(GL_NO_ERROR))
1403 .RetiresOnSaturation(); 1404 .RetiresOnSaturation();
1404 SpecializedSetup<cmds::GetFramebufferAttachmentParameteriv, 0>(true); 1405 SpecializedSetup<cmds::GetFramebufferAttachmentParameteriv, 0>(true);
1405 typedef cmds::GetFramebufferAttachmentParameteriv::Result Result; 1406 typedef cmds::GetFramebufferAttachmentParameteriv::Result Result;
1406 Result* result = static_cast<Result*>(shared_memory_address_); 1407 Result* result = static_cast<Result*>(shared_memory_address_);
1407 EXPECT_CALL(*gl_, 1408 EXPECT_CALL(*gl_,
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 cmds::GetTexParameteriv cmd; 1938 cmds::GetTexParameteriv cmd;
1938 cmd.Init(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, shared_memory_id_, 1939 cmd.Init(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, shared_memory_id_,
1939 kInvalidSharedMemoryOffset); 1940 kInvalidSharedMemoryOffset);
1940 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 1941 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1941 EXPECT_EQ(0u, result->size); 1942 EXPECT_EQ(0u, result->size);
1942 } 1943 }
1943 // TODO(gman): GetUniformfv 1944 // TODO(gman): GetUniformfv
1944 1945
1945 // TODO(gman): GetUniformiv 1946 // TODO(gman): GetUniformiv
1946 1947
1947 // TODO(gman): GetUniformLocation
1948
1949 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 1948 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698