| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 #endif | 372 #endif |
| 373 | 373 |
| 374 // Current GL error bits. | 374 // Current GL error bits. |
| 375 uint32 error_bits_; | 375 uint32 error_bits_; |
| 376 | 376 |
| 377 // Map of GLenum to Strings for glGetString. We need to cache these because | 377 // Map of GLenum to Strings for glGetString. We need to cache these because |
| 378 // the pointer passed back to the client has to remain valid for eternity. | 378 // the pointer passed back to the client has to remain valid for eternity. |
| 379 typedef std::map<uint32, std::set<std::string> > GLStringMap; | 379 typedef std::map<uint32, std::set<std::string> > GLStringMap; |
| 380 GLStringMap gl_strings_; | 380 GLStringMap gl_strings_; |
| 381 | 381 |
| 382 // Similar cache for glGetRequestableExtensionsCHROMIUM. We don't |
| 383 // have an enum for this so handle it separately. |
| 384 std::set<std::string> requestable_extensions_set_; |
| 385 |
| 382 typedef std::map<const void*, MappedBuffer> MappedBufferMap; | 386 typedef std::map<const void*, MappedBuffer> MappedBufferMap; |
| 383 MappedBufferMap mapped_buffers_; | 387 MappedBufferMap mapped_buffers_; |
| 384 | 388 |
| 385 typedef std::map<const void*, MappedTexture> MappedTextureMap; | 389 typedef std::map<const void*, MappedTexture> MappedTextureMap; |
| 386 MappedTextureMap mapped_textures_; | 390 MappedTextureMap mapped_textures_; |
| 387 | 391 |
| 388 scoped_ptr<MappedMemoryManager> mapped_memory_; | 392 scoped_ptr<MappedMemoryManager> mapped_memory_; |
| 389 | 393 |
| 390 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); | 394 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); |
| 391 }; | 395 }; |
| 392 | 396 |
| 393 } // namespace gles2 | 397 } // namespace gles2 |
| 394 } // namespace gpu | 398 } // namespace gpu |
| 395 | 399 |
| 396 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 400 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| 397 | 401 |
| OLD | NEW |