| 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  | 
|   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(bool es3_capable) { |   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   if (group_->feature_info()->feature_flags().ext_srgb_write_control) { | 
 |   21     ExpectEnableDisable(GL_FRAMEBUFFER_SRGB_EXT, true); | 
 |   22   } | 
|   20   ExpectEnableDisable(GL_POLYGON_OFFSET_FILL, false); |   23   ExpectEnableDisable(GL_POLYGON_OFFSET_FILL, false); | 
|   21   ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_COVERAGE, false); |   24   ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_COVERAGE, false); | 
|   22   ExpectEnableDisable(GL_SAMPLE_COVERAGE, false); |   25   ExpectEnableDisable(GL_SAMPLE_COVERAGE, false); | 
|   23   ExpectEnableDisable(GL_SCISSOR_TEST, false); |   26   ExpectEnableDisable(GL_SCISSOR_TEST, false); | 
|   24   ExpectEnableDisable(GL_STENCIL_TEST, false); |   27   ExpectEnableDisable(GL_STENCIL_TEST, false); | 
|   25   if (group_->feature_info()->feature_flags().ext_multisample_compatibility) { |   28   if (group_->feature_info()->feature_flags().ext_multisample_compatibility) { | 
|   26     ExpectEnableDisable(GL_MULTISAMPLE_EXT, true); |   29     ExpectEnableDisable(GL_MULTISAMPLE_EXT, true); | 
|   27   } |   30   } | 
|   28   if (group_->feature_info()->feature_flags().ext_multisample_compatibility) { |   31   if (group_->feature_info()->feature_flags().ext_multisample_compatibility) { | 
|   29     ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_ONE_EXT, false); |   32     ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_ONE_EXT, false); | 
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  122   EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP)) |  125   EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP)) | 
|  123       .Times(1) |  126       .Times(1) | 
|  124       .RetiresOnSaturation(); |  127       .RetiresOnSaturation(); | 
|  125   EXPECT_CALL(*gl_, |  128   EXPECT_CALL(*gl_, | 
|  126               Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) |  129               Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight)) | 
|  127       .Times(1) |  130       .Times(1) | 
|  128       .RetiresOnSaturation(); |  131       .RetiresOnSaturation(); | 
|  129   SetupInitStateManualExpectations(es3_capable); |  132   SetupInitStateManualExpectations(es3_capable); | 
|  130 } |  133 } | 
|  131 #endif  // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_ |  134 #endif  // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_ | 
| OLD | NEW |