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

Side by Side Diff: webkit/plugins/ppapi/ppb_open_gl_es_impl.cc

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « webkit/plugins/ppapi/ppb_image_data_impl.cc ('k') | webkit/plugins/ppapi/ppb_pdf.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file is auto-generated. DO NOT EDIT! 5 // This file is auto-generated. DO NOT EDIT!
6 6
7 #include "webkit/glue/plugins/pepper_graphics_3d.h" 7 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h"
8 8
9 #include "gpu/command_buffer/client/gles2_implementation.h" 9 #include "gpu/command_buffer/client/gles2_implementation.h"
10 #include "ppapi/c/dev/ppb_opengles_dev.h" 10 #include "ppapi/c/dev/ppb_opengles_dev.h"
11 11
12 namespace pepper { 12 namespace webkit {
13 namespace ppapi {
13 14
14 namespace { 15 namespace {
15 16
16 void ActiveTexture(GLenum texture) { 17 void ActiveTexture(GLenum texture) {
17 Graphics3D::GetCurrent()->impl()->ActiveTexture(texture); 18 PPB_Graphics3D_Impl::GetCurrent()->impl()->ActiveTexture(texture);
18 } 19 }
19 void AttachShader(GLuint program, GLuint shader) { 20 void AttachShader(GLuint program, GLuint shader) {
20 Graphics3D::GetCurrent()->impl()->AttachShader(program, shader); 21 PPB_Graphics3D_Impl::GetCurrent()->impl()->AttachShader(program, shader);
21 } 22 }
22 void BindAttribLocation(GLuint program, GLuint index, const char* name) { 23 void BindAttribLocation(GLuint program, GLuint index, const char* name) {
23 Graphics3D::GetCurrent()->impl()->BindAttribLocation(program, index, name); 24 PPB_Graphics3D_Impl::GetCurrent()->impl()->BindAttribLocation(program, index, name);
24 } 25 }
25 void BindBuffer(GLenum target, GLuint buffer) { 26 void BindBuffer(GLenum target, GLuint buffer) {
26 Graphics3D::GetCurrent()->impl()->BindBuffer(target, buffer); 27 PPB_Graphics3D_Impl::GetCurrent()->impl()->BindBuffer(target, buffer);
27 } 28 }
28 void BindFramebuffer(GLenum target, GLuint framebuffer) { 29 void BindFramebuffer(GLenum target, GLuint framebuffer) {
29 Graphics3D::GetCurrent()->impl()->BindFramebuffer(target, framebuffer); 30 PPB_Graphics3D_Impl::GetCurrent()->impl()->BindFramebuffer(target, framebuffer );
30 } 31 }
31 void BindRenderbuffer(GLenum target, GLuint renderbuffer) { 32 void BindRenderbuffer(GLenum target, GLuint renderbuffer) {
32 Graphics3D::GetCurrent()->impl()->BindRenderbuffer(target, renderbuffer); 33 PPB_Graphics3D_Impl::GetCurrent()->impl()->BindRenderbuffer(target, renderbuff er);
33 } 34 }
34 void BindTexture(GLenum target, GLuint texture) { 35 void BindTexture(GLenum target, GLuint texture) {
35 Graphics3D::GetCurrent()->impl()->BindTexture(target, texture); 36 PPB_Graphics3D_Impl::GetCurrent()->impl()->BindTexture(target, texture);
36 } 37 }
37 void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { 38 void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
38 Graphics3D::GetCurrent()->impl()->BlendColor(red, green, blue, alpha); 39 PPB_Graphics3D_Impl::GetCurrent()->impl()->BlendColor(red, green, blue, alpha) ;
39 } 40 }
40 void BlendEquation(GLenum mode) { 41 void BlendEquation(GLenum mode) {
41 Graphics3D::GetCurrent()->impl()->BlendEquation(mode); 42 PPB_Graphics3D_Impl::GetCurrent()->impl()->BlendEquation(mode);
42 } 43 }
43 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) { 44 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
44 Graphics3D::GetCurrent()->impl()->BlendEquationSeparate(modeRGB, modeAlpha); 45 PPB_Graphics3D_Impl::GetCurrent()->impl()->BlendEquationSeparate(modeRGB, mode Alpha);
45 } 46 }
46 void BlendFunc(GLenum sfactor, GLenum dfactor) { 47 void BlendFunc(GLenum sfactor, GLenum dfactor) {
47 Graphics3D::GetCurrent()->impl()->BlendFunc(sfactor, dfactor); 48 PPB_Graphics3D_Impl::GetCurrent()->impl()->BlendFunc(sfactor, dfactor);
48 } 49 }
49 void BlendFuncSeparate( 50 void BlendFuncSeparate(
50 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { 51 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) {
51 Graphics3D::GetCurrent()->impl()->BlendFuncSeparate( 52 PPB_Graphics3D_Impl::GetCurrent()->impl()->BlendFuncSeparate(
52 srcRGB, dstRGB, srcAlpha, dstAlpha); 53 srcRGB, dstRGB, srcAlpha, dstAlpha);
53 } 54 }
54 void BufferData( 55 void BufferData(
55 GLenum target, GLsizeiptr size, const void* data, GLenum usage) { 56 GLenum target, GLsizeiptr size, const void* data, GLenum usage) {
56 Graphics3D::GetCurrent()->impl()->BufferData(target, size, data, usage); 57 PPB_Graphics3D_Impl::GetCurrent()->impl()->BufferData(target, size, data, usag e);
57 } 58 }
58 void BufferSubData( 59 void BufferSubData(
59 GLenum target, GLintptr offset, GLsizeiptr size, const void* data) { 60 GLenum target, GLintptr offset, GLsizeiptr size, const void* data) {
60 Graphics3D::GetCurrent()->impl()->BufferSubData(target, offset, size, data); 61 PPB_Graphics3D_Impl::GetCurrent()->impl()->BufferSubData(target, offset, size, data);
61 } 62 }
62 GLenum CheckFramebufferStatus(GLenum target) { 63 GLenum CheckFramebufferStatus(GLenum target) {
63 return Graphics3D::GetCurrent()->impl()->CheckFramebufferStatus(target); 64 return PPB_Graphics3D_Impl::GetCurrent()->impl()->CheckFramebufferStatus(targe t);
64 } 65 }
65 void Clear(GLbitfield mask) { 66 void Clear(GLbitfield mask) {
66 Graphics3D::GetCurrent()->impl()->Clear(mask); 67 PPB_Graphics3D_Impl::GetCurrent()->impl()->Clear(mask);
67 } 68 }
68 void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { 69 void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
69 Graphics3D::GetCurrent()->impl()->ClearColor(red, green, blue, alpha); 70 PPB_Graphics3D_Impl::GetCurrent()->impl()->ClearColor(red, green, blue, alpha) ;
70 } 71 }
71 void ClearDepthf(GLclampf depth) { 72 void ClearDepthf(GLclampf depth) {
72 Graphics3D::GetCurrent()->impl()->ClearDepthf(depth); 73 PPB_Graphics3D_Impl::GetCurrent()->impl()->ClearDepthf(depth);
73 } 74 }
74 void ClearStencil(GLint s) { 75 void ClearStencil(GLint s) {
75 Graphics3D::GetCurrent()->impl()->ClearStencil(s); 76 PPB_Graphics3D_Impl::GetCurrent()->impl()->ClearStencil(s);
76 } 77 }
77 void ColorMask( 78 void ColorMask(
78 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { 79 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) {
79 Graphics3D::GetCurrent()->impl()->ColorMask(red, green, blue, alpha); 80 PPB_Graphics3D_Impl::GetCurrent()->impl()->ColorMask(red, green, blue, alpha);
80 } 81 }
81 void CompileShader(GLuint shader) { 82 void CompileShader(GLuint shader) {
82 Graphics3D::GetCurrent()->impl()->CompileShader(shader); 83 PPB_Graphics3D_Impl::GetCurrent()->impl()->CompileShader(shader);
83 } 84 }
84 void CompressedTexImage2D( 85 void CompressedTexImage2D(
85 GLenum target, GLint level, GLenum internalformat, GLsizei width, 86 GLenum target, GLint level, GLenum internalformat, GLsizei width,
86 GLsizei height, GLint border, GLsizei imageSize, const void* data) { 87 GLsizei height, GLint border, GLsizei imageSize, const void* data) {
87 Graphics3D::GetCurrent()->impl()->CompressedTexImage2D( 88 PPB_Graphics3D_Impl::GetCurrent()->impl()->CompressedTexImage2D(
88 target, level, internalformat, width, height, border, imageSize, data); 89 target, level, internalformat, width, height, border, imageSize, data);
89 } 90 }
90 void CompressedTexSubImage2D( 91 void CompressedTexSubImage2D(
91 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 92 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
92 GLsizei height, GLenum format, GLsizei imageSize, const void* data) { 93 GLsizei height, GLenum format, GLsizei imageSize, const void* data) {
93 Graphics3D::GetCurrent()->impl()->CompressedTexSubImage2D( 94 PPB_Graphics3D_Impl::GetCurrent()->impl()->CompressedTexSubImage2D(
94 target, level, xoffset, yoffset, width, height, format, imageSize, data); 95 target, level, xoffset, yoffset, width, height, format, imageSize, data);
95 } 96 }
96 void CopyTexImage2D( 97 void CopyTexImage2D(
97 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, 98 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y,
98 GLsizei width, GLsizei height, GLint border) { 99 GLsizei width, GLsizei height, GLint border) {
99 Graphics3D::GetCurrent()->impl()->CopyTexImage2D( 100 PPB_Graphics3D_Impl::GetCurrent()->impl()->CopyTexImage2D(
100 target, level, internalformat, x, y, width, height, border); 101 target, level, internalformat, x, y, width, height, border);
101 } 102 }
102 void CopyTexSubImage2D( 103 void CopyTexSubImage2D(
103 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, 104 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y,
104 GLsizei width, GLsizei height) { 105 GLsizei width, GLsizei height) {
105 Graphics3D::GetCurrent()->impl()->CopyTexSubImage2D( 106 PPB_Graphics3D_Impl::GetCurrent()->impl()->CopyTexSubImage2D(
106 target, level, xoffset, yoffset, x, y, width, height); 107 target, level, xoffset, yoffset, x, y, width, height);
107 } 108 }
108 GLuint CreateProgram() { 109 GLuint CreateProgram() {
109 return Graphics3D::GetCurrent()->impl()->CreateProgram(); 110 return PPB_Graphics3D_Impl::GetCurrent()->impl()->CreateProgram();
110 } 111 }
111 GLuint CreateShader(GLenum type) { 112 GLuint CreateShader(GLenum type) {
112 return Graphics3D::GetCurrent()->impl()->CreateShader(type); 113 return PPB_Graphics3D_Impl::GetCurrent()->impl()->CreateShader(type);
113 } 114 }
114 void CullFace(GLenum mode) { 115 void CullFace(GLenum mode) {
115 Graphics3D::GetCurrent()->impl()->CullFace(mode); 116 PPB_Graphics3D_Impl::GetCurrent()->impl()->CullFace(mode);
116 } 117 }
117 void DeleteBuffers(GLsizei n, const GLuint* buffers) { 118 void DeleteBuffers(GLsizei n, const GLuint* buffers) {
118 Graphics3D::GetCurrent()->impl()->DeleteBuffers(n, buffers); 119 PPB_Graphics3D_Impl::GetCurrent()->impl()->DeleteBuffers(n, buffers);
119 } 120 }
120 void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) { 121 void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
121 Graphics3D::GetCurrent()->impl()->DeleteFramebuffers(n, framebuffers); 122 PPB_Graphics3D_Impl::GetCurrent()->impl()->DeleteFramebuffers(n, framebuffers) ;
122 } 123 }
123 void DeleteProgram(GLuint program) { 124 void DeleteProgram(GLuint program) {
124 Graphics3D::GetCurrent()->impl()->DeleteProgram(program); 125 PPB_Graphics3D_Impl::GetCurrent()->impl()->DeleteProgram(program);
125 } 126 }
126 void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) { 127 void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) {
127 Graphics3D::GetCurrent()->impl()->DeleteRenderbuffers(n, renderbuffers); 128 PPB_Graphics3D_Impl::GetCurrent()->impl()->DeleteRenderbuffers(n, renderbuffer s);
128 } 129 }
129 void DeleteShader(GLuint shader) { 130 void DeleteShader(GLuint shader) {
130 Graphics3D::GetCurrent()->impl()->DeleteShader(shader); 131 PPB_Graphics3D_Impl::GetCurrent()->impl()->DeleteShader(shader);
131 } 132 }
132 void DeleteTextures(GLsizei n, const GLuint* textures) { 133 void DeleteTextures(GLsizei n, const GLuint* textures) {
133 Graphics3D::GetCurrent()->impl()->DeleteTextures(n, textures); 134 PPB_Graphics3D_Impl::GetCurrent()->impl()->DeleteTextures(n, textures);
134 } 135 }
135 void DepthFunc(GLenum func) { 136 void DepthFunc(GLenum func) {
136 Graphics3D::GetCurrent()->impl()->DepthFunc(func); 137 PPB_Graphics3D_Impl::GetCurrent()->impl()->DepthFunc(func);
137 } 138 }
138 void DepthMask(GLboolean flag) { 139 void DepthMask(GLboolean flag) {
139 Graphics3D::GetCurrent()->impl()->DepthMask(flag); 140 PPB_Graphics3D_Impl::GetCurrent()->impl()->DepthMask(flag);
140 } 141 }
141 void DepthRangef(GLclampf zNear, GLclampf zFar) { 142 void DepthRangef(GLclampf zNear, GLclampf zFar) {
142 Graphics3D::GetCurrent()->impl()->DepthRangef(zNear, zFar); 143 PPB_Graphics3D_Impl::GetCurrent()->impl()->DepthRangef(zNear, zFar);
143 } 144 }
144 void DetachShader(GLuint program, GLuint shader) { 145 void DetachShader(GLuint program, GLuint shader) {
145 Graphics3D::GetCurrent()->impl()->DetachShader(program, shader); 146 PPB_Graphics3D_Impl::GetCurrent()->impl()->DetachShader(program, shader);
146 } 147 }
147 void Disable(GLenum cap) { 148 void Disable(GLenum cap) {
148 Graphics3D::GetCurrent()->impl()->Disable(cap); 149 PPB_Graphics3D_Impl::GetCurrent()->impl()->Disable(cap);
149 } 150 }
150 void DisableVertexAttribArray(GLuint index) { 151 void DisableVertexAttribArray(GLuint index) {
151 Graphics3D::GetCurrent()->impl()->DisableVertexAttribArray(index); 152 PPB_Graphics3D_Impl::GetCurrent()->impl()->DisableVertexAttribArray(index);
152 } 153 }
153 void DrawArrays(GLenum mode, GLint first, GLsizei count) { 154 void DrawArrays(GLenum mode, GLint first, GLsizei count) {
154 Graphics3D::GetCurrent()->impl()->DrawArrays(mode, first, count); 155 PPB_Graphics3D_Impl::GetCurrent()->impl()->DrawArrays(mode, first, count);
155 } 156 }
156 void DrawElements( 157 void DrawElements(
157 GLenum mode, GLsizei count, GLenum type, const void* indices) { 158 GLenum mode, GLsizei count, GLenum type, const void* indices) {
158 Graphics3D::GetCurrent()->impl()->DrawElements(mode, count, type, indices); 159 PPB_Graphics3D_Impl::GetCurrent()->impl()->DrawElements(mode, count, type, ind ices);
159 } 160 }
160 void Enable(GLenum cap) { 161 void Enable(GLenum cap) {
161 Graphics3D::GetCurrent()->impl()->Enable(cap); 162 PPB_Graphics3D_Impl::GetCurrent()->impl()->Enable(cap);
162 } 163 }
163 void EnableVertexAttribArray(GLuint index) { 164 void EnableVertexAttribArray(GLuint index) {
164 Graphics3D::GetCurrent()->impl()->EnableVertexAttribArray(index); 165 PPB_Graphics3D_Impl::GetCurrent()->impl()->EnableVertexAttribArray(index);
165 } 166 }
166 void Finish() { 167 void Finish() {
167 Graphics3D::GetCurrent()->impl()->Finish(); 168 PPB_Graphics3D_Impl::GetCurrent()->impl()->Finish();
168 } 169 }
169 void Flush() { 170 void Flush() {
170 Graphics3D::GetCurrent()->impl()->Flush(); 171 PPB_Graphics3D_Impl::GetCurrent()->impl()->Flush();
171 } 172 }
172 void FramebufferRenderbuffer( 173 void FramebufferRenderbuffer(
173 GLenum target, GLenum attachment, GLenum renderbuffertarget, 174 GLenum target, GLenum attachment, GLenum renderbuffertarget,
174 GLuint renderbuffer) { 175 GLuint renderbuffer) {
175 Graphics3D::GetCurrent()->impl()->FramebufferRenderbuffer( 176 PPB_Graphics3D_Impl::GetCurrent()->impl()->FramebufferRenderbuffer(
176 target, attachment, renderbuffertarget, renderbuffer); 177 target, attachment, renderbuffertarget, renderbuffer);
177 } 178 }
178 void FramebufferTexture2D( 179 void FramebufferTexture2D(
179 GLenum target, GLenum attachment, GLenum textarget, GLuint texture, 180 GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
180 GLint level) { 181 GLint level) {
181 Graphics3D::GetCurrent()->impl()->FramebufferTexture2D( 182 PPB_Graphics3D_Impl::GetCurrent()->impl()->FramebufferTexture2D(
182 target, attachment, textarget, texture, level); 183 target, attachment, textarget, texture, level);
183 } 184 }
184 void FrontFace(GLenum mode) { 185 void FrontFace(GLenum mode) {
185 Graphics3D::GetCurrent()->impl()->FrontFace(mode); 186 PPB_Graphics3D_Impl::GetCurrent()->impl()->FrontFace(mode);
186 } 187 }
187 void GenBuffers(GLsizei n, GLuint* buffers) { 188 void GenBuffers(GLsizei n, GLuint* buffers) {
188 Graphics3D::GetCurrent()->impl()->GenBuffers(n, buffers); 189 PPB_Graphics3D_Impl::GetCurrent()->impl()->GenBuffers(n, buffers);
189 } 190 }
190 void GenerateMipmap(GLenum target) { 191 void GenerateMipmap(GLenum target) {
191 Graphics3D::GetCurrent()->impl()->GenerateMipmap(target); 192 PPB_Graphics3D_Impl::GetCurrent()->impl()->GenerateMipmap(target);
192 } 193 }
193 void GenFramebuffers(GLsizei n, GLuint* framebuffers) { 194 void GenFramebuffers(GLsizei n, GLuint* framebuffers) {
194 Graphics3D::GetCurrent()->impl()->GenFramebuffers(n, framebuffers); 195 PPB_Graphics3D_Impl::GetCurrent()->impl()->GenFramebuffers(n, framebuffers);
195 } 196 }
196 void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) { 197 void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
197 Graphics3D::GetCurrent()->impl()->GenRenderbuffers(n, renderbuffers); 198 PPB_Graphics3D_Impl::GetCurrent()->impl()->GenRenderbuffers(n, renderbuffers);
198 } 199 }
199 void GenTextures(GLsizei n, GLuint* textures) { 200 void GenTextures(GLsizei n, GLuint* textures) {
200 Graphics3D::GetCurrent()->impl()->GenTextures(n, textures); 201 PPB_Graphics3D_Impl::GetCurrent()->impl()->GenTextures(n, textures);
201 } 202 }
202 void GetActiveAttrib( 203 void GetActiveAttrib(
203 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, 204 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
204 GLenum* type, char* name) { 205 GLenum* type, char* name) {
205 Graphics3D::GetCurrent()->impl()->GetActiveAttrib( 206 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetActiveAttrib(
206 program, index, bufsize, length, size, type, name); 207 program, index, bufsize, length, size, type, name);
207 } 208 }
208 void GetActiveUniform( 209 void GetActiveUniform(
209 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, 210 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
210 GLenum* type, char* name) { 211 GLenum* type, char* name) {
211 Graphics3D::GetCurrent()->impl()->GetActiveUniform( 212 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetActiveUniform(
212 program, index, bufsize, length, size, type, name); 213 program, index, bufsize, length, size, type, name);
213 } 214 }
214 void GetAttachedShaders( 215 void GetAttachedShaders(
215 GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) { 216 GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) {
216 Graphics3D::GetCurrent()->impl()->GetAttachedShaders( 217 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetAttachedShaders(
217 program, maxcount, count, shaders); 218 program, maxcount, count, shaders);
218 } 219 }
219 GLint GetAttribLocation(GLuint program, const char* name) { 220 GLint GetAttribLocation(GLuint program, const char* name) {
220 return Graphics3D::GetCurrent()->impl()->GetAttribLocation(program, name); 221 return PPB_Graphics3D_Impl::GetCurrent()->impl()->GetAttribLocation(program, n ame);
221 } 222 }
222 void GetBooleanv(GLenum pname, GLboolean* params) { 223 void GetBooleanv(GLenum pname, GLboolean* params) {
223 Graphics3D::GetCurrent()->impl()->GetBooleanv(pname, params); 224 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetBooleanv(pname, params);
224 } 225 }
225 void GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) { 226 void GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) {
226 Graphics3D::GetCurrent()->impl()->GetBufferParameteriv( 227 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetBufferParameteriv(
227 target, pname, params); 228 target, pname, params);
228 } 229 }
229 GLenum GetError() { 230 GLenum GetError() {
230 return Graphics3D::GetCurrent()->impl()->GetError(); 231 return PPB_Graphics3D_Impl::GetCurrent()->impl()->GetError();
231 } 232 }
232 void GetFloatv(GLenum pname, GLfloat* params) { 233 void GetFloatv(GLenum pname, GLfloat* params) {
233 Graphics3D::GetCurrent()->impl()->GetFloatv(pname, params); 234 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetFloatv(pname, params);
234 } 235 }
235 void GetFramebufferAttachmentParameteriv( 236 void GetFramebufferAttachmentParameteriv(
236 GLenum target, GLenum attachment, GLenum pname, GLint* params) { 237 GLenum target, GLenum attachment, GLenum pname, GLint* params) {
237 Graphics3D::GetCurrent()->impl()->GetFramebufferAttachmentParameteriv( 238 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetFramebufferAttachmentParameteriv (
238 target, attachment, pname, params); 239 target, attachment, pname, params);
239 } 240 }
240 void GetIntegerv(GLenum pname, GLint* params) { 241 void GetIntegerv(GLenum pname, GLint* params) {
241 Graphics3D::GetCurrent()->impl()->GetIntegerv(pname, params); 242 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetIntegerv(pname, params);
242 } 243 }
243 void GetProgramiv(GLuint program, GLenum pname, GLint* params) { 244 void GetProgramiv(GLuint program, GLenum pname, GLint* params) {
244 Graphics3D::GetCurrent()->impl()->GetProgramiv(program, pname, params); 245 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetProgramiv(program, pname, params );
245 } 246 }
246 void GetProgramInfoLog( 247 void GetProgramInfoLog(
247 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) { 248 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) {
248 Graphics3D::GetCurrent()->impl()->GetProgramInfoLog( 249 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetProgramInfoLog(
249 program, bufsize, length, infolog); 250 program, bufsize, length, infolog);
250 } 251 }
251 void GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) { 252 void GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) {
252 Graphics3D::GetCurrent()->impl()->GetRenderbufferParameteriv( 253 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetRenderbufferParameteriv(
253 target, pname, params); 254 target, pname, params);
254 } 255 }
255 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) { 256 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) {
256 Graphics3D::GetCurrent()->impl()->GetShaderiv(shader, pname, params); 257 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetShaderiv(shader, pname, params);
257 } 258 }
258 void GetShaderInfoLog( 259 void GetShaderInfoLog(
259 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) { 260 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) {
260 Graphics3D::GetCurrent()->impl()->GetShaderInfoLog( 261 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetShaderInfoLog(
261 shader, bufsize, length, infolog); 262 shader, bufsize, length, infolog);
262 } 263 }
263 void GetShaderPrecisionFormat( 264 void GetShaderPrecisionFormat(
264 GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) { 265 GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) {
265 Graphics3D::GetCurrent()->impl()->GetShaderPrecisionFormat( 266 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetShaderPrecisionFormat(
266 shadertype, precisiontype, range, precision); 267 shadertype, precisiontype, range, precision);
267 } 268 }
268 void GetShaderSource( 269 void GetShaderSource(
269 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) { 270 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) {
270 Graphics3D::GetCurrent()->impl()->GetShaderSource( 271 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetShaderSource(
271 shader, bufsize, length, source); 272 shader, bufsize, length, source);
272 } 273 }
273 const GLubyte* GetString(GLenum name) { 274 const GLubyte* GetString(GLenum name) {
274 return Graphics3D::GetCurrent()->impl()->GetString(name); 275 return PPB_Graphics3D_Impl::GetCurrent()->impl()->GetString(name);
275 } 276 }
276 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) { 277 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) {
277 Graphics3D::GetCurrent()->impl()->GetTexParameterfv(target, pname, params); 278 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetTexParameterfv(target, pname, pa rams);
278 } 279 }
279 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) { 280 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) {
280 Graphics3D::GetCurrent()->impl()->GetTexParameteriv(target, pname, params); 281 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetTexParameteriv(target, pname, pa rams);
281 } 282 }
282 void GetUniformfv(GLuint program, GLint location, GLfloat* params) { 283 void GetUniformfv(GLuint program, GLint location, GLfloat* params) {
283 Graphics3D::GetCurrent()->impl()->GetUniformfv(program, location, params); 284 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetUniformfv(program, location, par ams);
284 } 285 }
285 void GetUniformiv(GLuint program, GLint location, GLint* params) { 286 void GetUniformiv(GLuint program, GLint location, GLint* params) {
286 Graphics3D::GetCurrent()->impl()->GetUniformiv(program, location, params); 287 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetUniformiv(program, location, par ams);
287 } 288 }
288 GLint GetUniformLocation(GLuint program, const char* name) { 289 GLint GetUniformLocation(GLuint program, const char* name) {
289 return Graphics3D::GetCurrent()->impl()->GetUniformLocation(program, name); 290 return PPB_Graphics3D_Impl::GetCurrent()->impl()->GetUniformLocation(program, name);
290 } 291 }
291 void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) { 292 void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) {
292 Graphics3D::GetCurrent()->impl()->GetVertexAttribfv(index, pname, params); 293 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetVertexAttribfv(index, pname, par ams);
293 } 294 }
294 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) { 295 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) {
295 Graphics3D::GetCurrent()->impl()->GetVertexAttribiv(index, pname, params); 296 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetVertexAttribiv(index, pname, par ams);
296 } 297 }
297 void GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) { 298 void GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) {
298 Graphics3D::GetCurrent()->impl()->GetVertexAttribPointerv( 299 PPB_Graphics3D_Impl::GetCurrent()->impl()->GetVertexAttribPointerv(
299 index, pname, pointer); 300 index, pname, pointer);
300 } 301 }
301 void Hint(GLenum target, GLenum mode) { 302 void Hint(GLenum target, GLenum mode) {
302 Graphics3D::GetCurrent()->impl()->Hint(target, mode); 303 PPB_Graphics3D_Impl::GetCurrent()->impl()->Hint(target, mode);
303 } 304 }
304 GLboolean IsBuffer(GLuint buffer) { 305 GLboolean IsBuffer(GLuint buffer) {
305 return Graphics3D::GetCurrent()->impl()->IsBuffer(buffer); 306 return PPB_Graphics3D_Impl::GetCurrent()->impl()->IsBuffer(buffer);
306 } 307 }
307 GLboolean IsEnabled(GLenum cap) { 308 GLboolean IsEnabled(GLenum cap) {
308 return Graphics3D::GetCurrent()->impl()->IsEnabled(cap); 309 return PPB_Graphics3D_Impl::GetCurrent()->impl()->IsEnabled(cap);
309 } 310 }
310 GLboolean IsFramebuffer(GLuint framebuffer) { 311 GLboolean IsFramebuffer(GLuint framebuffer) {
311 return Graphics3D::GetCurrent()->impl()->IsFramebuffer(framebuffer); 312 return PPB_Graphics3D_Impl::GetCurrent()->impl()->IsFramebuffer(framebuffer);
312 } 313 }
313 GLboolean IsProgram(GLuint program) { 314 GLboolean IsProgram(GLuint program) {
314 return Graphics3D::GetCurrent()->impl()->IsProgram(program); 315 return PPB_Graphics3D_Impl::GetCurrent()->impl()->IsProgram(program);
315 } 316 }
316 GLboolean IsRenderbuffer(GLuint renderbuffer) { 317 GLboolean IsRenderbuffer(GLuint renderbuffer) {
317 return Graphics3D::GetCurrent()->impl()->IsRenderbuffer(renderbuffer); 318 return PPB_Graphics3D_Impl::GetCurrent()->impl()->IsRenderbuffer(renderbuffer) ;
318 } 319 }
319 GLboolean IsShader(GLuint shader) { 320 GLboolean IsShader(GLuint shader) {
320 return Graphics3D::GetCurrent()->impl()->IsShader(shader); 321 return PPB_Graphics3D_Impl::GetCurrent()->impl()->IsShader(shader);
321 } 322 }
322 GLboolean IsTexture(GLuint texture) { 323 GLboolean IsTexture(GLuint texture) {
323 return Graphics3D::GetCurrent()->impl()->IsTexture(texture); 324 return PPB_Graphics3D_Impl::GetCurrent()->impl()->IsTexture(texture);
324 } 325 }
325 void LineWidth(GLfloat width) { 326 void LineWidth(GLfloat width) {
326 Graphics3D::GetCurrent()->impl()->LineWidth(width); 327 PPB_Graphics3D_Impl::GetCurrent()->impl()->LineWidth(width);
327 } 328 }
328 void LinkProgram(GLuint program) { 329 void LinkProgram(GLuint program) {
329 Graphics3D::GetCurrent()->impl()->LinkProgram(program); 330 PPB_Graphics3D_Impl::GetCurrent()->impl()->LinkProgram(program);
330 } 331 }
331 void PixelStorei(GLenum pname, GLint param) { 332 void PixelStorei(GLenum pname, GLint param) {
332 Graphics3D::GetCurrent()->impl()->PixelStorei(pname, param); 333 PPB_Graphics3D_Impl::GetCurrent()->impl()->PixelStorei(pname, param);
333 } 334 }
334 void PolygonOffset(GLfloat factor, GLfloat units) { 335 void PolygonOffset(GLfloat factor, GLfloat units) {
335 Graphics3D::GetCurrent()->impl()->PolygonOffset(factor, units); 336 PPB_Graphics3D_Impl::GetCurrent()->impl()->PolygonOffset(factor, units);
336 } 337 }
337 void ReadPixels( 338 void ReadPixels(
338 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, 339 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type,
339 void* pixels) { 340 void* pixels) {
340 Graphics3D::GetCurrent()->impl()->ReadPixels( 341 PPB_Graphics3D_Impl::GetCurrent()->impl()->ReadPixels(
341 x, y, width, height, format, type, pixels); 342 x, y, width, height, format, type, pixels);
342 } 343 }
343 void ReleaseShaderCompiler() { 344 void ReleaseShaderCompiler() {
344 Graphics3D::GetCurrent()->impl()->ReleaseShaderCompiler(); 345 PPB_Graphics3D_Impl::GetCurrent()->impl()->ReleaseShaderCompiler();
345 } 346 }
346 void RenderbufferStorage( 347 void RenderbufferStorage(
347 GLenum target, GLenum internalformat, GLsizei width, GLsizei height) { 348 GLenum target, GLenum internalformat, GLsizei width, GLsizei height) {
348 Graphics3D::GetCurrent()->impl()->RenderbufferStorage( 349 PPB_Graphics3D_Impl::GetCurrent()->impl()->RenderbufferStorage(
349 target, internalformat, width, height); 350 target, internalformat, width, height);
350 } 351 }
351 void SampleCoverage(GLclampf value, GLboolean invert) { 352 void SampleCoverage(GLclampf value, GLboolean invert) {
352 Graphics3D::GetCurrent()->impl()->SampleCoverage(value, invert); 353 PPB_Graphics3D_Impl::GetCurrent()->impl()->SampleCoverage(value, invert);
353 } 354 }
354 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) { 355 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
355 Graphics3D::GetCurrent()->impl()->Scissor(x, y, width, height); 356 PPB_Graphics3D_Impl::GetCurrent()->impl()->Scissor(x, y, width, height);
356 } 357 }
357 void ShaderBinary( 358 void ShaderBinary(
358 GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, 359 GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary,
359 GLsizei length) { 360 GLsizei length) {
360 Graphics3D::GetCurrent()->impl()->ShaderBinary( 361 PPB_Graphics3D_Impl::GetCurrent()->impl()->ShaderBinary(
361 n, shaders, binaryformat, binary, length); 362 n, shaders, binaryformat, binary, length);
362 } 363 }
363 void ShaderSource( 364 void ShaderSource(
364 GLuint shader, GLsizei count, const char** str, const GLint* length) { 365 GLuint shader, GLsizei count, const char** str, const GLint* length) {
365 Graphics3D::GetCurrent()->impl()->ShaderSource(shader, count, str, length); 366 PPB_Graphics3D_Impl::GetCurrent()->impl()->ShaderSource(shader, count, str, le ngth);
366 } 367 }
367 void StencilFunc(GLenum func, GLint ref, GLuint mask) { 368 void StencilFunc(GLenum func, GLint ref, GLuint mask) {
368 Graphics3D::GetCurrent()->impl()->StencilFunc(func, ref, mask); 369 PPB_Graphics3D_Impl::GetCurrent()->impl()->StencilFunc(func, ref, mask);
369 } 370 }
370 void StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) { 371 void StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) {
371 Graphics3D::GetCurrent()->impl()->StencilFuncSeparate(face, func, ref, mask); 372 PPB_Graphics3D_Impl::GetCurrent()->impl()->StencilFuncSeparate(face, func, ref , mask);
372 } 373 }
373 void StencilMask(GLuint mask) { 374 void StencilMask(GLuint mask) {
374 Graphics3D::GetCurrent()->impl()->StencilMask(mask); 375 PPB_Graphics3D_Impl::GetCurrent()->impl()->StencilMask(mask);
375 } 376 }
376 void StencilMaskSeparate(GLenum face, GLuint mask) { 377 void StencilMaskSeparate(GLenum face, GLuint mask) {
377 Graphics3D::GetCurrent()->impl()->StencilMaskSeparate(face, mask); 378 PPB_Graphics3D_Impl::GetCurrent()->impl()->StencilMaskSeparate(face, mask);
378 } 379 }
379 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) { 380 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
380 Graphics3D::GetCurrent()->impl()->StencilOp(fail, zfail, zpass); 381 PPB_Graphics3D_Impl::GetCurrent()->impl()->StencilOp(fail, zfail, zpass);
381 } 382 }
382 void StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { 383 void StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) {
383 Graphics3D::GetCurrent()->impl()->StencilOpSeparate( 384 PPB_Graphics3D_Impl::GetCurrent()->impl()->StencilOpSeparate(
384 face, fail, zfail, zpass); 385 face, fail, zfail, zpass);
385 } 386 }
386 void TexImage2D( 387 void TexImage2D(
387 GLenum target, GLint level, GLint internalformat, GLsizei width, 388 GLenum target, GLint level, GLint internalformat, GLsizei width,
388 GLsizei height, GLint border, GLenum format, GLenum type, 389 GLsizei height, GLint border, GLenum format, GLenum type,
389 const void* pixels) { 390 const void* pixels) {
390 Graphics3D::GetCurrent()->impl()->TexImage2D( 391 PPB_Graphics3D_Impl::GetCurrent()->impl()->TexImage2D(
391 target, level, internalformat, width, height, border, format, type, 392 target, level, internalformat, width, height, border, format, type,
392 pixels); 393 pixels);
393 } 394 }
394 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { 395 void TexParameterf(GLenum target, GLenum pname, GLfloat param) {
395 Graphics3D::GetCurrent()->impl()->TexParameterf(target, pname, param); 396 PPB_Graphics3D_Impl::GetCurrent()->impl()->TexParameterf(target, pname, param) ;
396 } 397 }
397 void TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) { 398 void TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) {
398 Graphics3D::GetCurrent()->impl()->TexParameterfv(target, pname, params); 399 PPB_Graphics3D_Impl::GetCurrent()->impl()->TexParameterfv(target, pname, param s);
399 } 400 }
400 void TexParameteri(GLenum target, GLenum pname, GLint param) { 401 void TexParameteri(GLenum target, GLenum pname, GLint param) {
401 Graphics3D::GetCurrent()->impl()->TexParameteri(target, pname, param); 402 PPB_Graphics3D_Impl::GetCurrent()->impl()->TexParameteri(target, pname, param) ;
402 } 403 }
403 void TexParameteriv(GLenum target, GLenum pname, const GLint* params) { 404 void TexParameteriv(GLenum target, GLenum pname, const GLint* params) {
404 Graphics3D::GetCurrent()->impl()->TexParameteriv(target, pname, params); 405 PPB_Graphics3D_Impl::GetCurrent()->impl()->TexParameteriv(target, pname, param s);
405 } 406 }
406 void TexSubImage2D( 407 void TexSubImage2D(
407 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 408 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
408 GLsizei height, GLenum format, GLenum type, const void* pixels) { 409 GLsizei height, GLenum format, GLenum type, const void* pixels) {
409 Graphics3D::GetCurrent()->impl()->TexSubImage2D( 410 PPB_Graphics3D_Impl::GetCurrent()->impl()->TexSubImage2D(
410 target, level, xoffset, yoffset, width, height, format, type, pixels); 411 target, level, xoffset, yoffset, width, height, format, type, pixels);
411 } 412 }
412 void Uniform1f(GLint location, GLfloat x) { 413 void Uniform1f(GLint location, GLfloat x) {
413 Graphics3D::GetCurrent()->impl()->Uniform1f(location, x); 414 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform1f(location, x);
414 } 415 }
415 void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) { 416 void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) {
416 Graphics3D::GetCurrent()->impl()->Uniform1fv(location, count, v); 417 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform1fv(location, count, v);
417 } 418 }
418 void Uniform1i(GLint location, GLint x) { 419 void Uniform1i(GLint location, GLint x) {
419 Graphics3D::GetCurrent()->impl()->Uniform1i(location, x); 420 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform1i(location, x);
420 } 421 }
421 void Uniform1iv(GLint location, GLsizei count, const GLint* v) { 422 void Uniform1iv(GLint location, GLsizei count, const GLint* v) {
422 Graphics3D::GetCurrent()->impl()->Uniform1iv(location, count, v); 423 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform1iv(location, count, v);
423 } 424 }
424 void Uniform2f(GLint location, GLfloat x, GLfloat y) { 425 void Uniform2f(GLint location, GLfloat x, GLfloat y) {
425 Graphics3D::GetCurrent()->impl()->Uniform2f(location, x, y); 426 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform2f(location, x, y);
426 } 427 }
427 void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) { 428 void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) {
428 Graphics3D::GetCurrent()->impl()->Uniform2fv(location, count, v); 429 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform2fv(location, count, v);
429 } 430 }
430 void Uniform2i(GLint location, GLint x, GLint y) { 431 void Uniform2i(GLint location, GLint x, GLint y) {
431 Graphics3D::GetCurrent()->impl()->Uniform2i(location, x, y); 432 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform2i(location, x, y);
432 } 433 }
433 void Uniform2iv(GLint location, GLsizei count, const GLint* v) { 434 void Uniform2iv(GLint location, GLsizei count, const GLint* v) {
434 Graphics3D::GetCurrent()->impl()->Uniform2iv(location, count, v); 435 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform2iv(location, count, v);
435 } 436 }
436 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { 437 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
437 Graphics3D::GetCurrent()->impl()->Uniform3f(location, x, y, z); 438 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform3f(location, x, y, z);
438 } 439 }
439 void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) { 440 void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) {
440 Graphics3D::GetCurrent()->impl()->Uniform3fv(location, count, v); 441 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform3fv(location, count, v);
441 } 442 }
442 void Uniform3i(GLint location, GLint x, GLint y, GLint z) { 443 void Uniform3i(GLint location, GLint x, GLint y, GLint z) {
443 Graphics3D::GetCurrent()->impl()->Uniform3i(location, x, y, z); 444 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform3i(location, x, y, z);
444 } 445 }
445 void Uniform3iv(GLint location, GLsizei count, const GLint* v) { 446 void Uniform3iv(GLint location, GLsizei count, const GLint* v) {
446 Graphics3D::GetCurrent()->impl()->Uniform3iv(location, count, v); 447 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform3iv(location, count, v);
447 } 448 }
448 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { 449 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
449 Graphics3D::GetCurrent()->impl()->Uniform4f(location, x, y, z, w); 450 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform4f(location, x, y, z, w);
450 } 451 }
451 void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) { 452 void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) {
452 Graphics3D::GetCurrent()->impl()->Uniform4fv(location, count, v); 453 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform4fv(location, count, v);
453 } 454 }
454 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { 455 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
455 Graphics3D::GetCurrent()->impl()->Uniform4i(location, x, y, z, w); 456 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform4i(location, x, y, z, w);
456 } 457 }
457 void Uniform4iv(GLint location, GLsizei count, const GLint* v) { 458 void Uniform4iv(GLint location, GLsizei count, const GLint* v) {
458 Graphics3D::GetCurrent()->impl()->Uniform4iv(location, count, v); 459 PPB_Graphics3D_Impl::GetCurrent()->impl()->Uniform4iv(location, count, v);
459 } 460 }
460 void UniformMatrix2fv( 461 void UniformMatrix2fv(
461 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { 462 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) {
462 Graphics3D::GetCurrent()->impl()->UniformMatrix2fv( 463 PPB_Graphics3D_Impl::GetCurrent()->impl()->UniformMatrix2fv(
463 location, count, transpose, value); 464 location, count, transpose, value);
464 } 465 }
465 void UniformMatrix3fv( 466 void UniformMatrix3fv(
466 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { 467 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) {
467 Graphics3D::GetCurrent()->impl()->UniformMatrix3fv( 468 PPB_Graphics3D_Impl::GetCurrent()->impl()->UniformMatrix3fv(
468 location, count, transpose, value); 469 location, count, transpose, value);
469 } 470 }
470 void UniformMatrix4fv( 471 void UniformMatrix4fv(
471 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { 472 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) {
472 Graphics3D::GetCurrent()->impl()->UniformMatrix4fv( 473 PPB_Graphics3D_Impl::GetCurrent()->impl()->UniformMatrix4fv(
473 location, count, transpose, value); 474 location, count, transpose, value);
474 } 475 }
475 void UseProgram(GLuint program) { 476 void UseProgram(GLuint program) {
476 Graphics3D::GetCurrent()->impl()->UseProgram(program); 477 PPB_Graphics3D_Impl::GetCurrent()->impl()->UseProgram(program);
477 } 478 }
478 void ValidateProgram(GLuint program) { 479 void ValidateProgram(GLuint program) {
479 Graphics3D::GetCurrent()->impl()->ValidateProgram(program); 480 PPB_Graphics3D_Impl::GetCurrent()->impl()->ValidateProgram(program);
480 } 481 }
481 void VertexAttrib1f(GLuint indx, GLfloat x) { 482 void VertexAttrib1f(GLuint indx, GLfloat x) {
482 Graphics3D::GetCurrent()->impl()->VertexAttrib1f(indx, x); 483 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttrib1f(indx, x);
483 } 484 }
484 void VertexAttrib1fv(GLuint indx, const GLfloat* values) { 485 void VertexAttrib1fv(GLuint indx, const GLfloat* values) {
485 Graphics3D::GetCurrent()->impl()->VertexAttrib1fv(indx, values); 486 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttrib1fv(indx, values);
486 } 487 }
487 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { 488 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
488 Graphics3D::GetCurrent()->impl()->VertexAttrib2f(indx, x, y); 489 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttrib2f(indx, x, y);
489 } 490 }
490 void VertexAttrib2fv(GLuint indx, const GLfloat* values) { 491 void VertexAttrib2fv(GLuint indx, const GLfloat* values) {
491 Graphics3D::GetCurrent()->impl()->VertexAttrib2fv(indx, values); 492 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttrib2fv(indx, values);
492 } 493 }
493 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { 494 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
494 Graphics3D::GetCurrent()->impl()->VertexAttrib3f(indx, x, y, z); 495 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttrib3f(indx, x, y, z);
495 } 496 }
496 void VertexAttrib3fv(GLuint indx, const GLfloat* values) { 497 void VertexAttrib3fv(GLuint indx, const GLfloat* values) {
497 Graphics3D::GetCurrent()->impl()->VertexAttrib3fv(indx, values); 498 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttrib3fv(indx, values);
498 } 499 }
499 void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { 500 void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
500 Graphics3D::GetCurrent()->impl()->VertexAttrib4f(indx, x, y, z, w); 501 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttrib4f(indx, x, y, z, w);
501 } 502 }
502 void VertexAttrib4fv(GLuint indx, const GLfloat* values) { 503 void VertexAttrib4fv(GLuint indx, const GLfloat* values) {
503 Graphics3D::GetCurrent()->impl()->VertexAttrib4fv(indx, values); 504 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttrib4fv(indx, values);
504 } 505 }
505 void VertexAttribPointer( 506 void VertexAttribPointer(
506 GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, 507 GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,
507 const void* ptr) { 508 const void* ptr) {
508 Graphics3D::GetCurrent()->impl()->VertexAttribPointer( 509 PPB_Graphics3D_Impl::GetCurrent()->impl()->VertexAttribPointer(
509 indx, size, type, normalized, stride, ptr); 510 indx, size, type, normalized, stride, ptr);
510 } 511 }
511 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { 512 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
512 Graphics3D::GetCurrent()->impl()->Viewport(x, y, width, height); 513 PPB_Graphics3D_Impl::GetCurrent()->impl()->Viewport(x, y, width, height);
513 } 514 }
514 void SwapBuffers() { 515 void SwapBuffers() {
515 Graphics3D::GetCurrent()->impl()->SwapBuffers(); 516 PPB_Graphics3D_Impl::GetCurrent()->impl()->SwapBuffers();
516 } 517 }
517 518
518 const struct PPB_OpenGLES_Dev ppb_opengles = { 519 const struct PPB_OpenGLES_Dev ppb_opengles = {
519 &ActiveTexture, 520 &ActiveTexture,
520 &AttachShader, 521 &AttachShader,
521 &BindAttribLocation, 522 &BindAttribLocation,
522 &BindBuffer, 523 &BindBuffer,
523 &BindFramebuffer, 524 &BindFramebuffer,
524 &BindRenderbuffer, 525 &BindRenderbuffer,
525 &BindTexture, 526 &BindTexture,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 &VertexAttrib3fv, 657 &VertexAttrib3fv,
657 &VertexAttrib4f, 658 &VertexAttrib4f,
658 &VertexAttrib4fv, 659 &VertexAttrib4fv,
659 &VertexAttribPointer, 660 &VertexAttribPointer,
660 &Viewport, 661 &Viewport,
661 &SwapBuffers 662 &SwapBuffers
662 }; 663 };
663 664
664 } // namespace 665 } // namespace
665 666
666 const PPB_OpenGLES_Dev* Graphics3D::GetOpenGLESInterface() { 667 const PPB_OpenGLES_Dev* PPB_Graphics3D_Impl::GetOpenGLESInterface() {
667 return &ppb_opengles; 668 return &ppb_opengles;
668 } 669 }
669 670
670 } // namespace pepper 671 } // namespace ppapi
672 } // namespace webkit
671 673
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_image_data_impl.cc ('k') | webkit/plugins/ppapi/ppb_pdf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698