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

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

Issue 5626008: Exposed support for dynamically enabling extensions in command buffer... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698