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

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

Issue 1950233002: Fix a bug in texture validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 static const GLuint kServiceBlackExternalTextureId = 709; 39 static const GLuint kServiceBlackExternalTextureId = 709;
40 static const GLuint kServiceDefaultExternalTextureId = 710; 40 static const GLuint kServiceDefaultExternalTextureId = 710;
41 static const GLuint kServiceBlackRectangleTextureId = 711; 41 static const GLuint kServiceBlackRectangleTextureId = 711;
42 static const GLuint kServiceDefaultRectangleTextureId = 712; 42 static const GLuint kServiceDefaultRectangleTextureId = 712;
43 43
44 static const GLint kMaxSamples = 4; 44 static const GLint kMaxSamples = 4;
45 static const GLint kMaxRenderbufferSize = 1024; 45 static const GLint kMaxRenderbufferSize = 1024;
46 static const GLint kMaxTextureSize = 2048; 46 static const GLint kMaxTextureSize = 2048;
47 static const GLint kMaxCubeMapTextureSize = 2048; 47 static const GLint kMaxCubeMapTextureSize = 2048;
48 static const GLint kMax3DTextureSize = 1024; 48 static const GLint kMax3DTextureSize = 1024;
49 static const GLint kMaxArrayTextureLayers = 256;
49 static const GLint kMaxRectangleTextureSize = 64; 50 static const GLint kMaxRectangleTextureSize = 64;
50 static const GLint kNumVertexAttribs = 16; 51 static const GLint kNumVertexAttribs = 16;
51 static const GLint kNumTextureUnits = 8; 52 static const GLint kNumTextureUnits = 8;
52 static const GLint kMaxTextureImageUnits = 8; 53 static const GLint kMaxTextureImageUnits = 8;
53 static const GLint kMaxVertexTextureImageUnits = 2; 54 static const GLint kMaxVertexTextureImageUnits = 2;
54 static const GLint kMaxFragmentUniformVectors = 16; 55 static const GLint kMaxFragmentUniformVectors = 16;
55 static const GLint kMaxFragmentUniformComponents = 56 static const GLint kMaxFragmentUniformComponents =
56 kMaxFragmentUniformVectors * 4; 57 kMaxFragmentUniformVectors * 4;
57 static const GLint kMaxVaryingVectors = 8; 58 static const GLint kMaxVaryingVectors = 8;
58 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4; 59 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 228
228 private: 229 private:
229 gfx::GLImplementation old_implementation_; 230 gfx::GLImplementation old_implementation_;
230 }; 231 };
231 232
232 } // namespace gles2 233 } // namespace gles2
233 } // namespace gpu 234 } // namespace gpu
234 235
235 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ 236 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_
236 237
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/framebuffer_manager_unittest.cc ('k') | gpu/command_buffer/service/test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698