Home | History | Annotate | Download | only in service
      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
      3 // found in the LICENSE file.
      4 
      5 // This file is auto-generated from
      6 // gpu/command_buffer/build_gles2_cmd_buffer.py
      7 // It's formatted by clang-format using chromium coding style:
      8 //    clang-format -i -style=chromium filename
      9 // DO NOT EDIT!
     10 
     11 // It is included by gles2_cmd_decoder_unittest_base.cc
     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_
     14 
     15 void GLES2DecoderTestBase::SetupInitCapabilitiesExpectations() {
     16   ExpectEnableDisable(GL_BLEND, false);
     17   ExpectEnableDisable(GL_CULL_FACE, false);
     18   ExpectEnableDisable(GL_DEPTH_TEST, false);
     19   ExpectEnableDisable(GL_DITHER, true);
     20   ExpectEnableDisable(GL_POLYGON_OFFSET_FILL, false);
     21   ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_COVERAGE, false);
     22   ExpectEnableDisable(GL_SAMPLE_COVERAGE, false);
     23   ExpectEnableDisable(GL_SCISSOR_TEST, false);
     24   ExpectEnableDisable(GL_STENCIL_TEST, false);
     25 }
     26 
     27 void GLES2DecoderTestBase::SetupInitStateExpectations() {
     28   EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f))
     29       .Times(1)
     30       .RetiresOnSaturation();
     31   EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD))
     32       .Times(1)
     33       .RetiresOnSaturation();
     34   EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO))
     35       .Times(1)
     36       .RetiresOnSaturation();
     37   EXPECT_CALL(*gl_, ClearColor(0.0f, 0.0f, 0.0f, 0.0f))
     38       .Times(1)
     39       .RetiresOnSaturation();
     40   EXPECT_CALL(*gl_, ClearDepth(1.0f)).Times(1).RetiresOnSaturation();
     41   EXPECT_CALL(*gl_, ClearStencil(0)).Times(1).RetiresOnSaturation();
     42   EXPECT_CALL(*gl_, ColorMask(true, true, true, true))
     43       .Times(1)
     44       .RetiresOnSaturation();
     45   EXPECT_CALL(*gl_, CullFace(GL_BACK)).Times(1).RetiresOnSaturation();
     46   EXPECT_CALL(*gl_, DepthFunc(GL_LESS)).Times(1).RetiresOnSaturation();
     47   EXPECT_CALL(*gl_, DepthMask(true)).Times(1).RetiresOnSaturation();
     48   EXPECT_CALL(*gl_, DepthRange(0.0f, 1.0f)).Times(1).RetiresOnSaturation();
     49   EXPECT_CALL(*gl_, FrontFace(GL_CCW)).Times(1).RetiresOnSaturation();
     50   EXPECT_CALL(*gl_, Hint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE))
     51       .Times(1)
     52       .RetiresOnSaturation();
     53   EXPECT_CALL(*gl_, LineWidth(1.0f)).Times(1).RetiresOnSaturation();
     54   EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ALIGNMENT, 4))
     55       .Times(1)
     56       .RetiresOnSaturation();
     57   EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ALIGNMENT, 4))
     58       .Times(1)
     59       .RetiresOnSaturation();
     60   EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f)).Times(1).RetiresOnSaturation();
     61   EXPECT_CALL(*gl_, SampleCoverage(1.0f, false)).Times(1).RetiresOnSaturation();
     62   EXPECT_CALL(*gl_,
     63               Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
     64       .Times(1)
     65       .RetiresOnSaturation();
     66   EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU))
     67       .Times(1)
     68       .RetiresOnSaturation();
     69   EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU))
     70       .Times(1)
     71       .RetiresOnSaturation();
     72   EXPECT_CALL(*gl_, StencilMaskSeparate(GL_FRONT, 0xFFFFFFFFU))
     73       .Times(1)
     74       .RetiresOnSaturation();
     75   EXPECT_CALL(*gl_, StencilMaskSeparate(GL_BACK, 0xFFFFFFFFU))
     76       .Times(1)
     77       .RetiresOnSaturation();
     78   EXPECT_CALL(*gl_, StencilOpSeparate(GL_FRONT, GL_KEEP, GL_KEEP, GL_KEEP))
     79       .Times(1)
     80       .RetiresOnSaturation();
     81   EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP))
     82       .Times(1)
     83       .RetiresOnSaturation();
     84   EXPECT_CALL(*gl_,
     85               Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
     86       .Times(1)
     87       .RetiresOnSaturation();
     88 }
     89 #endif  // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
     90