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

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

Issue 10836185: Implement GL_EXT_debug_marker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 GLuint data[2]; 1587 GLuint data[2];
1588 }; 1588 };
1589 Cmds expected; 1589 Cmds expected;
1590 expected.del.Init(arraysize(ids), &ids[0]); 1590 expected.del.Init(arraysize(ids), &ids[0]);
1591 expected.data[0] = kQueriesStartId; 1591 expected.data[0] = kQueriesStartId;
1592 expected.data[1] = kQueriesStartId + 1; 1592 expected.data[1] = kQueriesStartId + 1;
1593 gl_->DeleteQueriesEXT(arraysize(ids), &ids[0]); 1593 gl_->DeleteQueriesEXT(arraysize(ids), &ids[0]);
1594 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1594 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1595 } 1595 }
1596 // TODO: Implement unit test for BeginQueryEXT 1596 // TODO: Implement unit test for BeginQueryEXT
1597 // TODO: Implement unit test for InsertEventMarkerEXT
1598 // TODO: Implement unit test for PushGroupMarkerEXT
1599
1600 TEST_F(GLES2ImplementationTest, PopGroupMarkerEXT) {
1601 struct Cmds {
1602 PopGroupMarkerEXT cmd;
1603 };
1604 Cmds expected;
1605 expected.cmd.Init();
1606
1607 gl_->PopGroupMarkerEXT();
1608 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1609 }
1597 // TODO: Implement unit test for GenSharedIdsCHROMIUM 1610 // TODO: Implement unit test for GenSharedIdsCHROMIUM
1598 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM 1611 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM
1599 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM 1612 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM
1600 // TODO: Implement unit test for EnableFeatureCHROMIUM 1613 // TODO: Implement unit test for EnableFeatureCHROMIUM
1601 1614
1602 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { 1615 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) {
1603 struct Cmds { 1616 struct Cmds {
1604 ResizeCHROMIUM cmd; 1617 ResizeCHROMIUM cmd;
1605 }; 1618 };
1606 Cmds expected; 1619 Cmds expected;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1692 for (int jj = 0; jj < 64; ++jj) { 1705 for (int jj = 0; jj < 64; ++jj) {
1693 expected.data[jj] = static_cast<GLbyte>(jj); 1706 expected.data[jj] = static_cast<GLbyte>(jj);
1694 } 1707 }
1695 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]); 1708 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]);
1696 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]); 1709 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]);
1697 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1710 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1698 } 1711 }
1699 // TODO: Implement unit test for BindUniformLocationCHROMIUM 1712 // TODO: Implement unit test for BindUniformLocationCHROMIUM
1700 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1713 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1701 1714
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698