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 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 has_depth(false), | 159 has_depth(false), |
160 has_stencil(false), | 160 has_stencil(false), |
161 request_alpha(false), | 161 request_alpha(false), |
162 request_depth(false), | 162 request_depth(false), |
163 request_stencil(false), | 163 request_stencil(false), |
164 bind_generates_resource(false), | 164 bind_generates_resource(false), |
165 lose_context_when_out_of_memory(false), | 165 lose_context_when_out_of_memory(false), |
166 use_native_vao(true), | 166 use_native_vao(true), |
167 context_type(CONTEXT_TYPE_OPENGLES2) {} | 167 context_type(CONTEXT_TYPE_OPENGLES2) {} |
168 | 168 |
| 169 GLES2DecoderTestBase::InitState::InitState(const InitState& other) = default; |
| 170 |
169 void GLES2DecoderTestBase::InitDecoder(const InitState& init) { | 171 void GLES2DecoderTestBase::InitDecoder(const InitState& init) { |
170 InitDecoderWithCommandLine(init, NULL); | 172 InitDecoderWithCommandLine(init, NULL); |
171 } | 173 } |
172 | 174 |
173 void GLES2DecoderTestBase::InitDecoderWithCommandLine( | 175 void GLES2DecoderTestBase::InitDecoderWithCommandLine( |
174 const InitState& init, | 176 const InitState& init, |
175 const base::CommandLine* command_line) { | 177 const base::CommandLine* command_line) { |
176 InitState normalized_init = init; | 178 InitState normalized_init = init; |
177 NormalizeInitState(&normalized_init); | 179 NormalizeInitState(&normalized_init); |
178 // For easier substring/extension matching | 180 // For easier substring/extension matching |
(...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2033 SetupDefaultProgram(); | 2035 SetupDefaultProgram(); |
2034 } | 2036 } |
2035 | 2037 |
2036 // Include the auto-generated part of this file. We split this because it means | 2038 // Include the auto-generated part of this file. We split this because it means |
2037 // we can easily edit the non-auto generated parts right here in this file | 2039 // we can easily edit the non-auto generated parts right here in this file |
2038 // instead of having to edit some template or the code generator. | 2040 // instead of having to edit some template or the code generator. |
2039 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 2041 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
2040 | 2042 |
2041 } // namespace gles2 | 2043 } // namespace gles2 |
2042 } // namespace gpu | 2044 } // namespace gpu |
OLD | NEW |