| 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 "ui/gl/gl_implementation.h" | 8 #include "ui/gl/gl_implementation.h" |
| 9 #include "ui/gl/gl_mock.h" | 9 #include "ui/gl/gl_mock.h" |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 static void SetupContextGroupInitExpectations( | 65 static void SetupContextGroupInitExpectations( |
| 66 ::gfx::MockGLInterface* gl, | 66 ::gfx::MockGLInterface* gl, |
| 67 const DisallowedFeatures& disallowed_features, | 67 const DisallowedFeatures& disallowed_features, |
| 68 const char* extensions); | 68 const char* extensions); |
| 69 static void SetupFeatureInfoInitExpectations( | 69 static void SetupFeatureInfoInitExpectations( |
| 70 ::gfx::MockGLInterface* gl, const char* extensions); | 70 ::gfx::MockGLInterface* gl, const char* extensions); |
| 71 static void SetupFeatureInfoInitExpectationsWithGLVersion( | 71 static void SetupFeatureInfoInitExpectationsWithGLVersion( |
| 72 ::gfx::MockGLInterface* gl, | 72 ::gfx::MockGLInterface* gl, |
| 73 const char* extensions, | 73 const char* extensions, |
| 74 const char* version); | 74 const char* gl_renderer, |
| 75 const char* gl_version); |
| 75 static void SetupTextureManagerInitExpectations( | 76 static void SetupTextureManagerInitExpectations( |
| 76 ::gfx::MockGLInterface* gl, const char* extensions); | 77 ::gfx::MockGLInterface* gl, const char* extensions); |
| 77 static void SetupTextureManagerDestructionExpectations( | 78 static void SetupTextureManagerDestructionExpectations( |
| 78 ::gfx::MockGLInterface* gl, const char* extensions); | 79 ::gfx::MockGLInterface* gl, const char* extensions); |
| 79 | 80 |
| 80 static void SetupExpectationsForClearingUniforms( | 81 static void SetupExpectationsForClearingUniforms( |
| 81 ::gfx::MockGLInterface* gl, UniformInfo* uniforms, size_t num_uniforms); | 82 ::gfx::MockGLInterface* gl, UniformInfo* uniforms, size_t num_uniforms); |
| 82 | 83 |
| 83 static void SetupShader( | 84 static void SetupShader( |
| 84 ::gfx::MockGLInterface* gl, | 85 ::gfx::MockGLInterface* gl, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 119 |
| 119 private: | 120 private: |
| 120 gfx::GLImplementation old_implementation_; | 121 gfx::GLImplementation old_implementation_; |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace gles2 | 124 } // namespace gles2 |
| 124 } // namespace gpu | 125 } // namespace gpu |
| 125 | 126 |
| 126 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 127 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 127 | 128 |
| OLD | NEW |