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

Side by Side Diff: ui/gfx/compositor/test_web_graphics_context_3d.h

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/compositor/test/test_utils.cc ('k') | ui/gfx/compositor/test_web_graphics_context_3d.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define UI_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 #pragma once
8
9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
13 #include "ui/gfx/gl/gl_bindings.h"
14
15 namespace gfx {
16 class GLContext;
17 class GLSurface;
18 }
19
20 namespace ui {
21
22 // WebGraphicsContext3D that does nothing. Suitable for testing.
23 class TestWebGraphicsContext3D : public WebKit::WebGraphicsContext3D {
24 public:
25 TestWebGraphicsContext3D();
26 virtual ~TestWebGraphicsContext3D();
27
28 void Initialize();
29 virtual bool makeContextCurrent();
30 virtual int width();
31 virtual int height();
32 virtual void reshape(int width, int height) {}
33 virtual bool isGLES2Compliant();
34 virtual bool readBackFramebuffer(unsigned char* pixels,
35 size_t bufferSize,
36 WebKit::WebGLId framebuffer,
37 int width,
38 int height);
39 virtual WebKit::WebGLId getPlatformTextureId();
40 virtual void prepareTexture() {}
41 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) {}
42 virtual void synthesizeGLError(WebKit::WGC3Denum value) {}
43 virtual bool isContextLost();
44 virtual void* mapBufferSubDataCHROMIUM(WebKit::WGC3Denum target,
45 WebKit::WGC3Dintptr offset,
46 WebKit::WGC3Dsizeiptr size,
47 WebKit::WGC3Denum access);
48 virtual void unmapBufferSubDataCHROMIUM(const void* data) {}
49 virtual void* mapTexSubImage2DCHROMIUM(WebKit::WGC3Denum target,
50 WebKit::WGC3Dint level,
51 WebKit::WGC3Dint xoffset,
52 WebKit::WGC3Dint yoffset,
53 WebKit::WGC3Dsizei width,
54 WebKit::WGC3Dsizei height,
55 WebKit::WGC3Denum format,
56 WebKit::WGC3Denum type,
57 WebKit::WGC3Denum access);
58 virtual void unmapTexSubImage2DCHROMIUM(const void* data) {}
59 virtual void setVisibilityCHROMIUM(bool visible) {}
60 virtual void discardFramebufferEXT(WebKit::WGC3Denum target,
61 WebKit::WGC3Dsizei numAttachments,
62 const WebKit::WGC3Denum* attachments) {}
63 virtual void ensureFramebufferCHROMIUM() {}
64 virtual void setMemoryAllocationChangedCallbackCHROMIUM(
65 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM*) { }
66 virtual WebKit::WebString getRequestableExtensionsCHROMIUM();
67 virtual void requestExtensionCHROMIUM(const char*) {}
68 virtual void blitFramebufferCHROMIUM(WebKit::WGC3Dint src_x0,
69 WebKit::WGC3Dint src_y0,
70 WebKit::WGC3Dint src_x1,
71 WebKit::WGC3Dint src_y1,
72 WebKit::WGC3Dint dst_x0,
73 WebKit::WGC3Dint dst_y0,
74 WebKit::WGC3Dint dst_x1,
75 WebKit::WGC3Dint dst_y1,
76 WebKit::WGC3Dbitfield mask,
77 WebKit::WGC3Denum filter) {}
78 virtual void renderbufferStorageMultisampleCHROMIUM(
79 WebKit::WGC3Denum target,
80 WebKit::WGC3Dsizei samples,
81 WebKit::WGC3Denum internalformat,
82 WebKit::WGC3Dsizei width,
83 WebKit::WGC3Dsizei height) {}
84 virtual void activeTexture(WebKit::WGC3Denum texture) {}
85 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader) {}
86 virtual void bindAttribLocation(WebKit::WebGLId program,
87 WebKit::WGC3Duint index,
88 const WebKit::WGC3Dchar* name) {}
89 virtual void bindBuffer(WebKit::WGC3Denum target, WebKit::WebGLId buffer) {}
90 virtual void bindFramebuffer(WebKit::WGC3Denum target,
91 WebKit::WebGLId framebuffer) {}
92 virtual void bindRenderbuffer(WebKit::WGC3Denum target,
93 WebKit::WebGLId renderbuffer) {}
94 virtual void bindTexture(WebKit::WGC3Denum target, WebKit::WebGLId texture) {}
95 virtual void blendColor(WebKit::WGC3Dclampf red,
96 WebKit::WGC3Dclampf green,
97 WebKit::WGC3Dclampf blue,
98 WebKit::WGC3Dclampf alpha) {}
99 virtual void blendEquation(WebKit::WGC3Denum mode) {}
100 virtual void blendEquationSeparate(WebKit::WGC3Denum modeRGB,
101 WebKit::WGC3Denum modeAlpha) {}
102 virtual void blendFunc(WebKit::WGC3Denum sfactor,
103 WebKit::WGC3Denum dfactor) {}
104 virtual void blendFuncSeparate(WebKit::WGC3Denum src_rgb,
105 WebKit::WGC3Denum dst_rgb,
106 WebKit::WGC3Denum src_alpha,
107 WebKit::WGC3Denum dst_alpha) {}
108 virtual void bufferData(WebKit::WGC3Denum target,
109 WebKit::WGC3Dsizeiptr size,
110 const void* data,
111 WebKit::WGC3Denum usage) {}
112 virtual void bufferSubData(WebKit::WGC3Denum target,
113 WebKit::WGC3Dintptr offset,
114 WebKit::WGC3Dsizeiptr size,
115 const void* data) {}
116 virtual WebKit::WGC3Denum checkFramebufferStatus(WebKit::WGC3Denum target);
117 virtual void clear(WebKit::WGC3Dbitfield mask) {}
118 virtual void clearColor(WebKit::WGC3Dclampf red,
119 WebKit::WGC3Dclampf green,
120 WebKit::WGC3Dclampf blue,
121 WebKit::WGC3Dclampf alpha) {}
122 virtual void clearDepth(WebKit::WGC3Dclampf depth) {}
123 virtual void clearStencil(WebKit::WGC3Dint s) {}
124 virtual void colorMask(WebKit::WGC3Dboolean red,
125 WebKit::WGC3Dboolean green,
126 WebKit::WGC3Dboolean blue,
127 WebKit::WGC3Dboolean alpha) {}
128 virtual void compileShader(WebKit::WebGLId shader) {}
129 virtual void compressedTexImage2D(WebKit::WGC3Denum target,
130 WebKit::WGC3Dint level,
131 WebKit::WGC3Denum internalformat,
132 WebKit::WGC3Dsizei width,
133 WebKit::WGC3Dsizei height,
134 WebKit::WGC3Dint border,
135 WebKit::WGC3Dsizei imageSize,
136 const void* data) {}
137 virtual void compressedTexSubImage2D(WebKit::WGC3Denum target,
138 WebKit::WGC3Dint level,
139 WebKit::WGC3Dint xoffset,
140 WebKit::WGC3Dint yoffset,
141 WebKit::WGC3Dsizei width,
142 WebKit::WGC3Dsizei height,
143 WebKit::WGC3Denum format,
144 WebKit::WGC3Dsizei imageSize,
145 const void* data) {}
146 virtual void copyTexImage2D(WebKit::WGC3Denum target,
147 WebKit::WGC3Dint level,
148 WebKit::WGC3Denum internal_format,
149 WebKit::WGC3Dint x,
150 WebKit::WGC3Dint y,
151 WebKit::WGC3Dsizei width,
152 WebKit::WGC3Dsizei height,
153 WebKit::WGC3Dint border) {}
154 virtual void copyTexSubImage2D(WebKit::WGC3Denum target,
155 WebKit::WGC3Dint level,
156 WebKit::WGC3Dint xoffset,
157 WebKit::WGC3Dint yoffset,
158 WebKit::WGC3Dint x,
159 WebKit::WGC3Dint y,
160 WebKit::WGC3Dsizei width,
161 WebKit::WGC3Dsizei height) {}
162 virtual void cullFace(WebKit::WGC3Denum mode) {}
163 virtual void depthFunc(WebKit::WGC3Denum func) {}
164 virtual void depthMask(WebKit::WGC3Dboolean flag) {}
165 virtual void depthRange(WebKit::WGC3Dclampf z_near,
166 WebKit::WGC3Dclampf z_far) {}
167 virtual void detachShader(WebKit::WebGLId program, WebKit::WebGLId shader) {}
168 virtual void disable(WebKit::WGC3Denum cap) {}
169 virtual void disableVertexAttribArray(WebKit::WGC3Duint index) {}
170 virtual void drawArrays(WebKit::WGC3Denum mode, WebKit::WGC3Dint first,
171 WebKit::WGC3Dsizei count) {}
172 virtual void drawElements(WebKit::WGC3Denum mode,
173 WebKit::WGC3Dsizei count,
174 WebKit::WGC3Denum type,
175 WebKit::WGC3Dintptr offset) {}
176 virtual void enable(WebKit::WGC3Denum cap) {}
177 virtual void enableVertexAttribArray(WebKit::WGC3Duint index) {}
178 virtual void finish() {}
179 virtual void flush() {}
180 virtual void framebufferRenderbuffer(WebKit::WGC3Denum target,
181 WebKit::WGC3Denum attachment,
182 WebKit::WGC3Denum renderbuffertarget,
183 WebKit::WebGLId renderbuffer) {}
184 virtual void framebufferTexture2D(WebKit::WGC3Denum target,
185 WebKit::WGC3Denum attachment,
186 WebKit::WGC3Denum textarget,
187 WebKit::WebGLId texture,
188 WebKit::WGC3Dint level) {}
189 virtual void frontFace(WebKit::WGC3Denum mode) {}
190 virtual void generateMipmap(WebKit::WGC3Denum target) {}
191 virtual bool getActiveAttrib(WebKit::WebGLId program,
192 WebKit::WGC3Duint index,
193 ActiveInfo& info);
194 virtual bool getActiveUniform(WebKit::WebGLId program,
195 WebKit::WGC3Duint index,
196 ActiveInfo& info);
197 virtual void getAttachedShaders(WebKit::WebGLId program,
198 WebKit::WGC3Dsizei maxCount,
199 WebKit::WGC3Dsizei* count,
200 WebKit::WebGLId* shaders) {}
201 virtual WebKit::WGC3Dint getAttribLocation(WebKit::WebGLId program,
202 const WebKit::WGC3Dchar* name);
203 virtual void getBooleanv(WebKit::WGC3Denum pname,
204 WebKit::WGC3Dboolean* value) {}
205 virtual void getBufferParameteriv(WebKit::WGC3Denum target,
206 WebKit::WGC3Denum pname,
207 WebKit::WGC3Dint* value) {}
208 virtual Attributes getContextAttributes();
209 virtual WebKit::WGC3Denum getError();
210 virtual void getFloatv(WebKit::WGC3Denum pname, WebKit::WGC3Dfloat* value) {}
211 virtual void getFramebufferAttachmentParameteriv(WebKit::WGC3Denum target,
212 WebKit::WGC3Denum attachment,
213 WebKit::WGC3Denum pname,
214 WebKit::WGC3Dint* value) {}
215 virtual void getIntegerv(WebKit::WGC3Denum pname, WebKit::WGC3Dint* value);
216 virtual void getProgramiv(WebKit::WebGLId program,
217 WebKit::WGC3Denum pname,
218 WebKit::WGC3Dint* value);
219 virtual WebKit::WebString getProgramInfoLog(WebKit::WebGLId program);
220 virtual void getRenderbufferParameteriv(WebKit::WGC3Denum target,
221 WebKit::WGC3Denum pname,
222 WebKit::WGC3Dint* value) {}
223 virtual void getShaderiv(WebKit::WebGLId shader,
224 WebKit::WGC3Denum pname,
225 WebKit::WGC3Dint* value);
226 virtual WebKit::WebString getShaderInfoLog(WebKit::WebGLId shader);
227 virtual void getShaderPrecisionFormat(WebKit::WGC3Denum shaderType,
228 WebKit::WGC3Denum precisionType,
229 WebKit::WGC3Dint* range,
230 WebKit::WGC3Dint* precision) {}
231 virtual WebKit::WebString getShaderSource(WebKit::WebGLId shader);
232 virtual WebKit::WebString getString(WebKit::WGC3Denum name);
233 virtual void getTexParameterfv(WebKit::WGC3Denum target,
234 WebKit::WGC3Denum pname,
235 WebKit::WGC3Dfloat* value) {}
236 virtual void getTexParameteriv(WebKit::WGC3Denum target,
237 WebKit::WGC3Denum pname,
238 WebKit::WGC3Dint* value) {}
239 virtual void getUniformfv(WebKit::WebGLId program,
240 WebKit::WGC3Dint location,
241 WebKit::WGC3Dfloat* value) {}
242 virtual void getUniformiv(WebKit::WebGLId program,
243 WebKit::WGC3Dint location,
244 WebKit::WGC3Dint* value) {}
245 virtual WebKit::WGC3Dint getUniformLocation(WebKit::WebGLId program,
246 const WebKit::WGC3Dchar* name);
247 virtual void getVertexAttribfv(WebKit::WGC3Duint index,
248 WebKit::WGC3Denum pname,
249 WebKit::WGC3Dfloat* value) {}
250 virtual void getVertexAttribiv(WebKit::WGC3Duint index,
251 WebKit::WGC3Denum pname,
252 WebKit::WGC3Dint* value) {}
253 virtual WebKit::WGC3Dsizeiptr getVertexAttribOffset(WebKit::WGC3Duint index,
254 WebKit::WGC3Denum pname);
255 virtual void hint(WebKit::WGC3Denum target, WebKit::WGC3Denum mode) {}
256 virtual WebKit::WGC3Dboolean isBuffer(WebKit::WebGLId buffer);
257 virtual WebKit::WGC3Dboolean isEnabled(WebKit::WGC3Denum cap);
258 virtual WebKit::WGC3Dboolean isFramebuffer(WebKit::WebGLId framebuffer);
259 virtual WebKit::WGC3Dboolean isProgram(WebKit::WebGLId program);
260 virtual WebKit::WGC3Dboolean isRenderbuffer(WebKit::WebGLId renderbuffer);
261 virtual WebKit::WGC3Dboolean isShader(WebKit::WebGLId shader);
262 virtual WebKit::WGC3Dboolean isTexture(WebKit::WebGLId texture);
263 virtual void lineWidth(WebKit::WGC3Dfloat) {}
264 virtual void linkProgram(WebKit::WebGLId program) {}
265 virtual void pixelStorei(WebKit::WGC3Denum pname, WebKit::WGC3Dint param) {}
266 virtual void polygonOffset(WebKit::WGC3Dfloat factor,
267 WebKit::WGC3Dfloat units) {}
268 virtual void readPixels(WebKit::WGC3Dint x,
269 WebKit::WGC3Dint y,
270 WebKit::WGC3Dsizei width,
271 WebKit::WGC3Dsizei height,
272 WebKit::WGC3Denum format,
273 WebKit::WGC3Denum type,
274 void* pixels) {}
275 virtual void releaseShaderCompiler() {}
276 virtual void renderbufferStorage(WebKit::WGC3Denum target,
277 WebKit::WGC3Denum internalformat,
278 WebKit::WGC3Dsizei width,
279 WebKit::WGC3Dsizei height) {}
280 virtual void sampleCoverage(WebKit::WGC3Dclampf value,
281 WebKit::WGC3Dboolean invert) {}
282 virtual void scissor(WebKit::WGC3Dint x,
283 WebKit::WGC3Dint y,
284 WebKit::WGC3Dsizei width,
285 WebKit::WGC3Dsizei height) {}
286 virtual void shaderSource(WebKit::WebGLId shader,
287 const WebKit::WGC3Dchar* string) {}
288 virtual void stencilFunc(WebKit::WGC3Denum func,
289 WebKit::WGC3Dint ref,
290 WebKit::WGC3Duint mask) {}
291 virtual void stencilFuncSeparate(WebKit::WGC3Denum face,
292 WebKit::WGC3Denum func,
293 WebKit::WGC3Dint ref,
294 WebKit::WGC3Duint mask) {}
295 virtual void stencilMask(WebKit::WGC3Duint mask) {}
296 virtual void stencilMaskSeparate(WebKit::WGC3Denum face,
297 WebKit::WGC3Duint mask) {}
298 virtual void stencilOp(WebKit::WGC3Denum fail,
299 WebKit::WGC3Denum zfail,
300 WebKit::WGC3Denum zpass) {}
301 virtual void stencilOpSeparate(WebKit::WGC3Denum face,
302 WebKit::WGC3Denum fail,
303 WebKit::WGC3Denum zfail,
304 WebKit::WGC3Denum zpass) {}
305 virtual void texImage2D(WebKit::WGC3Denum target,
306 WebKit::WGC3Dint level,
307 WebKit::WGC3Denum internal_format,
308 WebKit::WGC3Dsizei width,
309 WebKit::WGC3Dsizei height,
310 WebKit::WGC3Dint border,
311 WebKit::WGC3Denum format,
312 WebKit::WGC3Denum type,
313 const void* pixels) {}
314 virtual void texParameterf(WebKit::WGC3Denum target,
315 WebKit::WGC3Denum pname,
316 WebKit::WGC3Dfloat param) {}
317 virtual void texParameteri(WebKit::WGC3Denum target,
318 WebKit::WGC3Denum pname,
319 WebKit::WGC3Dint param) {}
320 virtual void texSubImage2D(WebKit::WGC3Denum target,
321 WebKit::WGC3Dint level,
322 WebKit::WGC3Dint xoffset,
323 WebKit::WGC3Dint yoffset,
324 WebKit::WGC3Dsizei width,
325 WebKit::WGC3Dsizei height,
326 WebKit::WGC3Denum format,
327 WebKit::WGC3Denum type,
328 const void* pixels) {}
329 virtual void uniform1f(WebKit::WGC3Dint location, WebKit::WGC3Dfloat x) {}
330 virtual void uniform1fv(WebKit::WGC3Dint location,
331 WebKit::WGC3Dsizei count,
332 const WebKit::WGC3Dfloat* v) {}
333 virtual void uniform1i(WebKit::WGC3Dint location, WebKit::WGC3Dint x) {}
334 virtual void uniform1iv(WebKit::WGC3Dint location,
335 WebKit::WGC3Dsizei count,
336 const WebKit::WGC3Dint* v) {}
337 virtual void uniform2f(WebKit::WGC3Dint location,
338 WebKit::WGC3Dfloat x,
339 WebKit::WGC3Dfloat y) {}
340 virtual void uniform2fv(WebKit::WGC3Dint location,
341 WebKit::WGC3Dsizei count,
342 const WebKit::WGC3Dfloat* v) {}
343 virtual void uniform2i(WebKit::WGC3Dint location,
344 WebKit::WGC3Dint x,
345 WebKit::WGC3Dint y) {}
346 virtual void uniform2iv(WebKit::WGC3Dint location,
347 WebKit::WGC3Dsizei count,
348 const WebKit::WGC3Dint* v) {}
349 virtual void uniform3f(WebKit::WGC3Dint location,
350 WebKit::WGC3Dfloat x,
351 WebKit::WGC3Dfloat y,
352 WebKit::WGC3Dfloat z) {}
353 virtual void uniform3fv(WebKit::WGC3Dint location,
354 WebKit::WGC3Dsizei count,
355 const WebKit::WGC3Dfloat* v) {}
356 virtual void uniform3i(WebKit::WGC3Dint location,
357 WebKit::WGC3Dint x,
358 WebKit::WGC3Dint y,
359 WebKit::WGC3Dint z) {}
360 virtual void uniform3iv(WebKit::WGC3Dint location,
361 WebKit::WGC3Dsizei count,
362 const WebKit::WGC3Dint* v) {}
363 virtual void uniform4f(WebKit::WGC3Dint location,
364 WebKit::WGC3Dfloat x,
365 WebKit::WGC3Dfloat y,
366 WebKit::WGC3Dfloat z,
367 WebKit::WGC3Dfloat w) {}
368 virtual void uniform4fv(WebKit::WGC3Dint location,
369 WebKit::WGC3Dsizei count,
370 const WebKit::WGC3Dfloat* v) {}
371 virtual void uniform4i(WebKit::WGC3Dint location,
372 WebKit::WGC3Dint x,
373 WebKit::WGC3Dint y,
374 WebKit::WGC3Dint z,
375 WebKit::WGC3Dint w) {}
376 virtual void uniform4iv(WebKit::WGC3Dint location,
377 WebKit::WGC3Dsizei count,
378 const WebKit::WGC3Dint* v) {}
379 virtual void uniformMatrix2fv(WebKit::WGC3Dint location,
380 WebKit::WGC3Dsizei count,
381 WebKit::WGC3Dboolean transpose,
382 const WebKit::WGC3Dfloat* value) {}
383 virtual void uniformMatrix3fv(WebKit::WGC3Dint location,
384 WebKit::WGC3Dsizei count,
385 WebKit::WGC3Dboolean transpose,
386 const WebKit::WGC3Dfloat* value) {}
387 virtual void uniformMatrix4fv(WebKit::WGC3Dint location,
388 WebKit::WGC3Dsizei count,
389 WebKit::WGC3Dboolean transpose,
390 const WebKit::WGC3Dfloat* value) {}
391 virtual void useProgram(WebKit::WebGLId program) {}
392 virtual void validateProgram(WebKit::WebGLId program) {}
393 virtual void vertexAttrib1f(WebKit::WGC3Duint index, WebKit::WGC3Dfloat x) {}
394 virtual void vertexAttrib1fv(WebKit::WGC3Duint index,
395 const WebKit::WGC3Dfloat* values) {}
396 virtual void vertexAttrib2f(WebKit::WGC3Duint index,
397 WebKit::WGC3Dfloat x,
398 WebKit::WGC3Dfloat y) {}
399 virtual void vertexAttrib2fv(WebKit::WGC3Duint index,
400 const WebKit::WGC3Dfloat* values) {}
401 virtual void vertexAttrib3f(WebKit::WGC3Duint index,
402 WebKit::WGC3Dfloat x,
403 WebKit::WGC3Dfloat y,
404 WebKit::WGC3Dfloat z) {}
405 virtual void vertexAttrib3fv(WebKit::WGC3Duint index,
406 const WebKit::WGC3Dfloat* values) {}
407 virtual void vertexAttrib4f(WebKit::WGC3Duint index,
408 WebKit::WGC3Dfloat x,
409 WebKit::WGC3Dfloat y,
410 WebKit::WGC3Dfloat z,
411 WebKit::WGC3Dfloat w) {}
412 virtual void vertexAttrib4fv(WebKit::WGC3Duint index,
413 const WebKit::WGC3Dfloat* values) {}
414 virtual void vertexAttribPointer(WebKit::WGC3Duint index,
415 WebKit::WGC3Dint size,
416 WebKit::WGC3Denum type,
417 WebKit::WGC3Dboolean normalized,
418 WebKit::WGC3Dsizei stride,
419 WebKit::WGC3Dintptr offset) {}
420 virtual void viewport(WebKit::WGC3Dint x,
421 WebKit::WGC3Dint y,
422 WebKit::WGC3Dsizei width,
423 WebKit::WGC3Dsizei height) {}
424 virtual WebKit::WebGLId createBuffer();
425 virtual WebKit::WebGLId createFramebuffer();
426 virtual WebKit::WebGLId createProgram();
427 virtual WebKit::WebGLId createRenderbuffer();
428 virtual WebKit::WebGLId createShader(WebKit::WGC3Denum value);
429 virtual WebKit::WebGLId createTexture();
430 virtual void deleteBuffer(WebKit::WebGLId) {}
431 virtual void deleteFramebuffer(WebKit::WebGLId) {}
432 virtual void deleteProgram(WebKit::WebGLId) {}
433 virtual void deleteRenderbuffer(WebKit::WebGLId) {}
434 virtual void deleteShader(WebKit::WebGLId) {}
435 virtual void deleteTexture(WebKit::WebGLId) {}
436 virtual WebKit::WebGLId createQueryEXT();
437 virtual void deleteQueryEXT(WebKit::WebGLId) {};
438 virtual WebKit::WGC3Dboolean isQueryEXT(WebKit::WebGLId query);
439 virtual void beginQueryEXT(WebKit::WGC3Denum, WebKit::WebGLId) {}
440 virtual void endQueryEXT(WebKit::WGC3Denum) {}
441 virtual void getQueryivEXT(WebKit::WGC3Denum,
442 WebKit::WGC3Denum,
443 WebKit::WGC3Dint*) {}
444 virtual void getQueryObjectuivEXT(WebKit::WebGLId,
445 WebKit::WGC3Denum,
446 WebKit::WGC3Duint*) {}
447
448 private:
449 scoped_refptr<gfx::GLContext> gl_context_;
450 scoped_refptr<gfx::GLSurface> gl_surface_;
451
452 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D);
453 };
454
455 } // namespace ui
456
457 #endif // UI_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/test/test_utils.cc ('k') | ui/gfx/compositor/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698