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

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

Issue 1905743002: Improve BindBufferBase/BindBufferRange in GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 kMaxFragmentUniformVectors * 4; 56 kMaxFragmentUniformVectors * 4;
57 static const GLint kMaxVaryingVectors = 8; 57 static const GLint kMaxVaryingVectors = 8;
58 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4; 58 static const GLint kMaxVaryingFloats = kMaxVaryingVectors * 4;
59 static const GLint kMaxVertexUniformVectors = 128; 59 static const GLint kMaxVertexUniformVectors = 128;
60 static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4; 60 static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4;
61 static const GLint kMaxVertexOutputComponents = 64; 61 static const GLint kMaxVertexOutputComponents = 64;
62 static const GLint kMaxFragmentInputComponents = 60; 62 static const GLint kMaxFragmentInputComponents = 60;
63 static const GLint kMaxProgramTexelOffset = 7; 63 static const GLint kMaxProgramTexelOffset = 7;
64 static const GLint kMinProgramTexelOffset = -8; 64 static const GLint kMinProgramTexelOffset = -8;
65 65
66 static const GLint kMaxTransformFeedbackSeparateAttribs = 4;
67 static const GLint kMaxUniformBufferBindings = 24;
68 static const GLint kUniformBufferOffsetAlignment = 1;
69
66 struct AttribInfo { 70 struct AttribInfo {
67 const char* name; 71 const char* name;
68 GLint size; 72 GLint size;
69 GLenum type; 73 GLenum type;
70 GLint location; 74 GLint location;
71 }; 75 };
72 76
73 struct UniformInfo { 77 struct UniformInfo {
74 const char* name; 78 const char* name;
75 GLint size; 79 GLint size;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 227
224 private: 228 private:
225 gfx::GLImplementation old_implementation_; 229 gfx::GLImplementation old_implementation_;
226 }; 230 };
227 231
228 } // namespace gles2 232 } // namespace gles2
229 } // namespace gpu 233 } // namespace gpu
230 234
231 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ 235 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_
232 236
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_buffers.cc ('k') | gpu/command_buffer/service/test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698