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

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

Issue 11301006: automate more GL state handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT!
8
9 // It is included by gles2_cmd_decoder_unittest_base.cc
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
11 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
12
13 void GLES2DecoderTestBase::SetupInitCapabilitiesExpectations() {
14 ExpectEnableDisable(GL_BLEND, false);
15 ExpectEnableDisable(GL_CULL_FACE, false);
16 ExpectEnableDisable(GL_DEPTH_TEST, false);
17 ExpectEnableDisable(GL_DITHER, true);
18 ExpectEnableDisable(GL_POLYGON_OFFSET_FILL, false);
19 ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_COVERAGE, false);
20 ExpectEnableDisable(GL_SAMPLE_COVERAGE, false);
21 ExpectEnableDisable(GL_SCISSOR_TEST, false);
22 ExpectEnableDisable(GL_STENCIL_TEST, false);
23 }
24
25 void GLES2DecoderTestBase::SetupInitStateExpectations() {
26 EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f))
27 .Times(1)
28 .RetiresOnSaturation();
29 EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD))
30 .Times(1)
31 .RetiresOnSaturation();
32 EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO))
33 .Times(1)
34 .RetiresOnSaturation();
35 EXPECT_CALL(*gl_, ClearColor(0.0f, 0.0f, 0.0f, 0.0f))
36 .Times(1)
37 .RetiresOnSaturation();
38 EXPECT_CALL(*gl_, ClearDepth(1.0f))
39 .Times(1)
40 .RetiresOnSaturation();
41 EXPECT_CALL(*gl_, ClearStencil(0))
42 .Times(1)
43 .RetiresOnSaturation();
44 EXPECT_CALL(*gl_, ColorMask(true, true, true, true))
45 .Times(1)
46 .RetiresOnSaturation();
47 EXPECT_CALL(*gl_, CullFace(GL_BACK))
48 .Times(1)
49 .RetiresOnSaturation();
50 EXPECT_CALL(*gl_, DepthFunc(GL_LESS))
51 .Times(1)
52 .RetiresOnSaturation();
53 EXPECT_CALL(*gl_, DepthMask(true))
54 .Times(1)
55 .RetiresOnSaturation();
56 EXPECT_CALL(*gl_, DepthRange(0.0f, 1.0f))
57 .Times(1)
58 .RetiresOnSaturation();
59 EXPECT_CALL(*gl_, FrontFace(GL_CCW))
60 .Times(1)
61 .RetiresOnSaturation();
62 EXPECT_CALL(*gl_, LineWidth(1.0f))
63 .Times(1)
64 .RetiresOnSaturation();
65 EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f))
66 .Times(1)
67 .RetiresOnSaturation();
68 EXPECT_CALL(*gl_, SampleCoverage(0.0f, false))
69 .Times(1)
70 .RetiresOnSaturation();
71 EXPECT_CALL(
72 *gl_, Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
73 .Times(1)
74 .RetiresOnSaturation();
75 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU))
76 .Times(1)
77 .RetiresOnSaturation();
78 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU))
79 .Times(1)
80 .RetiresOnSaturation();
81 EXPECT_CALL(*gl_, StencilMaskSeparate(GL_FRONT, 0xFFFFFFFFU))
82 .Times(1)
83 .RetiresOnSaturation();
84 EXPECT_CALL(*gl_, StencilMaskSeparate(GL_BACK, 0xFFFFFFFFU))
85 .Times(1)
86 .RetiresOnSaturation();
87 EXPECT_CALL(*gl_, StencilOpSeparate(GL_FRONT, GL_KEEP, GL_KEEP, GL_KEEP))
88 .Times(1)
89 .RetiresOnSaturation();
90 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP))
91 .Times(1)
92 .RetiresOnSaturation();
93 EXPECT_CALL(
94 *gl_, Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
95 .Times(1)
96 .RetiresOnSaturation();
97 }
98 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
99
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698