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

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

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Implement DeleteImageBuffersHelper and remove unused GetNativeBufferForGpuMemoryBuffer Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // It is included by gles2_cmd_decoder_unittest_2.cc 9 // It is included by gles2_cmd_decoder_unittest_2.cc
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
11 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 11 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
12 12
13 // TODO(gman): GetUniformLocation
14
15 // TODO(gman): GetUniformLocationImmediate
16
17 // TODO(gman): GetUniformLocationBucket
18
19
20 TEST_F(GLES2DecoderTest2, GetVertexAttribfvValidArgs) {
21 SpecializedSetup<cmds::GetVertexAttribfv, 0>(true);
22 typedef cmds::GetVertexAttribfv::Result Result;
23 Result* result = static_cast<Result*>(shared_memory_address_);
24 result->size = 0;
25 cmds::GetVertexAttribfv cmd;
26 cmd.Init(
27 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_,
28 shared_memory_offset_);
29 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
30 EXPECT_EQ(decoder_->GetGLES2Util()->GLGetNumValuesReturned(
31 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED),
32 result->GetNumResults());
33 EXPECT_EQ(GL_NO_ERROR, GetGLError());
34 }
35
36 TEST_F(GLES2DecoderTest2, GetVertexAttribfvInvalidArgs2_0) {
37 EXPECT_CALL(*gl_, GetVertexAttribfv(_, _, _)).Times(0);
38 SpecializedSetup<cmds::GetVertexAttribfv, 0>(false);
39 cmds::GetVertexAttribfv::Result* result =
40 static_cast<cmds::GetVertexAttribfv::Result*>(shared_memory_address_);
41 result->size = 0;
42 cmds::GetVertexAttribfv cmd;
43 cmd.Init(1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, kInvalidSharedMemoryId, 0);
44 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
45 EXPECT_EQ(0u, result->size);
46 }
47
48 TEST_F(GLES2DecoderTest2, GetVertexAttribfvInvalidArgs2_1) {
49 EXPECT_CALL(*gl_, GetVertexAttribfv(_, _, _)).Times(0);
50 SpecializedSetup<cmds::GetVertexAttribfv, 0>(false);
51 cmds::GetVertexAttribfv::Result* result =
52 static_cast<cmds::GetVertexAttribfv::Result*>(shared_memory_address_);
53 result->size = 0;
54 cmds::GetVertexAttribfv cmd;
55 cmd.Init(
56 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_,
57 kInvalidSharedMemoryOffset);
58 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
59 EXPECT_EQ(0u, result->size);
60 }
13 61
14 TEST_F(GLES2DecoderTest2, GetVertexAttribivValidArgs) { 62 TEST_F(GLES2DecoderTest2, GetVertexAttribivValidArgs) {
15 SpecializedSetup<cmds::GetVertexAttribiv, 0>(true); 63 SpecializedSetup<cmds::GetVertexAttribiv, 0>(true);
16 typedef cmds::GetVertexAttribiv::Result Result; 64 typedef cmds::GetVertexAttribiv::Result Result;
17 Result* result = static_cast<Result*>(shared_memory_address_); 65 Result* result = static_cast<Result*>(shared_memory_address_);
18 result->size = 0; 66 result->size = 0;
19 cmds::GetVertexAttribiv cmd; 67 cmds::GetVertexAttribiv cmd;
20 cmd.Init( 68 cmd.Init(
21 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, 69 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_,
22 shared_memory_offset_); 70 shared_memory_offset_);
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 // TODO(gman): RenderbufferStorageMultisampleEXT 1791 // TODO(gman): RenderbufferStorageMultisampleEXT
1744 // TODO(gman): TexStorage2DEXT 1792 // TODO(gman): TexStorage2DEXT
1745 // TODO(gman): GenQueriesEXT 1793 // TODO(gman): GenQueriesEXT
1746 // TODO(gman): GenQueriesEXTImmediate 1794 // TODO(gman): GenQueriesEXTImmediate
1747 // TODO(gman): DeleteQueriesEXT 1795 // TODO(gman): DeleteQueriesEXT
1748 // TODO(gman): DeleteQueriesEXTImmediate 1796 // TODO(gman): DeleteQueriesEXTImmediate
1749 // TODO(gman): BeginQueryEXT 1797 // TODO(gman): BeginQueryEXT
1750 1798
1751 // TODO(gman): EndQueryEXT 1799 // TODO(gman): EndQueryEXT
1752 1800
1753 // TODO(gman): InsertEventMarkerEXT
1754
1755 // TODO(gman): PushGroupMarkerEXT
1756
1757
1758 TEST_F(GLES2DecoderTest2, PopGroupMarkerEXTValidArgs) {
1759 SpecializedSetup<cmds::PopGroupMarkerEXT, 0>(true);
1760 cmds::PopGroupMarkerEXT cmd;
1761 cmd.Init();
1762 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1763 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1764 }
1765 // TODO(gman): GenVertexArraysOES
1766 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 1801 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
1767 1802
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698