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

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

Issue 6623063: Connect up --disable-gl-multisampling to command buffer (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix style. Created 9 years, 9 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) 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;
15
14 class TestHelper { 16 class TestHelper {
15 public: 17 public:
16 static const GLuint kServiceBlackTexture2dId = 701; 18 static const GLuint kServiceBlackTexture2dId = 701;
17 static const GLuint kServiceBlackTextureCubemapId = 702; 19 static const GLuint kServiceBlackTextureCubemapId = 702;
18 static const GLuint kServiceDefaultTexture2dId = 703; 20 static const GLuint kServiceDefaultTexture2dId = 703;
19 static const GLuint kServiceDefaultTextureCubemapId = 704; 21 static const GLuint kServiceDefaultTextureCubemapId = 704;
20 22
21 static const GLint kMaxRenderbufferSize = 1024; 23 static const GLint kMaxRenderbufferSize = 1024;
22 static const GLint kMaxTextureSize = 2048; 24 static const GLint kMaxTextureSize = 2048;
23 static const GLint kMaxCubeMapTextureSize = 256; 25 static const GLint kMaxCubeMapTextureSize = 256;
24 static const GLint kNumVertexAttribs = 16; 26 static const GLint kNumVertexAttribs = 16;
25 static const GLint kNumTextureUnits = 8; 27 static const GLint kNumTextureUnits = 8;
26 static const GLint kMaxTextureImageUnits = 8; 28 static const GLint kMaxTextureImageUnits = 8;
27 static const GLint kMaxVertexTextureImageUnits = 2; 29 static const GLint kMaxVertexTextureImageUnits = 2;
28 static const GLint kMaxFragmentUniformVectors = 16; 30 static const GLint kMaxFragmentUniformVectors = 16;
29 static const GLint kMaxFragmentUniformComponents = 31 static const GLint kMaxFragmentUniformComponents =
30 kMaxFragmentUniformVectors * 4; 32 kMaxFragmentUniformVectors * 4;
31 static const GLint kMaxVaryingVectors = 8; 33 static const GLint kMaxVaryingVectors = 8;
32 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4; 34 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4;
33 static const GLint kMaxVertexUniformVectors = 128; 35 static const GLint kMaxVertexUniformVectors = 128;
34 static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4; 36 static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4;
35 37
36 static void SetupContextGroupInitExpectations( 38 static void SetupContextGroupInitExpectations(
37 ::gfx::MockGLInterface* gl, const char* extensions); 39 ::gfx::MockGLInterface* gl,
40 const DisallowedExtensions& disallowed_extensions,
41 const char* extensions);
38 static void SetupFeatureInfoInitExpectations( 42 static void SetupFeatureInfoInitExpectations(
39 ::gfx::MockGLInterface* gl, const char* extensions); 43 ::gfx::MockGLInterface* gl, const char* extensions);
40 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl); 44 static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl);
41 }; 45 };
42 46
43 } // namespace gles2 47 } // namespace gles2
44 } // namespace gpu 48 } // namespace gpu
45 49
46 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ 50 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_
47 51
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_processor_win.cc ('k') | gpu/command_buffer/service/test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698