| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 std::string extensions; | 157 std::string extensions; |
| 158 std::string gl_version; | 158 std::string gl_version; |
| 159 bool has_alpha; | 159 bool has_alpha; |
| 160 bool has_depth; | 160 bool has_depth; |
| 161 bool has_stencil; | 161 bool has_stencil; |
| 162 bool request_alpha; | 162 bool request_alpha; |
| 163 bool request_depth; | 163 bool request_depth; |
| 164 bool request_stencil; | 164 bool request_stencil; |
| 165 bool bind_generates_resource; | 165 bool bind_generates_resource; |
| 166 bool lose_context_when_out_of_memory; | 166 bool lose_context_when_out_of_memory; |
| 167 bool use_native_vao; // default is true. |
| 167 }; | 168 }; |
| 168 | 169 |
| 169 void InitDecoder(const InitState& init); | 170 void InitDecoder(const InitState& init); |
| 170 void InitDecoderWithCommandLine(const InitState& init, | 171 void InitDecoderWithCommandLine(const InitState& init, |
| 171 const base::CommandLine* command_line); | 172 const base::CommandLine* command_line); |
| 172 | 173 |
| 173 void ResetDecoder(); | 174 void ResetDecoder(); |
| 174 | 175 |
| 175 const ContextGroup& group() const { | 176 const ContextGroup& group() const { |
| 176 return *group_.get(); | 177 return *group_.get(); |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 protected: | 585 protected: |
| 585 virtual void SetUp() OVERRIDE; | 586 virtual void SetUp() OVERRIDE; |
| 586 virtual void TearDown() OVERRIDE; | 587 virtual void TearDown() OVERRIDE; |
| 587 | 588 |
| 588 }; | 589 }; |
| 589 | 590 |
| 590 } // namespace gles2 | 591 } // namespace gles2 |
| 591 } // namespace gpu | 592 } // namespace gpu |
| 592 | 593 |
| 593 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 594 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |