| 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_mock.h" | 8 #include "ui/gl/gl_mock.h" |
| 9 | 9 |
| 10 namespace gpu { | 10 namespace gpu { |
| 11 namespace gles2 { | 11 namespace gles2 { |
| 12 | 12 |
| 13 struct DisallowedFeatures; | 13 struct DisallowedFeatures; |
| 14 class Buffer; |
| 15 class BufferManager; |
| 16 class MockGLES2Decoder; |
| 14 | 17 |
| 15 class TestHelper { | 18 class TestHelper { |
| 16 public: | 19 public: |
| 17 static const GLuint kServiceBlackTexture2dId = 701; | 20 static const GLuint kServiceBlackTexture2dId = 701; |
| 18 static const GLuint kServiceDefaultTexture2dId = 702; | 21 static const GLuint kServiceDefaultTexture2dId = 702; |
| 19 static const GLuint kServiceBlackTextureCubemapId = 703; | 22 static const GLuint kServiceBlackTextureCubemapId = 703; |
| 20 static const GLuint kServiceDefaultTextureCubemapId = 704; | 23 static const GLuint kServiceDefaultTextureCubemapId = 704; |
| 21 static const GLuint kServiceBlackExternalTextureId = 705; | 24 static const GLuint kServiceBlackExternalTextureId = 705; |
| 22 static const GLuint kServiceDefaultExternalTextureId = 706; | 25 static const GLuint kServiceDefaultExternalTextureId = 706; |
| 23 static const GLuint kServiceBlackRectangleTextureId = 707; | 26 static const GLuint kServiceBlackRectangleTextureId = 707; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 ::gfx::MockGLInterface* gl, | 82 ::gfx::MockGLInterface* gl, |
| 80 AttribInfo* attribs, size_t num_attribs, | 83 AttribInfo* attribs, size_t num_attribs, |
| 81 UniformInfo* uniforms, size_t num_uniforms, | 84 UniformInfo* uniforms, size_t num_uniforms, |
| 82 GLuint service_id); | 85 GLuint service_id); |
| 83 | 86 |
| 84 static void SetupProgramSuccessExpectations(::gfx::MockGLInterface* gl, | 87 static void SetupProgramSuccessExpectations(::gfx::MockGLInterface* gl, |
| 85 AttribInfo* attribs, size_t num_attribs, | 88 AttribInfo* attribs, size_t num_attribs, |
| 86 UniformInfo* uniforms, size_t num_uniforms, | 89 UniformInfo* uniforms, size_t num_uniforms, |
| 87 GLuint service_id); | 90 GLuint service_id); |
| 88 | 91 |
| 92 static void DoBufferData( |
| 93 ::gfx::MockGLInterface* gl, MockGLES2Decoder* decoder, |
| 94 BufferManager* manager, Buffer* buffer, GLsizeiptr size, GLenum usage, |
| 95 const GLvoid* data, GLenum error); |
| 96 |
| 89 private: | 97 private: |
| 90 static void SetupTextureInitializationExpectations( | 98 static void SetupTextureInitializationExpectations( |
| 91 ::gfx::MockGLInterface* gl, GLenum target); | 99 ::gfx::MockGLInterface* gl, GLenum target); |
| 92 static void SetupTextureDestructionExpectations( | 100 static void SetupTextureDestructionExpectations( |
| 93 ::gfx::MockGLInterface* gl, GLenum target); | 101 ::gfx::MockGLInterface* gl, GLenum target); |
| 94 }; | 102 }; |
| 95 | 103 |
| 96 } // namespace gles2 | 104 } // namespace gles2 |
| 97 } // namespace gpu | 105 } // namespace gpu |
| 98 | 106 |
| 99 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 107 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 100 | 108 |
| OLD | NEW |