OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 const char** str, | 189 const char** str, |
190 GLsizei count_in_header, | 190 GLsizei count_in_header, |
191 char str_end); | 191 char str_end); |
192 | 192 |
193 void set_memory_tracker(MemoryTracker* memory_tracker) { | 193 void set_memory_tracker(MemoryTracker* memory_tracker) { |
194 memory_tracker_ = memory_tracker; | 194 memory_tracker_ = memory_tracker; |
195 } | 195 } |
196 | 196 |
197 struct InitState { | 197 struct InitState { |
198 InitState(); | 198 InitState(); |
| 199 InitState(const InitState& other); |
199 | 200 |
200 std::string extensions; | 201 std::string extensions; |
201 std::string gl_version; | 202 std::string gl_version; |
202 bool has_alpha; | 203 bool has_alpha; |
203 bool has_depth; | 204 bool has_depth; |
204 bool has_stencil; | 205 bool has_stencil; |
205 bool request_alpha; | 206 bool request_alpha; |
206 bool request_depth; | 207 bool request_depth; |
207 bool request_stencil; | 208 bool request_stencil; |
208 bool bind_generates_resource; | 209 bool bind_generates_resource; |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 }; | 771 }; |
771 | 772 |
772 // SpecializedSetup specializations that are needed in multiple unittest files. | 773 // SpecializedSetup specializations that are needed in multiple unittest files. |
773 template <> | 774 template <> |
774 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 775 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
775 | 776 |
776 } // namespace gles2 | 777 } // namespace gles2 |
777 } // namespace gpu | 778 } // namespace gpu |
778 | 779 |
779 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 780 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |