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

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

Issue 8340003: Make GLES2Implementation use a larger chunk size for mapping functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typos and formatting Created 9 years, 1 month 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
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 GLuint MakeTextureId() { 190 GLuint MakeTextureId() {
191 GLuint id; 191 GLuint id;
192 texture_id_handler_->MakeIds(0, 1, &id); 192 texture_id_handler_->MakeIds(0, 1, &id);
193 return id; 193 return id;
194 } 194 }
195 195
196 void FreeTextureId(GLuint id) { 196 void FreeTextureId(GLuint id) {
197 texture_id_handler_->FreeIds(1, &id); 197 texture_id_handler_->FreeIds(1, &id);
198 } 198 }
199 199
200 void SetSharedMemoryChunkSizeMultiple(unsigned int multiple);
201
200 void FreeUnusedSharedMemory(); 202 void FreeUnusedSharedMemory();
201 203
202 private: 204 private:
203 // Wraps RingBufferWrapper to provide aligned allocations. 205 // Wraps RingBufferWrapper to provide aligned allocations.
204 class AlignedRingBuffer : public RingBufferWrapper { 206 class AlignedRingBuffer : public RingBufferWrapper {
205 public: 207 public:
206 AlignedRingBuffer(RingBuffer::Offset base_offset, 208 AlignedRingBuffer(RingBuffer::Offset base_offset,
207 unsigned int size, 209 unsigned int size,
208 CommandBufferHelper *helper, 210 CommandBufferHelper *helper,
209 void *base) 211 void *base)
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 534
533 inline bool GLES2Implementation::GetTexParameterivHelper( 535 inline bool GLES2Implementation::GetTexParameterivHelper(
534 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 536 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
535 return false; 537 return false;
536 } 538 }
537 539
538 } // namespace gles2 540 } // namespace gles2
539 } // namespace gpu 541 } // namespace gpu
540 542
541 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 543 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698