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/service/shader_translator.h" | 8 #include "gpu/command_buffer/service/shader_translator.h" |
9 #include "ui/gl/gl_implementation.h" | 9 #include "ui/gl/gl_implementation.h" |
10 #include "ui/gl/gl_mock.h" | 10 #include "ui/gl/gl_mock.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 static const GLuint kServiceDefaultTextureCubemapId = 704; | 28 static const GLuint kServiceDefaultTextureCubemapId = 704; |
29 static const GLuint kServiceBlackExternalTextureId = 705; | 29 static const GLuint kServiceBlackExternalTextureId = 705; |
30 static const GLuint kServiceDefaultExternalTextureId = 706; | 30 static const GLuint kServiceDefaultExternalTextureId = 706; |
31 static const GLuint kServiceBlackRectangleTextureId = 707; | 31 static const GLuint kServiceBlackRectangleTextureId = 707; |
32 static const GLuint kServiceDefaultRectangleTextureId = 708; | 32 static const GLuint kServiceDefaultRectangleTextureId = 708; |
33 | 33 |
34 static const GLint kMaxSamples = 4; | 34 static const GLint kMaxSamples = 4; |
35 static const GLint kMaxRenderbufferSize = 1024; | 35 static const GLint kMaxRenderbufferSize = 1024; |
36 static const GLint kMaxTextureSize = 2048; | 36 static const GLint kMaxTextureSize = 2048; |
37 static const GLint kMaxCubeMapTextureSize = 256; | 37 static const GLint kMaxCubeMapTextureSize = 256; |
| 38 static const GLint kMaxRectangleTextureSize = 64; |
38 static const GLint kNumVertexAttribs = 16; | 39 static const GLint kNumVertexAttribs = 16; |
39 static const GLint kNumTextureUnits = 8; | 40 static const GLint kNumTextureUnits = 8; |
40 static const GLint kMaxTextureImageUnits = 8; | 41 static const GLint kMaxTextureImageUnits = 8; |
41 static const GLint kMaxVertexTextureImageUnits = 2; | 42 static const GLint kMaxVertexTextureImageUnits = 2; |
42 static const GLint kMaxFragmentUniformVectors = 16; | 43 static const GLint kMaxFragmentUniformVectors = 16; |
43 static const GLint kMaxFragmentUniformComponents = | 44 static const GLint kMaxFragmentUniformComponents = |
44 kMaxFragmentUniformVectors * 4; | 45 kMaxFragmentUniformVectors * 4; |
45 static const GLint kMaxVaryingVectors = 8; | 46 static const GLint kMaxVaryingVectors = 8; |
46 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4; | 47 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4; |
47 static const GLint kMaxVertexUniformVectors = 128; | 48 static const GLint kMaxVertexUniformVectors = 128; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 152 |
152 private: | 153 private: |
153 gfx::GLImplementation old_implementation_; | 154 gfx::GLImplementation old_implementation_; |
154 }; | 155 }; |
155 | 156 |
156 } // namespace gles2 | 157 } // namespace gles2 |
157 } // namespace gpu | 158 } // namespace gpu |
158 | 159 |
159 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 160 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
160 | 161 |
OLD | NEW |