OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "gpu/GLES2/gles2_command_buffer.h" | 9 #include "gpu/GLES2/gles2_command_buffer.h" |
10 | 10 |
11 namespace gpu { | 11 namespace gpu { |
12 namespace gles2 { | 12 namespace gles2 { |
13 | 13 |
14 struct DisallowedExtensions; | 14 struct DisallowedExtensions; |
15 | 15 |
16 class TestHelper { | 16 class TestHelper { |
17 public: | 17 public: |
18 static const GLuint kServiceBlackTexture2dId = 701; | 18 static const GLuint kServiceBlackTexture2dId = 701; |
19 static const GLuint kServiceBlackTextureCubemapId = 702; | 19 static const GLuint kServiceBlackTextureCubemapId = 702; |
20 static const GLuint kServiceDefaultTexture2dId = 703; | 20 static const GLuint kServiceDefaultTexture2dId = 703; |
21 static const GLuint kServiceDefaultTextureCubemapId = 704; | 21 static const GLuint kServiceDefaultTextureCubemapId = 704; |
| 22 static const GLuint kServiceDefaultExternalTextureId = 705; |
| 23 static const GLuint kServiceBlackExternalTextureId = 706; |
22 | 24 |
23 static const GLint kMaxRenderbufferSize = 1024; | 25 static const GLint kMaxRenderbufferSize = 1024; |
24 static const GLint kMaxTextureSize = 2048; | 26 static const GLint kMaxTextureSize = 2048; |
25 static const GLint kMaxCubeMapTextureSize = 256; | 27 static const GLint kMaxCubeMapTextureSize = 256; |
26 static const GLint kNumVertexAttribs = 16; | 28 static const GLint kNumVertexAttribs = 16; |
27 static const GLint kNumTextureUnits = 8; | 29 static const GLint kNumTextureUnits = 8; |
28 static const GLint kMaxTextureImageUnits = 8; | 30 static const GLint kMaxTextureImageUnits = 8; |
29 static const GLint kMaxVertexTextureImageUnits = 2; | 31 static const GLint kMaxVertexTextureImageUnits = 2; |
30 static const GLint kMaxFragmentUniformVectors = 16; | 32 static const GLint kMaxFragmentUniformVectors = 16; |
31 static const GLint kMaxFragmentUniformComponents = | 33 static const GLint kMaxFragmentUniformComponents = |
32 kMaxFragmentUniformVectors * 4; | 34 kMaxFragmentUniformVectors * 4; |
33 static const GLint kMaxVaryingVectors = 8; | 35 static const GLint kMaxVaryingVectors = 8; |
34 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4; | 36 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4; |
35 static const GLint kMaxVertexUniformVectors = 128; | 37 static const GLint kMaxVertexUniformVectors = 128; |
36 static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4; | 38 static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4; |
37 | 39 |
38 static void SetupContextGroupInitExpectations( | 40 static void SetupContextGroupInitExpectations( |
39 ::gfx::MockGLInterface* gl, | 41 ::gfx::MockGLInterface* gl, |
40 const DisallowedExtensions& disallowed_extensions, | 42 const DisallowedExtensions& disallowed_extensions, |
41 const char* extensions); | 43 const char* extensions); |
42 static void SetupFeatureInfoInitExpectations( | 44 static void SetupFeatureInfoInitExpectations( |
43 ::gfx::MockGLInterface* gl, const char* extensions); | 45 ::gfx::MockGLInterface* gl, const char* extensions); |
44 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl); | 46 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl, |
| 47 const char* extensions); |
45 }; | 48 }; |
46 | 49 |
47 } // namespace gles2 | 50 } // namespace gles2 |
48 } // namespace gpu | 51 } // namespace gpu |
49 | 52 |
50 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 53 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
51 | 54 |
OLD | NEW |