| 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_TEST_HELPER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 13 #include "gpu/command_buffer/service/shader_translator.h" | 14 #include "gpu/command_buffer/service/shader_translator.h" |
| 14 #include "ui/gl/gl_implementation.h" | 15 #include "ui/gl/gl_implementation.h" |
| 15 #include "ui/gl/gl_mock.h" | 16 #include "ui/gl/gl_mock.h" |
| 16 | 17 |
| 17 namespace gpu { | 18 namespace gpu { |
| 18 namespace gles2 { | 19 namespace gles2 { |
| 19 | 20 |
| 20 struct DisallowedFeatures; | 21 struct DisallowedFeatures; |
| 21 class Buffer; | 22 class Buffer; |
| 22 class BufferManager; | 23 class BufferManager; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 GLenum type; | 100 GLenum type; |
| 100 GLint color_name; | 101 GLint color_name; |
| 101 GLuint index; | 102 GLuint index; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 static void SetupContextGroupInitExpectations( | 105 static void SetupContextGroupInitExpectations( |
| 105 ::gl::MockGLInterface* gl, | 106 ::gl::MockGLInterface* gl, |
| 106 const DisallowedFeatures& disallowed_features, | 107 const DisallowedFeatures& disallowed_features, |
| 107 const char* extensions, | 108 const char* extensions, |
| 108 const char* gl_version, | 109 const char* gl_version, |
| 110 ContextType context_type, |
| 109 bool bind_generates_resource); | 111 bool bind_generates_resource); |
| 110 static void SetupFeatureInfoInitExpectations(::gl::MockGLInterface* gl, | 112 static void SetupFeatureInfoInitExpectations(::gl::MockGLInterface* gl, |
| 111 const char* extensions); | 113 const char* extensions); |
| 112 static void SetupFeatureInfoInitExpectationsWithGLVersion( | 114 static void SetupFeatureInfoInitExpectationsWithGLVersion( |
| 113 ::gl::MockGLInterface* gl, | 115 ::gl::MockGLInterface* gl, |
| 114 const char* extensions, | 116 const char* extensions, |
| 115 const char* gl_renderer, | 117 const char* gl_renderer, |
| 116 const char* gl_version, | 118 const char* gl_version, |
| 119 ContextType context_type, |
| 117 bool enable_es3 = false); | 120 bool enable_es3 = false); |
| 118 static void SetupTextureManagerInitExpectations(::gl::MockGLInterface* gl, | 121 static void SetupTextureManagerInitExpectations(::gl::MockGLInterface* gl, |
| 119 bool is_es3_enabled, | 122 bool is_es3_enabled, |
| 120 bool is_desktop_core_profile, | 123 bool is_desktop_core_profile, |
| 121 const char* extensions, | 124 const char* extensions, |
| 122 bool use_default_textures); | 125 bool use_default_textures); |
| 123 static void SetupTextureManagerDestructionExpectations( | 126 static void SetupTextureManagerDestructionExpectations( |
| 124 ::gl::MockGLInterface* gl, | 127 ::gl::MockGLInterface* gl, |
| 125 bool is_es3_enabled, | 128 bool is_es3_enabled, |
| 126 bool is_desktop_core_profile, | 129 bool is_desktop_core_profile, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 bool use_default_textures); | 228 bool use_default_textures); |
| 226 | 229 |
| 227 static std::vector<std::string> split_extensions_; | 230 static std::vector<std::string> split_extensions_; |
| 228 }; | 231 }; |
| 229 | 232 |
| 230 } // namespace gles2 | 233 } // namespace gles2 |
| 231 } // namespace gpu | 234 } // namespace gpu |
| 232 | 235 |
| 233 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 236 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 234 | 237 |
| OLD | NEW |