1 // Copyright 2013 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.
5 #ifndef CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
10 #include "base/compiler_specific.h"
11 #include "cc/base/cc_export.h"
12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
16 // WebGraphicsContext3D base class for use in unit tests.
17 // All operations are no-ops (returning 0 if necessary).
18 class CC_EXPORT FakeWebGraphicsContext3D
19 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D
) {
21 FakeWebGraphicsContext3D();
22 virtual ~FakeWebGraphicsContext3D();
24 virtual bool makeContextCurrent();
29 virtual void reshape(int width
, int height
);
31 virtual bool isGLES2Compliant();
33 virtual WebKit::WebGLId
getPlatformTextureId();
35 virtual void prepareTexture() {}
37 virtual void postSubBufferCHROMIUM(int x
, int y
, int width
, int height
) {}
39 virtual void synthesizeGLError(WebKit::WGC3Denum
) {}
41 virtual bool isContextLost();
42 virtual WebKit::WGC3Denum
getGraphicsResetStatusARB();
44 virtual void* mapBufferSubDataCHROMIUM(
45 WebKit::WGC3Denum target
,
46 WebKit::WGC3Dintptr offset
,
47 WebKit::WGC3Dsizeiptr size
,
48 WebKit::WGC3Denum access
);
50 virtual void unmapBufferSubDataCHROMIUM(const void*) {}
51 virtual void* mapTexSubImage2DCHROMIUM(
52 WebKit::WGC3Denum target
,
53 WebKit::WGC3Dint level
,
54 WebKit::WGC3Dint xoffset
,
55 WebKit::WGC3Dint yoffset
,
56 WebKit::WGC3Dsizei width
,
57 WebKit::WGC3Dsizei height
,
58 WebKit::WGC3Denum format
,
59 WebKit::WGC3Denum type
,
60 WebKit::WGC3Denum access
);
61 virtual void unmapTexSubImage2DCHROMIUM(const void*) {}
63 virtual void setVisibilityCHROMIUM(bool visible
) {}
65 virtual void discardFramebufferEXT(
66 WebKit::WGC3Denum target
,
67 WebKit::WGC3Dsizei num_attachments
,
68 const WebKit::WGC3Denum
* attachments
) {}
70 virtual WebKit::WebString
getRequestableExtensionsCHROMIUM();
71 virtual void requestExtensionCHROMIUM(const char*) {}
73 virtual void blitFramebufferCHROMIUM(
74 WebKit::WGC3Dint src_x0
,
75 WebKit::WGC3Dint src_y0
,
76 WebKit::WGC3Dint src_x1
,
77 WebKit::WGC3Dint src_y1
,
78 WebKit::WGC3Dint dst_x0
,
79 WebKit::WGC3Dint dst_y0
,
80 WebKit::WGC3Dint dst_x1
,
81 WebKit::WGC3Dint dst_y1
,
82 WebKit::WGC3Dbitfield mask
,
83 WebKit::WGC3Denum filter
) {}
84 virtual void renderbufferStorageMultisampleCHROMIUM(
85 WebKit::WGC3Denum target
,
86 WebKit::WGC3Dsizei samples
,
87 WebKit::WGC3Denum internalformat
,
88 WebKit::WGC3Dsizei width
,
89 WebKit::WGC3Dsizei height
) {}
91 virtual void activeTexture(WebKit::WGC3Denum texture
) {}
92 virtual void attachShader(WebKit::WebGLId program
, WebKit::WebGLId shader
);
93 virtual void bindAttribLocation(
94 WebKit::WebGLId program
,
95 WebKit::WGC3Duint index
,
96 const WebKit::WGC3Dchar
* name
) {}
97 virtual void bindBuffer(WebKit::WGC3Denum target
, WebKit::WebGLId buffer
);
98 virtual void bindFramebuffer(
99 WebKit::WGC3Denum target
, WebKit::WebGLId framebuffer
);
100 virtual void bindRenderbuffer(
101 WebKit::WGC3Denum target
, WebKit::WebGLId renderbuffer
);
102 virtual void bindTexture(
103 WebKit::WGC3Denum target
,
104 WebKit::WebGLId texture_id
);
105 virtual void blendColor(
106 WebKit::WGC3Dclampf red
,
107 WebKit::WGC3Dclampf green
,
108 WebKit::WGC3Dclampf blue
,
109 WebKit::WGC3Dclampf alpha
) {}
110 virtual void blendEquation(WebKit::WGC3Denum mode
) {}
111 virtual void blendEquationSeparate(
112 WebKit::WGC3Denum mode_rgb
,
113 WebKit::WGC3Denum mode_alpha
) {}
114 virtual void blendFunc(
115 WebKit::WGC3Denum sfactor
,
116 WebKit::WGC3Denum dfactor
) {}
117 virtual void blendFuncSeparate(
118 WebKit::WGC3Denum src_rgb
,
119 WebKit::WGC3Denum dst_rgb
,
120 WebKit::WGC3Denum src_alpha
,
121 WebKit::WGC3Denum dst_alpha
) {}
123 virtual void bufferData(
124 WebKit::WGC3Denum target
,
125 WebKit::WGC3Dsizeiptr size
,
127 WebKit::WGC3Denum usage
) {}
128 virtual void bufferSubData(
129 WebKit::WGC3Denum target
,
130 WebKit::WGC3Dintptr offset
,
131 WebKit::WGC3Dsizeiptr size
,
134 virtual WebKit::WGC3Denum
checkFramebufferStatus(WebKit::WGC3Denum target
);
136 virtual void clear(WebKit::WGC3Dbitfield mask
) {}
137 virtual void clearColor(
138 WebKit::WGC3Dclampf red
,
139 WebKit::WGC3Dclampf green
,
140 WebKit::WGC3Dclampf blue
,
141 WebKit::WGC3Dclampf alpha
) {}
142 virtual void clearDepth(WebKit::WGC3Dclampf depth
) {}
143 virtual void clearStencil(WebKit::WGC3Dint s
) {}
144 virtual void colorMask(
145 WebKit::WGC3Dboolean red
,
146 WebKit::WGC3Dboolean green
,
147 WebKit::WGC3Dboolean blue
,
148 WebKit::WGC3Dboolean alpha
) {}
149 virtual void compileShader(WebKit::WebGLId shader
) {}
151 virtual void compressedTexImage2D(
152 WebKit::WGC3Denum target
,
153 WebKit::WGC3Dint level
,
154 WebKit::WGC3Denum internal_format
,
155 WebKit::WGC3Dsizei width
,
156 WebKit::WGC3Dsizei height
,
157 WebKit::WGC3Dint border
,
158 WebKit::WGC3Dsizei image_size
,
160 virtual void compressedTexSubImage2D(
161 WebKit::WGC3Denum target
,
162 WebKit::WGC3Dint level
,
163 WebKit::WGC3Dint xoffset
,
164 WebKit::WGC3Dint yoffset
,
165 WebKit::WGC3Dsizei width
,
166 WebKit::WGC3Dsizei height
,
167 WebKit::WGC3Denum format
,
168 WebKit::WGC3Dsizei image_size
,
170 virtual void copyTexImage2D(
171 WebKit::WGC3Denum target
,
172 WebKit::WGC3Dint level
,
173 WebKit::WGC3Denum internalformat
,
176 WebKit::WGC3Dsizei width
,
177 WebKit::WGC3Dsizei height
,
178 WebKit::WGC3Dint border
) {}
179 virtual void copyTexSubImage2D(
180 WebKit::WGC3Denum target
,
181 WebKit::WGC3Dint level
,
182 WebKit::WGC3Dint xoffset
,
183 WebKit::WGC3Dint yoffset
,
186 WebKit::WGC3Dsizei width
,
187 WebKit::WGC3Dsizei height
) {}
188 virtual void cullFace(WebKit::WGC3Denum mode
) {}
189 virtual void depthFunc(WebKit::WGC3Denum func
) {}
190 virtual void depthMask(WebKit::WGC3Dboolean flag
) {}
191 virtual void depthRange(
192 WebKit::WGC3Dclampf z_near
,
193 WebKit::WGC3Dclampf z_far
) {}
194 virtual void detachShader(WebKit::WebGLId program
, WebKit::WebGLId shader
) {}
195 virtual void disable(WebKit::WGC3Denum cap
) {}
196 virtual void disableVertexAttribArray(WebKit::WGC3Duint index
) {}
197 virtual void drawArrays(
198 WebKit::WGC3Denum mode
,
199 WebKit::WGC3Dint first
,
200 WebKit::WGC3Dsizei count
) {}
201 virtual void drawElements(
202 WebKit::WGC3Denum mode
,
203 WebKit::WGC3Dsizei count
,
204 WebKit::WGC3Denum type
,
205 WebKit::WGC3Dintptr offset
) {}
207 virtual void enable(WebKit::WGC3Denum cap
) {}
208 virtual void enableVertexAttribArray(WebKit::WGC3Duint index
) {}
209 virtual void finish() {}
210 virtual void flush() {}
211 virtual void framebufferRenderbuffer(
212 WebKit::WGC3Denum target
,
213 WebKit::WGC3Denum attachment
,
214 WebKit::WGC3Denum renderbuffertarget
,
215 WebKit::WebGLId renderbuffer
) {}
216 virtual void framebufferTexture2D(
217 WebKit::WGC3Denum target
,
218 WebKit::WGC3Denum attachment
,
219 WebKit::WGC3Denum textarget
,
220 WebKit::WebGLId texture
,
221 WebKit::WGC3Dint level
) {}
222 virtual void frontFace(WebKit::WGC3Denum mode
) {}
223 virtual void generateMipmap(WebKit::WGC3Denum target
) {}
225 virtual bool getActiveAttrib(
226 WebKit::WebGLId program
,
227 WebKit::WGC3Duint index
, ActiveInfo
&);
228 virtual bool getActiveUniform(
229 WebKit::WebGLId program
,
230 WebKit::WGC3Duint index
,
232 virtual void getAttachedShaders(
233 WebKit::WebGLId program
,
234 WebKit::WGC3Dsizei max_count
,
235 WebKit::WGC3Dsizei
* count
,
236 WebKit::WebGLId
* shaders
) {}
237 virtual WebKit::WGC3Dint
getAttribLocation(
238 WebKit::WebGLId program
,
239 const WebKit::WGC3Dchar
* name
);
240 virtual void getBooleanv(
241 WebKit::WGC3Denum pname
,
242 WebKit::WGC3Dboolean
* value
) {}
243 virtual void getBufferParameteriv(
244 WebKit::WGC3Denum target
,
245 WebKit::WGC3Denum pname
,
246 WebKit::WGC3Dint
* value
) {}
247 virtual Attributes
getContextAttributes();
248 virtual WebKit::WGC3Denum
getError();
249 virtual void getFloatv(
250 WebKit::WGC3Denum pname
,
251 WebKit::WGC3Dfloat
* value
) {}
252 virtual void getFramebufferAttachmentParameteriv(
253 WebKit::WGC3Denum target
,
254 WebKit::WGC3Denum attachment
,
255 WebKit::WGC3Denum pname
,
256 WebKit::WGC3Dint
* value
) {}
258 virtual void getIntegerv(
259 WebKit::WGC3Denum pname
,
260 WebKit::WGC3Dint
* value
);
262 virtual void getProgramiv(
263 WebKit::WebGLId program
,
264 WebKit::WGC3Denum pname
,
265 WebKit::WGC3Dint
* value
);
267 virtual WebKit::WebString
getProgramInfoLog(WebKit::WebGLId program
);
268 virtual void getRenderbufferParameteriv(
269 WebKit::WGC3Denum target
,
270 WebKit::WGC3Denum pname
,
271 WebKit::WGC3Dint
* value
) {}
273 virtual void getShaderiv(
274 WebKit::WebGLId shader
,
275 WebKit::WGC3Denum pname
,
276 WebKit::WGC3Dint
* value
);
278 virtual WebKit::WebString
getShaderInfoLog(WebKit::WebGLId shader
);
279 virtual void getShaderPrecisionFormat(
280 WebKit::WGC3Denum shadertype
,
281 WebKit::WGC3Denum precisiontype
,
282 WebKit::WGC3Dint
* range
,
283 WebKit::WGC3Dint
* precision
);
284 virtual WebKit::WebString
getShaderSource(WebKit::WebGLId shader
);
285 virtual WebKit::WebString
getString(WebKit::WGC3Denum name
);
286 virtual void getTexParameterfv(
287 WebKit::WGC3Denum target
,
288 WebKit::WGC3Denum pname
,
289 WebKit::WGC3Dfloat
* value
) {}
290 virtual void getTexParameteriv(
291 WebKit::WGC3Denum target
,
292 WebKit::WGC3Denum pname
,
293 WebKit::WGC3Dint
* value
) {}
294 virtual void getUniformfv(
295 WebKit::WebGLId program
,
296 WebKit::WGC3Dint location
,
297 WebKit::WGC3Dfloat
* value
) {}
298 virtual void getUniformiv(
299 WebKit::WebGLId program
,
300 WebKit::WGC3Dint location
,
301 WebKit::WGC3Dint
* value
) {}
302 virtual WebKit::WGC3Dint
getUniformLocation(
303 WebKit::WebGLId program
,
304 const WebKit::WGC3Dchar
* name
);
305 virtual void getVertexAttribfv(
306 WebKit::WGC3Duint index
,
307 WebKit::WGC3Denum pname
,
308 WebKit::WGC3Dfloat
* value
) {}
309 virtual void getVertexAttribiv(
310 WebKit::WGC3Duint index
,
311 WebKit::WGC3Denum pname
,
312 WebKit::WGC3Dint
* value
) {}
313 virtual WebKit::WGC3Dsizeiptr
getVertexAttribOffset(
314 WebKit::WGC3Duint index
,
315 WebKit::WGC3Denum pname
);
317 virtual void hint(WebKit::WGC3Denum target
, WebKit::WGC3Denum mode
) {}
318 virtual WebKit::WGC3Dboolean
isBuffer(WebKit::WebGLId buffer
);
319 virtual WebKit::WGC3Dboolean
isEnabled(WebKit::WGC3Denum cap
);
320 virtual WebKit::WGC3Dboolean
isFramebuffer(WebKit::WebGLId framebuffer
);
321 virtual WebKit::WGC3Dboolean
isProgram(WebKit::WebGLId program
);
322 virtual WebKit::WGC3Dboolean
isRenderbuffer(WebKit::WebGLId renderbuffer
);
323 virtual WebKit::WGC3Dboolean
isShader(WebKit::WebGLId shader
);
324 virtual WebKit::WGC3Dboolean
isTexture(WebKit::WebGLId texture
);
325 virtual void lineWidth(WebKit::WGC3Dfloat
) {}
326 virtual void linkProgram(WebKit::WebGLId program
) {}
327 virtual void pixelStorei(WebKit::WGC3Denum pname
, WebKit::WGC3Dint param
) {}
328 virtual void polygonOffset(
329 WebKit::WGC3Dfloat factor
,
330 WebKit::WGC3Dfloat units
) {}
332 virtual void readPixels(
335 WebKit::WGC3Dsizei width
,
336 WebKit::WGC3Dsizei height
,
337 WebKit::WGC3Denum format
,
338 WebKit::WGC3Denum type
,
341 virtual void releaseShaderCompiler() {}
343 virtual void renderbufferStorage(
344 WebKit::WGC3Denum target
,
345 WebKit::WGC3Denum internalformat
,
346 WebKit::WGC3Dsizei width
,
347 WebKit::WGC3Dsizei height
) {}
348 virtual void sampleCoverage(
349 WebKit::WGC3Dclampf value
,
350 WebKit::WGC3Dboolean invert
) {}
351 virtual void scissor(
354 WebKit::WGC3Dsizei width
,
355 WebKit::WGC3Dsizei height
) {}
356 virtual void shaderSource(
357 WebKit::WebGLId shader
,
358 const WebKit::WGC3Dchar
* string
) {}
359 virtual void stencilFunc(
360 WebKit::WGC3Denum func
,
361 WebKit::WGC3Dint ref
,
362 WebKit::WGC3Duint mask
) {}
363 virtual void stencilFuncSeparate(
364 WebKit::WGC3Denum face
,
365 WebKit::WGC3Denum func
,
366 WebKit::WGC3Dint ref
,
367 WebKit::WGC3Duint mask
) {}
368 virtual void stencilMask(WebKit::WGC3Duint mask
) {}
369 virtual void stencilMaskSeparate(
370 WebKit::WGC3Denum face
,
371 WebKit::WGC3Duint mask
) {}
372 virtual void stencilOp(
373 WebKit::WGC3Denum fail
,
374 WebKit::WGC3Denum zfail
,
375 WebKit::WGC3Denum zpass
) {}
376 virtual void stencilOpSeparate(
377 WebKit::WGC3Denum face
,
378 WebKit::WGC3Denum fail
,
379 WebKit::WGC3Denum zfail
,
380 WebKit::WGC3Denum zpass
) {}
382 virtual void texImage2D(
383 WebKit::WGC3Denum target
,
384 WebKit::WGC3Dint level
,
385 WebKit::WGC3Denum internalformat
,
386 WebKit::WGC3Dsizei width
,
387 WebKit::WGC3Dsizei height
,
388 WebKit::WGC3Dint border
,
389 WebKit::WGC3Denum format
,
390 WebKit::WGC3Denum type
,
391 const void* pixels
) {}
393 virtual void texParameterf(
394 WebKit::WGC3Denum target
,
395 WebKit::WGC3Denum pname
,
396 WebKit::WGC3Dfloat param
) {}
397 virtual void texParameteri(
398 WebKit::WGC3Denum target
,
399 WebKit::WGC3Denum pname
,
400 WebKit::WGC3Dint param
) {}
402 virtual void texSubImage2D(
403 WebKit::WGC3Denum target
,
404 WebKit::WGC3Dint level
,
405 WebKit::WGC3Dint xoffset
,
406 WebKit::WGC3Dint yoffset
,
407 WebKit::WGC3Dsizei width
,
408 WebKit::WGC3Dsizei height
,
409 WebKit::WGC3Denum format
,
410 WebKit::WGC3Denum type
,
411 const void* pixels
) {}
413 virtual void uniform1f(WebKit::WGC3Dint location
, WebKit::WGC3Dfloat x
) {}
414 virtual void uniform1fv(
415 WebKit::WGC3Dint location
,
416 WebKit::WGC3Dsizei count
,
417 const WebKit::WGC3Dfloat
* v
) {}
418 virtual void uniform1i(WebKit::WGC3Dint location
, WebKit::WGC3Dint x
) {}
419 virtual void uniform1iv(
420 WebKit::WGC3Dint location
,
421 WebKit::WGC3Dsizei count
,
422 const WebKit::WGC3Dint
* v
) {}
423 virtual void uniform2f(
424 WebKit::WGC3Dint location
,
425 WebKit::WGC3Dfloat x
,
426 WebKit::WGC3Dfloat y
) {}
427 virtual void uniform2fv(
428 WebKit::WGC3Dint location
,
429 WebKit::WGC3Dsizei count
,
430 const WebKit::WGC3Dfloat
* v
) {}
431 virtual void uniform2i(
432 WebKit::WGC3Dint location
,
434 WebKit::WGC3Dint y
) {}
435 virtual void uniform2iv(
436 WebKit::WGC3Dint location
,
437 WebKit::WGC3Dsizei count
,
438 const WebKit::WGC3Dint
* v
) {}
439 virtual void uniform3f(
440 WebKit::WGC3Dint location
,
441 WebKit::WGC3Dfloat x
,
442 WebKit::WGC3Dfloat y
,
443 WebKit::WGC3Dfloat z
) {}
444 virtual void uniform3fv(
445 WebKit::WGC3Dint location
,
446 WebKit::WGC3Dsizei count
,
447 const WebKit::WGC3Dfloat
* v
) {}
448 virtual void uniform3i(
449 WebKit::WGC3Dint location
,
452 WebKit::WGC3Dint z
) {}
453 virtual void uniform3iv(
454 WebKit::WGC3Dint location
,
455 WebKit::WGC3Dsizei count
,
456 const WebKit::WGC3Dint
* v
) {}
457 virtual void uniform4f(
458 WebKit::WGC3Dint location
,
459 WebKit::WGC3Dfloat x
,
460 WebKit::WGC3Dfloat y
,
461 WebKit::WGC3Dfloat z
,
462 WebKit::WGC3Dfloat w
) {}
463 virtual void uniform4fv(
464 WebKit::WGC3Dint location
,
465 WebKit::WGC3Dsizei count
,
466 const WebKit::WGC3Dfloat
* v
) {}
467 virtual void uniform4i(
468 WebKit::WGC3Dint location
,
472 WebKit::WGC3Dint w
) {}
473 virtual void uniform4iv(
474 WebKit::WGC3Dint location
,
475 WebKit::WGC3Dsizei count
,
476 const WebKit::WGC3Dint
* v
) {}
477 virtual void uniformMatrix2fv(
478 WebKit::WGC3Dint location
,
479 WebKit::WGC3Dsizei count
,
480 WebKit::WGC3Dboolean transpose
,
481 const WebKit::WGC3Dfloat
* value
) {}
482 virtual void uniformMatrix3fv(
483 WebKit::WGC3Dint location
,
484 WebKit::WGC3Dsizei count
,
485 WebKit::WGC3Dboolean transpose
,
486 const WebKit::WGC3Dfloat
* value
) {}
487 virtual void uniformMatrix4fv(
488 WebKit::WGC3Dint location
,
489 WebKit::WGC3Dsizei count
,
490 WebKit::WGC3Dboolean transpose
,
491 const WebKit::WGC3Dfloat
* value
) {}
493 virtual void useProgram(WebKit::WebGLId program
);
494 virtual void validateProgram(WebKit::WebGLId program
) {}
496 virtual void vertexAttrib1f(WebKit::WGC3Duint index
, WebKit::WGC3Dfloat x
) {}
497 virtual void vertexAttrib1fv(
498 WebKit::WGC3Duint index
,
499 const WebKit::WGC3Dfloat
* values
) {}
500 virtual void vertexAttrib2f(
501 WebKit::WGC3Duint index
,
502 WebKit::WGC3Dfloat x
,
503 WebKit::WGC3Dfloat y
) {}
504 virtual void vertexAttrib2fv(
505 WebKit::WGC3Duint index
,
506 const WebKit::WGC3Dfloat
* values
) {}
507 virtual void vertexAttrib3f(
508 WebKit::WGC3Duint index
,
509 WebKit::WGC3Dfloat x
,
510 WebKit::WGC3Dfloat y
,
511 WebKit::WGC3Dfloat z
) {}
512 virtual void vertexAttrib3fv(
513 WebKit::WGC3Duint index
,
514 const WebKit::WGC3Dfloat
* values
) {}
515 virtual void vertexAttrib4f(
516 WebKit::WGC3Duint index
,
517 WebKit::WGC3Dfloat x
,
518 WebKit::WGC3Dfloat y
,
519 WebKit::WGC3Dfloat z
,
520 WebKit::WGC3Dfloat w
) {}
521 virtual void vertexAttrib4fv(
522 WebKit::WGC3Duint index
,
523 const WebKit::WGC3Dfloat
* values
) {}
524 virtual void vertexAttribPointer(
525 WebKit::WGC3Duint index
,
526 WebKit::WGC3Dint size
,
527 WebKit::WGC3Denum type
,
528 WebKit::WGC3Dboolean normalized
,
529 WebKit::WGC3Dsizei stride
,
530 WebKit::WGC3Dintptr offset
) {}
532 virtual void viewport(
535 WebKit::WGC3Dsizei width
,
536 WebKit::WGC3Dsizei height
) {}
538 virtual WebKit::WebGLId
createBuffer();
539 virtual WebKit::WebGLId
createFramebuffer();
540 virtual WebKit::WebGLId
createProgram();
541 virtual WebKit::WebGLId
createRenderbuffer();
542 virtual WebKit::WebGLId
createShader(WebKit::WGC3Denum
);
543 virtual WebKit::WebGLId
createTexture();
545 virtual void deleteBuffer(WebKit::WebGLId id
);
546 virtual void deleteFramebuffer(WebKit::WebGLId id
);
547 virtual void deleteProgram(WebKit::WebGLId id
);
548 virtual void deleteRenderbuffer(WebKit::WebGLId id
);
549 virtual void deleteShader(WebKit::WebGLId id
);
550 virtual void deleteTexture(WebKit::WebGLId texture_id
);
552 virtual void texStorage2DEXT(
553 WebKit::WGC3Denum target
,
554 WebKit::WGC3Dint levels
,
555 WebKit::WGC3Duint internalformat
,
556 WebKit::WGC3Dint width
,
557 WebKit::WGC3Dint height
) {}
559 virtual WebKit::WebGLId
createQueryEXT();
560 virtual void deleteQueryEXT(WebKit::WebGLId query
) {}
561 virtual WebKit::WGC3Dboolean
isQueryEXT(WebKit::WebGLId query
);
562 virtual void beginQueryEXT(
563 WebKit::WGC3Denum target
,
564 WebKit::WebGLId query
) {}
565 virtual void endQueryEXT(WebKit::WGC3Denum target
);
566 virtual void getQueryivEXT(
567 WebKit::WGC3Denum target
,
568 WebKit::WGC3Denum pname
,
569 WebKit::WGC3Dint
* params
) {}
570 virtual void getQueryObjectuivEXT(
571 WebKit::WebGLId query
,
572 WebKit::WGC3Denum pname
,
573 WebKit::WGC3Duint
* params
);
575 virtual void setContextLostCallback(
576 WebGraphicsContextLostCallback
* callback
);
578 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current
,
579 WebKit::WGC3Denum other
);
581 virtual void drawBuffersEXT(WebKit::WGC3Dsizei m
,
582 const WebKit::WGC3Denum
* bufs
) {}
584 virtual void bindTexImage2DCHROMIUM(WebKit::WGC3Denum target
,
585 WebKit::WGC3Dint image_id
) {}
587 // GL_CHROMIUM_gpu_memory_buffer
588 virtual WebKit::WGC3Duint
createImageCHROMIUM(
589 WebKit::WGC3Dsizei width
,
590 WebKit::WGC3Dsizei height
,
591 WebKit::WGC3Denum internalformat
);
592 virtual void destroyImageCHROMIUM(WebKit::WGC3Duint image_id
) {}
593 virtual void getImageParameterivCHROMIUM(
594 WebKit::WGC3Duint image_id
,
595 WebKit::WGC3Denum pname
,
596 WebKit::WGC3Dint
* params
) {}
597 virtual void* mapImageCHROMIUM(
598 WebKit::WGC3Duint image_id
,
599 WebKit::WGC3Denum access
);
600 virtual void unmapImageCHROMIUM(WebKit::WGC3Duint image_id
) {}
603 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D
);
608 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_