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

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

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add kGLImplementationMockGL case to gl_image_android.cc. Created 8 years, 2 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 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1764 1764
1765 Cmds expected; 1765 Cmds expected;
1766 for (int jj = 0; jj < 64; ++jj) { 1766 for (int jj = 0; jj < 64; ++jj) {
1767 expected.data[jj] = static_cast<GLbyte>(jj); 1767 expected.data[jj] = static_cast<GLbyte>(jj);
1768 } 1768 }
1769 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]); 1769 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]);
1770 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]); 1770 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]);
1771 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1771 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1772 } 1772 }
1773 // TODO: Implement unit test for BindUniformLocationCHROMIUM 1773 // TODO: Implement unit test for BindUniformLocationCHROMIUM
1774
1775 TEST_F(GLES2ImplementationTest, BindTexImage2DCHROMIUM) {
1776 struct Cmds {
1777 BindTexImage2DCHROMIUM cmd;
1778 };
1779 Cmds expected;
1780 expected.cmd.Init(GL_TEXTURE_2D, 2);
1781
1782 gl_->BindTexImage2DCHROMIUM(GL_TEXTURE_2D, 2);
1783 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1784 }
1785
1786 TEST_F(GLES2ImplementationTest, ReleaseTexImage2DCHROMIUM) {
1787 struct Cmds {
1788 ReleaseTexImage2DCHROMIUM cmd;
1789 };
1790 Cmds expected;
1791 expected.cmd.Init(GL_TEXTURE_2D, 2);
1792
1793 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2);
1794 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1795 }
1774 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1796 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1775 1797
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698