| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 GLenum type; | 58 GLenum type; |
| 59 GLint fake_location; | 59 GLint fake_location; |
| 60 GLint real_location; | 60 GLint real_location; |
| 61 GLint desired_location; | 61 GLint desired_location; |
| 62 const char* good_name; | 62 const char* good_name; |
| 63 }; | 63 }; |
| 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 const char* gl_version); |
| 69 static void SetupFeatureInfoInitExpectations( | 70 static void SetupFeatureInfoInitExpectations( |
| 70 ::gfx::MockGLInterface* gl, const char* extensions); | 71 ::gfx::MockGLInterface* gl, const char* extensions); |
| 71 static void SetupFeatureInfoInitExpectationsWithGLVersion( | 72 static void SetupFeatureInfoInitExpectationsWithGLVersion( |
| 72 ::gfx::MockGLInterface* gl, | 73 ::gfx::MockGLInterface* gl, |
| 73 const char* extensions, | 74 const char* extensions, |
| 74 const char* gl_renderer, | 75 const char* gl_renderer, |
| 75 const char* gl_version); | 76 const char* gl_version); |
| 76 static void SetupTextureManagerInitExpectations( | 77 static void SetupTextureManagerInitExpectations( |
| 77 ::gfx::MockGLInterface* gl, const char* extensions); | 78 ::gfx::MockGLInterface* gl, const char* extensions); |
| 78 static void SetupTextureManagerDestructionExpectations( | 79 static void SetupTextureManagerDestructionExpectations( |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 120 |
| 120 private: | 121 private: |
| 121 gfx::GLImplementation old_implementation_; | 122 gfx::GLImplementation old_implementation_; |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace gles2 | 125 } // namespace gles2 |
| 125 } // namespace gpu | 126 } // namespace gpu |
| 126 | 127 |
| 127 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 128 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 128 | 129 |
| OLD | NEW |