Chromium Code Reviews| 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ |
| 7 | 7 |
| 8 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 10 #include "gpu/command_buffer/service/buffer_manager.h" | 10 #include "gpu/command_buffer/service/buffer_manager.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 GLES2DecoderRGBBackbufferTest() {} | 58 GLES2DecoderRGBBackbufferTest() {} |
| 59 | 59 |
| 60 void SetUp() override; | 60 void SetUp() override; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class GLES2DecoderManualInitTest : public GLES2DecoderWithShaderTest { | 63 class GLES2DecoderManualInitTest : public GLES2DecoderWithShaderTest { |
| 64 public: | 64 public: |
| 65 GLES2DecoderManualInitTest() {} | 65 GLES2DecoderManualInitTest() {} |
| 66 | 66 |
| 67 // Override default setup so nothing gets setup. | 67 // Override default setup so nothing gets setup. |
| 68 void SetUp() override; | 68 void SetUp() override {} |
| 69 | 69 |
| 70 void DirtyStateMaskTest(GLuint color_bits, | 70 void DirtyStateMaskTest(GLuint color_bits, |
| 71 bool depth_mask, | 71 bool depth_mask, |
| 72 GLuint front_stencil_mask, | 72 GLuint front_stencil_mask, |
| 73 GLuint back_stencil_mask); | 73 GLuint back_stencil_mask); |
| 74 void EnableDisableTest(GLenum cap, bool enable, bool expect_set); | 74 void EnableDisableTest(GLenum cap, bool enable, bool expect_set); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 class GLES3DecoderTest : public GLES2DecoderTest { | 77 class GLES3DecoderTest : public GLES2DecoderTest { |
| 78 public: | 78 public: |
| 79 GLES3DecoderTest() {} | 79 GLES3DecoderTest() { shader_language_version_ = 300; } |
| 80 | 80 |
| 81 // Override default setup so ES3 capabilities are enabled by default. | 81 // Override default setup so ES3 capabilities are enabled by default. |
| 82 void SetUp() override; | 82 void SetUp() override; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 class GLES3DecoderWithESSL3ShaderTest : public GLES2DecoderWithShaderTestBase { | 85 class GLES3DecoderWithShaderTest : public GLES2DecoderWithShaderTest { |
| 86 public: | 86 public: |
| 87 GLES3DecoderWithESSL3ShaderTest() { shader_language_version_ = 300; } | 87 GLES3DecoderWithShaderTest() { shader_language_version_ = 300; } |
| 88 | |
| 89 // Override default setup so ES3 capabilities are enabled by default. | |
| 88 void SetUp() override; | 90 void SetUp() override; |
| 89 }; | 91 }; |
| 90 | 92 |
| 93 class GLES3DecoderRGBBackbufferTest : public GLES2DecoderRGBBackbufferTest { | |
| 94 public: | |
| 95 GLES3DecoderRGBBackbufferTest() { shader_language_version_ = 300; } | |
| 96 | |
| 97 // Override default setup so ES3 capabilities are enabled by default. | |
| 98 void SetUp() override; | |
| 99 }; | |
| 100 | |
| 101 class GLES3DecoderManualInitTest : public GLES2DecoderManualInitTest { | |
| 102 public: | |
| 103 GLES3DecoderManualInitTest() { shader_language_version_ = 300; } | |
| 104 | |
| 105 // Override default setup so ES3 capabilities are enabled by default. | |
|
Zhenyao Mo
2016/10/26 22:01:50
This comment is wrong because you did nothing in t
Kai Ninomiya
2016/10/26 22:10:17
Done.
| |
| 106 void SetUp() override {} | |
| 107 }; | |
| 108 | |
| 91 } // namespace gles2 | 109 } // namespace gles2 |
| 92 } // namespace gpu | 110 } // namespace gpu |
| 93 | 111 |
| 94 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ | 112 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ |
| OLD | NEW |