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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_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: fix windows build Created 5 years, 5 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 26 matching lines...) Expand all
37 37
38 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, 38 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering,
39 MatrixLoadIdentityCHROMIUMValidArgs) { 39 MatrixLoadIdentityCHROMIUMValidArgs) {
40 EXPECT_CALL(*gl_, MatrixLoadIdentityEXT(GL_PATH_PROJECTION_CHROMIUM)); 40 EXPECT_CALL(*gl_, MatrixLoadIdentityEXT(GL_PATH_PROJECTION_CHROMIUM));
41 SpecializedSetup<cmds::MatrixLoadIdentityCHROMIUM, 0>(true); 41 SpecializedSetup<cmds::MatrixLoadIdentityCHROMIUM, 0>(true);
42 cmds::MatrixLoadIdentityCHROMIUM cmd; 42 cmds::MatrixLoadIdentityCHROMIUM cmd;
43 cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 43 cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
44 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 44 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
45 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 45 EXPECT_EQ(GL_NO_ERROR, GetGLError());
46 } 46 }
47 // TODO(gman): GenPathsCHROMIUM
48
49 // TODO(gman): DeletePathsCHROMIUM
50
51 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, IsPathCHROMIUMValidArgs) {
52 EXPECT_CALL(*gl_, IsPathNV(kServicePathId));
53 SpecializedSetup<cmds::IsPathCHROMIUM, 0>(true);
54 cmds::IsPathCHROMIUM cmd;
55 cmd.Init(client_path_id_, shared_memory_id_, shared_memory_offset_);
56 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
57 EXPECT_EQ(GL_NO_ERROR, GetGLError());
58 }
47 59
60 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering,
61 IsPathCHROMIUMInvalidArgsBadSharedMemoryId) {
62 EXPECT_CALL(*gl_, IsPathNV(kServicePathId)).Times(0);
63 SpecializedSetup<cmds::IsPathCHROMIUM, 0>(false);
64 cmds::IsPathCHROMIUM cmd;
65 cmd.Init(client_path_id_, kInvalidSharedMemoryId, shared_memory_offset_);
66 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
67 cmd.Init(client_path_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
68 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
69 }
70 // TODO(gman): PathCommandsCHROMIUM
71
72 // TODO(gman): PathParameterfCHROMIUM
73
74 // TODO(gman): PathParameteriCHROMIUM
75
76 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering,
77 PathStencilFuncCHROMIUMValidArgs) {
78 EXPECT_CALL(*gl_, PathStencilFuncNV(GL_NEVER, 2, 3));
79 SpecializedSetup<cmds::PathStencilFuncCHROMIUM, 0>(true);
80 cmds::PathStencilFuncCHROMIUM cmd;
81 cmd.Init(GL_NEVER, 2, 3);
82 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
83 EXPECT_EQ(GL_NO_ERROR, GetGLError());
84 }
85 // TODO(gman): StencilFillPathCHROMIUM
86
87 // TODO(gman): StencilStrokePathCHROMIUM
88
89 // TODO(gman): CoverFillPathCHROMIUM
90
91 // TODO(gman): CoverStrokePathCHROMIUM
92
93 // TODO(gman): StencilThenCoverFillPathCHROMIUM
94
95 // TODO(gman): StencilThenCoverStrokePathCHROMIUM
96
48 TEST_P(GLES2DecoderTestWithBlendEquationAdvanced, BlendBarrierKHRValidArgs) { 97 TEST_P(GLES2DecoderTestWithBlendEquationAdvanced, BlendBarrierKHRValidArgs) {
49 EXPECT_CALL(*gl_, BlendBarrierKHR()); 98 EXPECT_CALL(*gl_, BlendBarrierKHR());
50 SpecializedSetup<cmds::BlendBarrierKHR, 0>(true); 99 SpecializedSetup<cmds::BlendBarrierKHR, 0>(true);
51 cmds::BlendBarrierKHR cmd; 100 cmds::BlendBarrierKHR cmd;
52 cmd.Init(); 101 cmd.Init();
53 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 102 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
54 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 103 EXPECT_EQ(GL_NO_ERROR, GetGLError());
55 } 104 }
56 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTO GEN_H_ 105 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTO GEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698