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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h

Issue 1494553002: Revert of Upgrade PixelStorei to ES3/WebGL2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 10 matching lines...) Expand all
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(bool es3_capable) { 31 void GLES2DecoderTestBase::SetupInitStateExpectations() {
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
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 }
125 EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f)).Times(1).RetiresOnSaturation(); 85 EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f)).Times(1).RetiresOnSaturation();
126 EXPECT_CALL(*gl_, SampleCoverage(1.0f, false)).Times(1).RetiresOnSaturation(); 86 EXPECT_CALL(*gl_, SampleCoverage(1.0f, false)).Times(1).RetiresOnSaturation();
127 EXPECT_CALL(*gl_, 87 EXPECT_CALL(*gl_,
128 Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) 88 Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
129 .Times(1) 89 .Times(1)
130 .RetiresOnSaturation(); 90 .RetiresOnSaturation();
131 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU)) 91 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU))
132 .Times(1) 92 .Times(1)
133 .RetiresOnSaturation(); 93 .RetiresOnSaturation();
134 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU)) 94 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU))
(...skipping 10 matching lines...) Expand all
145 .RetiresOnSaturation(); 105 .RetiresOnSaturation();
146 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP)) 106 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP))
147 .Times(1) 107 .Times(1)
148 .RetiresOnSaturation(); 108 .RetiresOnSaturation();
149 EXPECT_CALL(*gl_, 109 EXPECT_CALL(*gl_,
150 Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) 110 Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
151 .Times(1) 111 .Times(1)
152 .RetiresOnSaturation(); 112 .RetiresOnSaturation();
153 } 113 }
154 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_ 114 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698