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

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

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: rebase Created 6 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
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 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 TEST_F(GLES2ImplementationTest, MatrixLoadIdentityCHROMIUM) { 1862 TEST_F(GLES2ImplementationTest, MatrixLoadIdentityCHROMIUM) {
1863 struct Cmds { 1863 struct Cmds {
1864 cmds::MatrixLoadIdentityCHROMIUM cmd; 1864 cmds::MatrixLoadIdentityCHROMIUM cmd;
1865 }; 1865 };
1866 Cmds expected; 1866 Cmds expected;
1867 expected.cmd.Init(GL_PROJECTION_CHROMIUM); 1867 expected.cmd.Init(GL_PROJECTION_CHROMIUM);
1868 1868
1869 gl_->MatrixLoadIdentityCHROMIUM(GL_PROJECTION_CHROMIUM); 1869 gl_->MatrixLoadIdentityCHROMIUM(GL_PROJECTION_CHROMIUM);
1870 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1870 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1871 } 1871 }
1872 // TODO: Implement unit test for GenPathsCHROMIUM
1873
1874 TEST_F(GLES2ImplementationTest, DeletePathsCHROMIUM) {
1875 struct Cmds {
1876 cmds::DeletePathsCHROMIUM cmd;
1877 };
1878 Cmds expected;
1879 expected.cmd.Init(1, 2);
1880
1881 gl_->DeletePathsCHROMIUM(1, 2);
1882 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1883 }
1884 // TODO: Implement unit test for PathCommandsCHROMIUM
1885
1886 TEST_F(GLES2ImplementationTest, PathParameterfCHROMIUM) {
1887 struct Cmds {
1888 cmds::PathParameterfCHROMIUM cmd;
1889 };
1890 Cmds expected;
1891 expected.cmd.Init(1, GL_PATH_STROKE_WIDTH_CHROMIUM, 3);
1892
1893 gl_->PathParameterfCHROMIUM(1, GL_PATH_STROKE_WIDTH_CHROMIUM, 3);
1894 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1895 }
1896
1897 TEST_F(GLES2ImplementationTest, PathParameteriCHROMIUM) {
1898 struct Cmds {
1899 cmds::PathParameteriCHROMIUM cmd;
1900 };
1901 Cmds expected;
1902 expected.cmd.Init(1, GL_PATH_STROKE_WIDTH_CHROMIUM, 3);
1903
1904 gl_->PathParameteriCHROMIUM(1, GL_PATH_STROKE_WIDTH_CHROMIUM, 3);
1905 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1906 }
1907
1908 TEST_F(GLES2ImplementationTest, PathStencilFuncCHROMIUM) {
1909 struct Cmds {
1910 cmds::PathStencilFuncCHROMIUM cmd;
1911 };
1912 Cmds expected;
1913 expected.cmd.Init(GL_NEVER, 2, 3);
1914
1915 gl_->PathStencilFuncCHROMIUM(GL_NEVER, 2, 3);
1916 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1917 }
1918
1919 TEST_F(GLES2ImplementationTest, StencilFillPathCHROMIUM) {
1920 struct Cmds {
1921 cmds::StencilFillPathCHROMIUM cmd;
1922 };
1923 Cmds expected;
1924 expected.cmd.Init(1, GL_INVERT, 3);
1925
1926 gl_->StencilFillPathCHROMIUM(1, GL_INVERT, 3);
1927 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1928 }
1929 // TODO: Implement unit test for StencilFillPathInstancedCHROMIUM
1930
1931 TEST_F(GLES2ImplementationTest, StencilStrokePathCHROMIUM) {
1932 struct Cmds {
1933 cmds::StencilStrokePathCHROMIUM cmd;
1934 };
1935 Cmds expected;
1936 expected.cmd.Init(1, 2, 3);
1937
1938 gl_->StencilStrokePathCHROMIUM(1, 2, 3);
1939 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1940 }
1941 // TODO: Implement unit test for StencilStrokePathInstancedCHROMIUM
1942 // TODO: Implement unit test for PathTexGenCHROMIUM
1943
1944 TEST_F(GLES2ImplementationTest, CoverFillPathCHROMIUM) {
1945 struct Cmds {
1946 cmds::CoverFillPathCHROMIUM cmd;
1947 };
1948 Cmds expected;
1949 expected.cmd.Init(1, GL_BOUNDING_BOX_CHROMIUM);
1950
1951 gl_->CoverFillPathCHROMIUM(1, GL_BOUNDING_BOX_CHROMIUM);
1952 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1953 }
1954 // TODO: Implement unit test for CoverFillPathInstancedCHROMIUM
1955
1956 TEST_F(GLES2ImplementationTest, CoverStrokePathCHROMIUM) {
1957 struct Cmds {
1958 cmds::CoverStrokePathCHROMIUM cmd;
1959 };
1960 Cmds expected;
1961 expected.cmd.Init(1, GL_BOUNDING_BOX_CHROMIUM);
1962
1963 gl_->CoverStrokePathCHROMIUM(1, GL_BOUNDING_BOX_CHROMIUM);
1964 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1965 }
1966 // TODO: Implement unit test for CoverStrokePathInstancedCHROMIUM
1872 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1967 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698