| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 class GLES3DecoderTest : public GLES2DecoderTest { | 73 class GLES3DecoderTest : public GLES2DecoderTest { |
| 74 public: | 74 public: |
| 75 GLES3DecoderTest() { shader_language_version_ = 300; } | 75 GLES3DecoderTest() { shader_language_version_ = 300; } |
| 76 | 76 |
| 77 // Override default setup so ES3 capabilities are enabled by default. | 77 // Override default setup so ES3 capabilities are enabled by default. |
| 78 void SetUp() override; | 78 void SetUp() override; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 class WebGL2DecoderTest : public GLES2DecoderTest { |
| 82 public: |
| 83 WebGL2DecoderTest() { shader_language_version_ = 300; } |
| 84 |
| 85 // Override default setup so ES3 capabilities are enabled by default |
| 86 // and WebGL2 specific rules are enforced. |
| 87 void SetUp() override; |
| 88 }; |
| 89 |
| 81 class GLES3DecoderWithShaderTest : public GLES2DecoderWithShaderTest { | 90 class GLES3DecoderWithShaderTest : public GLES2DecoderWithShaderTest { |
| 82 public: | 91 public: |
| 83 GLES3DecoderWithShaderTest() { shader_language_version_ = 300; } | 92 GLES3DecoderWithShaderTest() { shader_language_version_ = 300; } |
| 84 | 93 |
| 85 // Override default setup so ES3 capabilities are enabled by default. | 94 // Override default setup so ES3 capabilities are enabled by default. |
| 86 void SetUp() override; | 95 void SetUp() override; |
| 87 }; | 96 }; |
| 88 | 97 |
| 89 class GLES3DecoderRGBBackbufferTest : public GLES2DecoderRGBBackbufferTest { | 98 class GLES3DecoderRGBBackbufferTest : public GLES2DecoderRGBBackbufferTest { |
| 90 public: | 99 public: |
| 91 GLES3DecoderRGBBackbufferTest() { shader_language_version_ = 300; } | 100 GLES3DecoderRGBBackbufferTest() { shader_language_version_ = 300; } |
| 92 | 101 |
| 93 // Override default setup so ES3 capabilities are enabled by default. | 102 // Override default setup so ES3 capabilities are enabled by default. |
| 94 void SetUp() override; | 103 void SetUp() override; |
| 95 }; | 104 }; |
| 96 | 105 |
| 97 class GLES3DecoderManualInitTest : public GLES2DecoderManualInitTest { | 106 class GLES3DecoderManualInitTest : public GLES2DecoderManualInitTest { |
| 98 public: | 107 public: |
| 99 GLES3DecoderManualInitTest() { shader_language_version_ = 300; } | 108 GLES3DecoderManualInitTest() { shader_language_version_ = 300; } |
| 100 }; | 109 }; |
| 101 | 110 |
| 102 } // namespace gles2 | 111 } // namespace gles2 |
| 103 } // namespace gpu | 112 } // namespace gpu |
| 104 | 113 |
| 105 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ | 114 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ |
| OLD | NEW |