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

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

Issue 9387014: Add AsyncFlush when transferbuffer is > a certain size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
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 <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 GLint num_compressed_texture_formats; 136 GLint num_compressed_texture_formats;
137 GLint num_shader_binary_formats; 137 GLint num_shader_binary_formats;
138 }; 138 };
139 139
140 // The maxiumum result size from simple GL get commands. 140 // The maxiumum result size from simple GL get commands.
141 static const size_t kMaxSizeOfSimpleResult = 16 * sizeof(uint32); // NOLINT. 141 static const size_t kMaxSizeOfSimpleResult = 16 * sizeof(uint32); // 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.
147 static const unsigned int kSizeToFlush = 256 * 1024;
148
146 // The bucket used for results. Public for testing only. 149 // The bucket used for results. Public for testing only.
147 static const uint32 kResultBucketId = 1; 150 static const uint32 kResultBucketId = 1;
148 151
149 // Alignment of allocations. 152 // Alignment of allocations.
150 static const unsigned int kAlignment = 4; 153 static const unsigned int kAlignment = 4;
151 154
152 // GL names for the buffers used to emulate client side buffers. 155 // GL names for the buffers used to emulate client side buffers.
153 static const GLuint kClientSideArrayId = 0xFEDCBA98u; 156 static const GLuint kClientSideArrayId = 0xFEDCBA98u;
154 static const GLuint kClientSideElementArrayId = 0xFEDCBA99u; 157 static const GLuint kClientSideElementArrayId = 0xFEDCBA99u;
155 158
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 548
546 inline bool GLES2Implementation::GetTexParameterivHelper( 549 inline bool GLES2Implementation::GetTexParameterivHelper(
547 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 550 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
548 return false; 551 return false;
549 } 552 }
550 553
551 } // namespace gles2 554 } // namespace gles2
552 } // namespace gpu 555 } // namespace gpu
553 556
554 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 557 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.cc ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698