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

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

Powered by Google App Engine
This is Rietveld 408576698