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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 1635183003: Increase GPU transfer buffer alignment to 16 bytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // used for testing only. If more things are reseved add them here. 151 // used for testing only. If more things are reseved add them here.
152 static const unsigned int kStartingOffset = kMaxSizeOfSimpleResult; 152 static const unsigned int kStartingOffset = kMaxSizeOfSimpleResult;
153 153
154 // Size in bytes to issue async flush for transfer buffer. 154 // Size in bytes to issue async flush for transfer buffer.
155 static const unsigned int kSizeToFlush = 256 * 1024; 155 static const unsigned int kSizeToFlush = 256 * 1024;
156 156
157 // The bucket used for results. Public for testing only. 157 // The bucket used for results. Public for testing only.
158 static const uint32_t kResultBucketId = 1; 158 static const uint32_t kResultBucketId = 1;
159 159
160 // Alignment of allocations. 160 // Alignment of allocations.
161 static const unsigned int kAlignment = 4; 161 static const unsigned int kAlignment = 16;
162 162
163 // GL names for the buffers used to emulate client side buffers. 163 // GL names for the buffers used to emulate client side buffers.
164 static const GLuint kClientSideArrayId = 0xFEDCBA98u; 164 static const GLuint kClientSideArrayId = 0xFEDCBA98u;
165 static const GLuint kClientSideElementArrayId = 0xFEDCBA99u; 165 static const GLuint kClientSideElementArrayId = 0xFEDCBA99u;
166 166
167 // Number of swap buffers allowed before waiting. 167 // Number of swap buffers allowed before waiting.
168 static const size_t kMaxSwapBuffers = 2; 168 static const size_t kMaxSwapBuffers = 2;
169 169
170 GLES2Implementation(GLES2CmdHelper* helper, 170 GLES2Implementation(GLES2CmdHelper* helper,
171 ShareGroup* share_group, 171 ShareGroup* share_group,
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 873
874 inline bool GLES2Implementation::GetTexParameterivHelper( 874 inline bool GLES2Implementation::GetTexParameterivHelper(
875 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 875 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
876 return false; 876 return false;
877 } 877 }
878 878
879 } // namespace gles2 879 } // namespace gles2
880 } // namespace gpu 880 } // namespace gpu
881 881
882 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 882 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698