OLD | NEW |
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 10 matching lines...) Expand all Loading... |
21 ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_COVERAGE, false); | 21 ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_COVERAGE, false); |
22 ExpectEnableDisable(GL_SAMPLE_COVERAGE, false); | 22 ExpectEnableDisable(GL_SAMPLE_COVERAGE, false); |
23 ExpectEnableDisable(GL_SCISSOR_TEST, false); | 23 ExpectEnableDisable(GL_SCISSOR_TEST, false); |
24 ExpectEnableDisable(GL_STENCIL_TEST, false); | 24 ExpectEnableDisable(GL_STENCIL_TEST, false); |
25 if (es3_capable) { | 25 if (es3_capable) { |
26 ExpectEnableDisable(GL_RASTERIZER_DISCARD, false); | 26 ExpectEnableDisable(GL_RASTERIZER_DISCARD, false); |
27 ExpectEnableDisable(GL_PRIMITIVE_RESTART_FIXED_INDEX, false); | 27 ExpectEnableDisable(GL_PRIMITIVE_RESTART_FIXED_INDEX, false); |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 void GLES2DecoderTestBase::SetupInitStateExpectations() { | 31 void GLES2DecoderTestBase::SetupInitStateExpectations(bool es3_capable) { |
32 EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f)) | 32 EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f)) |
33 .Times(1) | 33 .Times(1) |
34 .RetiresOnSaturation(); | 34 .RetiresOnSaturation(); |
35 EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD)) | 35 EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD)) |
36 .Times(1) | 36 .Times(1) |
37 .RetiresOnSaturation(); | 37 .RetiresOnSaturation(); |
38 EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO)) | 38 EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO)) |
39 .Times(1) | 39 .Times(1) |
40 .RetiresOnSaturation(); | 40 .RetiresOnSaturation(); |
41 EXPECT_CALL(*gl_, ClearColor(0.0f, 0.0f, 0.0f, 0.0f)) | 41 EXPECT_CALL(*gl_, ClearColor(0.0f, 0.0f, 0.0f, 0.0f)) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 EXPECT_CALL(*gl_, PathStencilFuncNV(GL_ALWAYS, 0, 0xFFFFFFFFU)) | 75 EXPECT_CALL(*gl_, PathStencilFuncNV(GL_ALWAYS, 0, 0xFFFFFFFFU)) |
76 .Times(1) | 76 .Times(1) |
77 .RetiresOnSaturation(); | 77 .RetiresOnSaturation(); |
78 } | 78 } |
79 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ALIGNMENT, 4)) | 79 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ALIGNMENT, 4)) |
80 .Times(1) | 80 .Times(1) |
81 .RetiresOnSaturation(); | 81 .RetiresOnSaturation(); |
82 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ALIGNMENT, 4)) | 82 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ALIGNMENT, 4)) |
83 .Times(1) | 83 .Times(1) |
84 .RetiresOnSaturation(); | 84 .RetiresOnSaturation(); |
| 85 if (es3_capable) { |
| 86 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ROW_LENGTH, 0)) |
| 87 .Times(1) |
| 88 .RetiresOnSaturation(); |
| 89 } |
| 90 if (es3_capable) { |
| 91 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_SKIP_PIXELS, 0)) |
| 92 .Times(1) |
| 93 .RetiresOnSaturation(); |
| 94 } |
| 95 if (es3_capable) { |
| 96 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_SKIP_ROWS, 0)) |
| 97 .Times(1) |
| 98 .RetiresOnSaturation(); |
| 99 } |
| 100 if (es3_capable) { |
| 101 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ROW_LENGTH, 0)) |
| 102 .Times(1) |
| 103 .RetiresOnSaturation(); |
| 104 } |
| 105 if (es3_capable) { |
| 106 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_IMAGE_HEIGHT, 0)) |
| 107 .Times(1) |
| 108 .RetiresOnSaturation(); |
| 109 } |
| 110 if (es3_capable) { |
| 111 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_SKIP_PIXELS, 0)) |
| 112 .Times(1) |
| 113 .RetiresOnSaturation(); |
| 114 } |
| 115 if (es3_capable) { |
| 116 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_SKIP_ROWS, 0)) |
| 117 .Times(1) |
| 118 .RetiresOnSaturation(); |
| 119 } |
| 120 if (es3_capable) { |
| 121 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_SKIP_IMAGES, 0)) |
| 122 .Times(1) |
| 123 .RetiresOnSaturation(); |
| 124 } |
85 EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f)).Times(1).RetiresOnSaturation(); | 125 EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f)).Times(1).RetiresOnSaturation(); |
86 EXPECT_CALL(*gl_, SampleCoverage(1.0f, false)).Times(1).RetiresOnSaturation(); | 126 EXPECT_CALL(*gl_, SampleCoverage(1.0f, false)).Times(1).RetiresOnSaturation(); |
87 EXPECT_CALL(*gl_, | 127 EXPECT_CALL(*gl_, |
88 Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) | 128 Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) |
89 .Times(1) | 129 .Times(1) |
90 .RetiresOnSaturation(); | 130 .RetiresOnSaturation(); |
91 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU)) | 131 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU)) |
92 .Times(1) | 132 .Times(1) |
93 .RetiresOnSaturation(); | 133 .RetiresOnSaturation(); |
94 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU)) | 134 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU)) |
(...skipping 10 matching lines...) Expand all Loading... |
105 .RetiresOnSaturation(); | 145 .RetiresOnSaturation(); |
106 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP)) | 146 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP)) |
107 .Times(1) | 147 .Times(1) |
108 .RetiresOnSaturation(); | 148 .RetiresOnSaturation(); |
109 EXPECT_CALL(*gl_, | 149 EXPECT_CALL(*gl_, |
110 Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) | 150 Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) |
111 .Times(1) | 151 .Times(1) |
112 .RetiresOnSaturation(); | 152 .RetiresOnSaturation(); |
113 } | 153 } |
114 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_ | 154 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_ |
OLD | NEW |