| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |