OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 7 |
| 8 #include "app/gfx/gl/gl_mock.h" |
| 9 #include "gpu/GLES2/gles2_command_buffer.h" |
| 10 |
| 11 namespace gpu { |
| 12 namespace gles2 { |
| 13 |
| 14 class TestHelper { |
| 15 public: |
| 16 static const GLuint kServiceBlackTexture2dId = 701; |
| 17 static const GLuint kServiceBlackTextureCubemapId = 702; |
| 18 static const GLuint kServiceDefaultTexture2dId = 703; |
| 19 static const GLuint kServiceDefaultTextureCubemapId = 704; |
| 20 |
| 21 static const GLint kMaxTextureSize = 2048; |
| 22 static const GLint kMaxCubeMapTextureSize = 256; |
| 23 static const GLint kNumVertexAttribs = 16; |
| 24 static const GLint kNumTextureUnits = 8; |
| 25 static const GLint kMaxTextureImageUnits = 8; |
| 26 static const GLint kMaxVertexTextureImageUnits = 2; |
| 27 static const GLint kMaxFragmentUniformVectors = 16; |
| 28 static const GLint kMaxVaryingVectors = 8; |
| 29 static const GLint kMaxVertexUniformVectors = 128; |
| 30 |
| 31 static void SetupContextGroupInitExpectations( |
| 32 ::gfx::MockGLInterface* gl, const char* extensions); |
| 33 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl); |
| 34 }; |
| 35 |
| 36 } // namespace gles2 |
| 37 } // namespace gpu |
| 38 |
| 39 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
| 40 |
OLD | NEW |