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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 std::string gl_version; | 192 std::string gl_version; |
193 bool has_alpha; | 193 bool has_alpha; |
194 bool has_depth; | 194 bool has_depth; |
195 bool has_stencil; | 195 bool has_stencil; |
196 bool request_alpha; | 196 bool request_alpha; |
197 bool request_depth; | 197 bool request_depth; |
198 bool request_stencil; | 198 bool request_stencil; |
199 bool bind_generates_resource; | 199 bool bind_generates_resource; |
200 bool lose_context_when_out_of_memory; | 200 bool lose_context_when_out_of_memory; |
201 bool use_native_vao; // default is true. | 201 bool use_native_vao; // default is true. |
| 202 unsigned webgl_version; // default to 0, i.e., not WebGL context. |
202 }; | 203 }; |
203 | 204 |
204 void InitDecoder(const InitState& init); | 205 void InitDecoder(const InitState& init); |
205 void InitDecoderWithCommandLine(const InitState& init, | 206 void InitDecoderWithCommandLine(const InitState& init, |
206 const base::CommandLine* command_line); | 207 const base::CommandLine* command_line); |
207 | 208 |
208 void ResetDecoder(); | 209 void ResetDecoder(); |
209 | 210 |
210 const ContextGroup& group() const { | 211 const ContextGroup& group() const { |
211 return *group_.get(); | 212 return *group_.get(); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 }; | 684 }; |
684 | 685 |
685 // SpecializedSetup specializations that are needed in multiple unittest files. | 686 // SpecializedSetup specializations that are needed in multiple unittest files. |
686 template <> | 687 template <> |
687 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 688 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
688 | 689 |
689 } // namespace gles2 | 690 } // namespace gles2 |
690 } // namespace gpu | 691 } // namespace gpu |
691 | 692 |
692 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 693 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |