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 "gpu/command_buffer/common/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.h" |
9 | 9 |
10 namespace gpu { | 10 namespace gpu { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 GLint real_location; | 54 GLint real_location; |
55 const char* good_name; | 55 const char* good_name; |
56 }; | 56 }; |
57 | 57 |
58 static void SetupContextGroupInitExpectations( | 58 static void SetupContextGroupInitExpectations( |
59 ::gfx::MockGLInterface* gl, | 59 ::gfx::MockGLInterface* gl, |
60 const DisallowedFeatures& disallowed_features, | 60 const DisallowedFeatures& disallowed_features, |
61 const char* extensions); | 61 const char* extensions); |
62 static void SetupFeatureInfoInitExpectations( | 62 static void SetupFeatureInfoInitExpectations( |
63 ::gfx::MockGLInterface* gl, const char* extensions); | 63 ::gfx::MockGLInterface* gl, const char* extensions); |
| 64 static void SetupFeatureInfoInitExpectationsWithVendor( |
| 65 ::gfx::MockGLInterface* gl, const char* extensions, const char* vendor); |
64 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl, | 66 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl, |
65 const char* extensions); | 67 const char* extensions); |
66 | 68 |
67 static void SetupExpectationsForClearingUniforms( | 69 static void SetupExpectationsForClearingUniforms( |
68 ::gfx::MockGLInterface* gl, UniformInfo* uniforms, size_t num_uniforms); | 70 ::gfx::MockGLInterface* gl, UniformInfo* uniforms, size_t num_uniforms); |
69 | 71 |
70 static void SetupShader( | 72 static void SetupShader( |
71 ::gfx::MockGLInterface* gl, | 73 ::gfx::MockGLInterface* gl, |
72 AttribInfo* attribs, size_t num_attribs, | 74 AttribInfo* attribs, size_t num_attribs, |
73 UniformInfo* uniforms, size_t num_uniforms, | 75 UniformInfo* uniforms, size_t num_uniforms, |
74 GLuint service_id); | 76 GLuint service_id); |
75 | 77 |
76 private: | 78 private: |
77 static void SetupTextureInitializationExpectations(::gfx::MockGLInterface* gl, | 79 static void SetupTextureInitializationExpectations(::gfx::MockGLInterface* gl, |
78 GLenum target); | 80 GLenum target); |
79 }; | 81 }; |
80 | 82 |
81 } // namespace gles2 | 83 } // namespace gles2 |
82 } // namespace gpu | 84 } // namespace gpu |
83 | 85 |
84 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 86 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
85 | 87 |
OLD | NEW |