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

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

Issue 8369010: Add GLES2Implemention::FreeUnusedSharedMemory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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) 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 FreeUnusedSharedMemory();
201
200 private: 202 private:
201 // Wraps RingBufferWrapper to provide aligned allocations. 203 // Wraps RingBufferWrapper to provide aligned allocations.
202 class AlignedRingBuffer : public RingBufferWrapper { 204 class AlignedRingBuffer : public RingBufferWrapper {
203 public: 205 public:
204 AlignedRingBuffer(RingBuffer::Offset base_offset, 206 AlignedRingBuffer(RingBuffer::Offset base_offset,
205 unsigned int size, 207 unsigned int size,
206 CommandBufferHelper *helper, 208 CommandBufferHelper *helper,
207 void *base) 209 void *base)
208 : RingBufferWrapper(base_offset, size, helper, base) { 210 : RingBufferWrapper(base_offset, size, helper, base) {
209 } 211 }
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 532
531 inline bool GLES2Implementation::GetTexParameterivHelper( 533 inline bool GLES2Implementation::GetTexParameterivHelper(
532 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 534 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
533 return false; 535 return false;
534 } 536 }
535 537
536 } // namespace gles2 538 } // namespace gles2
537 } // namespace gpu 539 } // namespace gpu
538 540
539 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 541 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/fenced_allocator_test.cc ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698