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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 GLenum type; | 45 GLenum type; |
46 GLint location; | 46 GLint location; |
47 }; | 47 }; |
48 | 48 |
49 struct UniformInfo { | 49 struct UniformInfo { |
50 const char* name; | 50 const char* name; |
51 GLint size; | 51 GLint size; |
52 GLenum type; | 52 GLenum type; |
53 GLint fake_location; | 53 GLint fake_location; |
54 GLint real_location; | 54 GLint real_location; |
| 55 GLint desired_location; |
55 const char* good_name; | 56 const char* good_name; |
56 }; | 57 }; |
57 | 58 |
58 static void SetupContextGroupInitExpectations( | 59 static void SetupContextGroupInitExpectations( |
59 ::gfx::MockGLInterface* gl, | 60 ::gfx::MockGLInterface* gl, |
60 const DisallowedFeatures& disallowed_features, | 61 const DisallowedFeatures& disallowed_features, |
61 const char* extensions); | 62 const char* extensions); |
62 static void SetupFeatureInfoInitExpectations( | 63 static void SetupFeatureInfoInitExpectations( |
63 ::gfx::MockGLInterface* gl, const char* extensions); | 64 ::gfx::MockGLInterface* gl, const char* extensions); |
64 static void SetupFeatureInfoInitExpectationsWithVendor( | 65 static void SetupFeatureInfoInitExpectationsWithVendor( |
(...skipping 20 matching lines...) Expand all Loading... |
85 ::gfx::MockGLInterface* gl, GLenum target); | 86 ::gfx::MockGLInterface* gl, GLenum target); |
86 static void SetupTextureDestructionExpectations( | 87 static void SetupTextureDestructionExpectations( |
87 ::gfx::MockGLInterface* gl, GLenum target); | 88 ::gfx::MockGLInterface* gl, GLenum target); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace gles2 | 91 } // namespace gles2 |
91 } // namespace gpu | 92 } // namespace gpu |
92 | 93 |
93 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 94 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
94 | 95 |
OLD | NEW |