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

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

Issue 2445323006: command buffer: remove "unsafe" from autogenerated ES3 apis; cleanly separate ES3 tests (Closed)
Patch Set: address comment Created 4 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
OLDNEW
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
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
91 } // namespace gles2 106 } // namespace gles2
92 } // namespace gpu 107 } // namespace gpu
93 108
94 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_ 109 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698