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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h

Issue 13604007: Fix large mis-paint when resizing windows aura chrome (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 // This file is included by gles2_implementation.h to declare the 9 // This file is included by gles2_implementation.h to declare the
10 // GL api functions. 10 // GL api functions.
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 Cmds expected; 655 Cmds expected;
656 ExpectedMemoryInfo result1 = GetExpectedResultMemory(4); 656 ExpectedMemoryInfo result1 = GetExpectedResultMemory(4);
657 expected.cmd.Init(123, GL_SHADER_TYPE, result1.id, result1.offset); 657 expected.cmd.Init(123, GL_SHADER_TYPE, result1.id, result1.offset);
658 EXPECT_CALL(*command_buffer(), OnFlush()) 658 EXPECT_CALL(*command_buffer(), OnFlush())
659 .WillOnce(SetMemory(result1.ptr, SizedResultHelper<Result::Type>(1))) 659 .WillOnce(SetMemory(result1.ptr, SizedResultHelper<Result::Type>(1)))
660 .RetiresOnSaturation(); 660 .RetiresOnSaturation();
661 gl_->GetShaderiv(123, GL_SHADER_TYPE, &result); 661 gl_->GetShaderiv(123, GL_SHADER_TYPE, &result);
662 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 662 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
663 EXPECT_EQ(static_cast<Result::Type>(1), result); 663 EXPECT_EQ(static_cast<Result::Type>(1), result);
664 } 664 }
665
666 // TODO: Implement unit test for GetShaderInfoLog 665 // TODO: Implement unit test for GetShaderInfoLog
666 // TODO: Implement unit test for GetShaderPrecisionFormat
667 667
668 TEST_F(GLES2ImplementationTest, GetTexParameterfv) { 668 TEST_F(GLES2ImplementationTest, GetTexParameterfv) {
669 struct Cmds { 669 struct Cmds {
670 cmds::GetTexParameterfv cmd; 670 cmds::GetTexParameterfv cmd;
671 }; 671 };
672 typedef cmds::GetTexParameterfv::Result Result; 672 typedef cmds::GetTexParameterfv::Result Result;
673 Result::Type result = 0; 673 Result::Type result = 0;
674 Cmds expected; 674 Cmds expected;
675 ExpectedMemoryInfo result1 = GetExpectedResultMemory(4); 675 ExpectedMemoryInfo result1 = GetExpectedResultMemory(4);
676 expected.cmd.Init(123, GL_TEXTURE_MAG_FILTER, result1.id, result1.offset); 676 expected.cmd.Init(123, GL_TEXTURE_MAG_FILTER, result1.id, result1.offset);
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 for (int jj = 0; jj < 1; ++jj) { 1810 for (int jj = 0; jj < 1; ++jj) {
1811 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj); 1811 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj);
1812 } 1812 }
1813 } 1813 }
1814 expected.cmd.Init(1, &expected.data[0][0]); 1814 expected.cmd.Init(1, &expected.data[0][0]);
1815 gl_->DrawBuffersEXT(1, &expected.data[0][0]); 1815 gl_->DrawBuffersEXT(1, &expected.data[0][0]);
1816 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1816 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1817 } 1817 }
1818 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1818 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1819 1819
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698