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 "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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 std::string gl_version; | 193 std::string gl_version; |
194 bool has_alpha; | 194 bool has_alpha; |
195 bool has_depth; | 195 bool has_depth; |
196 bool has_stencil; | 196 bool has_stencil; |
197 bool request_alpha; | 197 bool request_alpha; |
198 bool request_depth; | 198 bool request_depth; |
199 bool request_stencil; | 199 bool request_stencil; |
200 bool bind_generates_resource; | 200 bool bind_generates_resource; |
201 bool lose_context_when_out_of_memory; | 201 bool lose_context_when_out_of_memory; |
202 bool use_native_vao; // default is true. | 202 bool use_native_vao; // default is true. |
203 unsigned webgl_version; // default to 0, i.e., not WebGL context. | 203 ContextType context_type; |
204 }; | 204 }; |
205 | 205 |
206 void InitDecoder(const InitState& init); | 206 void InitDecoder(const InitState& init); |
207 void InitDecoderWithCommandLine(const InitState& init, | 207 void InitDecoderWithCommandLine(const InitState& init, |
208 const base::CommandLine* command_line); | 208 const base::CommandLine* command_line); |
209 | 209 |
210 void ResetDecoder(); | 210 void ResetDecoder(); |
211 | 211 |
212 const ContextGroup& group() const { | 212 const ContextGroup& group() const { |
213 return *group_.get(); | 213 return *group_.get(); |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 }; | 721 }; |
722 | 722 |
723 // SpecializedSetup specializations that are needed in multiple unittest files. | 723 // SpecializedSetup specializations that are needed in multiple unittest files. |
724 template <> | 724 template <> |
725 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 725 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
726 | 726 |
727 } // namespace gles2 | 727 } // namespace gles2 |
728 } // namespace gpu | 728 } // namespace gpu |
729 | 729 |
730 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 730 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |