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

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

Issue 1136006: Calling OpenGL from the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
« no previous file with comments | « gpu/command_buffer/client/gles2_demo.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('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) 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 // this to issue cmds at a lower level for certain kinds of optimization. 36 // this to issue cmds at a lower level for certain kinds of optimization.
37 GLES2CmdHelper* helper() const { 37 GLES2CmdHelper* helper() const {
38 return helper_; 38 return helper_;
39 } 39 }
40 40
41 // Include the auto-generated part of this class. We split this because 41 // Include the auto-generated part of this class. We split this because
42 // it means we can easily edit the non-auto generated parts right here in 42 // it means we can easily edit the non-auto generated parts right here in
43 // this file instead of having to edit some template or the code generator. 43 // this file instead of having to edit some template or the code generator.
44 #include "../client/gles2_implementation_autogen.h" 44 #include "../client/gles2_implementation_autogen.h"
45 45
46 private:
47 // Makes a set of Ids for glGen___ functions. 46 // Makes a set of Ids for glGen___ functions.
48 void MakeIds(GLsizei n, GLuint* ids); 47 void MakeIds(GLsizei n, GLuint* ids);
49 48
50 // Frees a set of Ids for glDelete___ functions. 49 // Frees a set of Ids for glDelete___ functions.
51 void FreeIds(GLsizei n, const GLuint* ids); 50 void FreeIds(GLsizei n, const GLuint* ids);
52 51
52 private:
53 // Gets the shared memory id for the result buffer. 53 // Gets the shared memory id for the result buffer.
54 uint32 result_shm_id() const { 54 uint32 result_shm_id() const {
55 return transfer_buffer_id_; 55 return transfer_buffer_id_;
56 } 56 }
57 57
58 // Gets the shared memory offset for the result buffer. 58 // Gets the shared memory offset for the result buffer.
59 uint32 result_shm_offset() const { 59 uint32 result_shm_offset() const {
60 return result_shm_offset_; 60 return result_shm_offset_;
61 } 61 }
62 62
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 GLStringMap gl_strings_; 122 GLStringMap gl_strings_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); 124 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation);
125 }; 125 };
126 126
127 } // namespace gles2 127 } // namespace gles2
128 } // namespace gpu 128 } // namespace gpu
129 129
130 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 130 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
131 131
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_demo.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698