OLD | NEW |
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_CLIENT_GLES2_IMPLEMENTATION_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 GLStaticState(); | 129 GLStaticState(); |
130 ~GLStaticState(); | 130 ~GLStaticState(); |
131 | 131 |
132 typedef std::pair<GLenum, GLenum> ShaderPrecisionKey; | 132 typedef std::pair<GLenum, GLenum> ShaderPrecisionKey; |
133 typedef std::map<ShaderPrecisionKey, | 133 typedef std::map<ShaderPrecisionKey, |
134 cmds::GetShaderPrecisionFormat::Result> | 134 cmds::GetShaderPrecisionFormat::Result> |
135 ShaderPrecisionMap; | 135 ShaderPrecisionMap; |
136 ShaderPrecisionMap shader_precisions; | 136 ShaderPrecisionMap shader_precisions; |
137 }; | 137 }; |
138 | 138 |
139 // The maxiumum result size from simple GL get commands. | 139 // The maximum result size from simple GL get commands. |
140 static const size_t kMaxSizeOfSimpleResult = | 140 static const size_t kMaxSizeOfSimpleResult = |
141 16 * sizeof(uint32_t); // NOLINT. | 141 16 * sizeof(uint32_t); // NOLINT. |
142 | 142 |
143 // used for testing only. If more things are reseved add them here. | 143 // used for testing only. If more things are reseved add them here. |
144 static const unsigned int kStartingOffset = kMaxSizeOfSimpleResult; | 144 static const unsigned int kStartingOffset = kMaxSizeOfSimpleResult; |
145 | 145 |
146 // Size in bytes to issue async flush for transfer buffer. | 146 // Size in bytes to issue async flush for transfer buffer. |
147 static const unsigned int kSizeToFlush = 256 * 1024; | 147 static const unsigned int kSizeToFlush = 256 * 1024; |
148 | 148 |
149 // The bucket used for results. Public for testing only. | 149 // The bucket used for results. Public for testing only. |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 | 878 |
879 inline bool GLES2Implementation::GetTexParameterivHelper( | 879 inline bool GLES2Implementation::GetTexParameterivHelper( |
880 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 880 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
881 return false; | 881 return false; |
882 } | 882 } |
883 | 883 |
884 } // namespace gles2 | 884 } // namespace gles2 |
885 } // namespace gpu | 885 } // namespace gpu |
886 | 886 |
887 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 887 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |