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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 const char** str, | 190 const char** str, |
191 GLsizei count_in_header, | 191 GLsizei count_in_header, |
192 char str_end); | 192 char str_end); |
193 | 193 |
194 void set_memory_tracker(MemoryTracker* memory_tracker) { | 194 void set_memory_tracker(MemoryTracker* memory_tracker) { |
195 memory_tracker_ = memory_tracker; | 195 memory_tracker_ = memory_tracker; |
196 } | 196 } |
197 | 197 |
198 struct InitState { | 198 struct InitState { |
199 InitState(); | 199 InitState(); |
| 200 InitState(const InitState& other); |
200 | 201 |
201 std::string extensions; | 202 std::string extensions; |
202 std::string gl_version; | 203 std::string gl_version; |
203 bool has_alpha; | 204 bool has_alpha; |
204 bool has_depth; | 205 bool has_depth; |
205 bool has_stencil; | 206 bool has_stencil; |
206 bool request_alpha; | 207 bool request_alpha; |
207 bool request_depth; | 208 bool request_depth; |
208 bool request_stencil; | 209 bool request_stencil; |
209 bool bind_generates_resource; | 210 bool bind_generates_resource; |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 }; | 773 }; |
773 | 774 |
774 // SpecializedSetup specializations that are needed in multiple unittest files. | 775 // SpecializedSetup specializations that are needed in multiple unittest files. |
775 template <> | 776 template <> |
776 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 777 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
777 | 778 |
778 } // namespace gles2 | 779 } // namespace gles2 |
779 } // namespace gpu | 780 } // namespace gpu |
780 | 781 |
781 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 782 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |