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

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

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
11 // It is included by gles2_cmd_decoder_unittest_base.cc 11 // It is included by gles2_cmd_decoder_unittest_base.cc
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_ 12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_ 13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
14 14
15 void GLES2DecoderTestBase::SetupInitCapabilitiesExpectations() { 15 void GLES2DecoderTestBase::SetupInitCapabilitiesExpectations(bool es3_capable) {
16 ExpectEnableDisable(GL_BLEND, false); 16 ExpectEnableDisable(GL_BLEND, false);
17 ExpectEnableDisable(GL_CULL_FACE, false); 17 ExpectEnableDisable(GL_CULL_FACE, false);
18 ExpectEnableDisable(GL_DEPTH_TEST, false); 18 ExpectEnableDisable(GL_DEPTH_TEST, false);
19 ExpectEnableDisable(GL_DITHER, true); 19 ExpectEnableDisable(GL_DITHER, true);
20 ExpectEnableDisable(GL_POLYGON_OFFSET_FILL, false); 20 ExpectEnableDisable(GL_POLYGON_OFFSET_FILL, false);
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) {
26 ExpectEnableDisable(GL_RASTERIZER_DISCARD, false);
27 }
25 } 28 }
26 29
27 void GLES2DecoderTestBase::SetupInitStateExpectations() { 30 void GLES2DecoderTestBase::SetupInitStateExpectations() {
28 EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f)) 31 EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f))
29 .Times(1) 32 .Times(1)
30 .RetiresOnSaturation(); 33 .RetiresOnSaturation();
31 EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD)) 34 EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD))
32 .Times(1) 35 .Times(1)
33 .RetiresOnSaturation(); 36 .RetiresOnSaturation();
34 EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO)) 37 EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO))
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 .RetiresOnSaturation(); 99 .RetiresOnSaturation();
97 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP)) 100 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP))
98 .Times(1) 101 .Times(1)
99 .RetiresOnSaturation(); 102 .RetiresOnSaturation();
100 EXPECT_CALL(*gl_, 103 EXPECT_CALL(*gl_,
101 Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) 104 Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
102 .Times(1) 105 .Times(1)
103 .RetiresOnSaturation(); 106 .RetiresOnSaturation();
104 } 107 }
105 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_ 108 #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_autogen.h ('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