Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: gpu/command_buffer/service/test_helper.h

Issue 7979031: Code cleanup: rename DisallowedExtensions to DisallowedFeature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 9
10 namespace gpu { 10 namespace gpu {
11 namespace gles2 { 11 namespace gles2 {
12 12
13 struct DisallowedExtensions; 13 struct DisallowedFeatures;
14 14
15 class TestHelper { 15 class TestHelper {
16 public: 16 public:
17 static const GLuint kServiceBlackTexture2dId = 701; 17 static const GLuint kServiceBlackTexture2dId = 701;
18 static const GLuint kServiceBlackTextureCubemapId = 702; 18 static const GLuint kServiceBlackTextureCubemapId = 702;
19 static const GLuint kServiceDefaultTexture2dId = 703; 19 static const GLuint kServiceDefaultTexture2dId = 703;
20 static const GLuint kServiceDefaultTextureCubemapId = 704; 20 static const GLuint kServiceDefaultTextureCubemapId = 704;
21 static const GLuint kServiceDefaultExternalTextureId = 705; 21 static const GLuint kServiceDefaultExternalTextureId = 705;
22 static const GLuint kServiceBlackExternalTextureId = 706; 22 static const GLuint kServiceBlackExternalTextureId = 706;
23 23
24 static const GLint kMaxRenderbufferSize = 1024; 24 static const GLint kMaxRenderbufferSize = 1024;
25 static const GLint kMaxTextureSize = 2048; 25 static const GLint kMaxTextureSize = 2048;
26 static const GLint kMaxCubeMapTextureSize = 256; 26 static const GLint kMaxCubeMapTextureSize = 256;
27 static const GLint kNumVertexAttribs = 16; 27 static const GLint kNumVertexAttribs = 16;
28 static const GLint kNumTextureUnits = 8; 28 static const GLint kNumTextureUnits = 8;
29 static const GLint kMaxTextureImageUnits = 8; 29 static const GLint kMaxTextureImageUnits = 8;
30 static const GLint kMaxVertexTextureImageUnits = 2; 30 static const GLint kMaxVertexTextureImageUnits = 2;
31 static const GLint kMaxFragmentUniformVectors = 16; 31 static const GLint kMaxFragmentUniformVectors = 16;
32 static const GLint kMaxFragmentUniformComponents = 32 static const GLint kMaxFragmentUniformComponents =
33 kMaxFragmentUniformVectors * 4; 33 kMaxFragmentUniformVectors * 4;
34 static const GLint kMaxVaryingVectors = 8; 34 static const GLint kMaxVaryingVectors = 8;
35 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4; 35 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4;
36 static const GLint kMaxVertexUniformVectors = 128; 36 static const GLint kMaxVertexUniformVectors = 128;
37 static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4; 37 static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4;
38 38
39 static void SetupContextGroupInitExpectations( 39 static void SetupContextGroupInitExpectations(
40 ::gfx::MockGLInterface* gl, 40 ::gfx::MockGLInterface* gl,
41 const DisallowedExtensions& disallowed_extensions, 41 const DisallowedFeatures& disallowed_features,
42 const char* extensions); 42 const char* extensions);
43 static void SetupFeatureInfoInitExpectations( 43 static void SetupFeatureInfoInitExpectations(
44 ::gfx::MockGLInterface* gl, const char* extensions); 44 ::gfx::MockGLInterface* gl, const char* extensions);
45 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl, 45 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl,
46 const char* extensions); 46 const char* extensions);
47 }; 47 };
48 48
49 } // namespace gles2 49 } // namespace gles2
50 } // namespace gpu 50 } // namespace gpu
51 51
52 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ 52 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_
53 53
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/command_buffer/service/test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698