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

Side by Side Diff: third_party/WebKit/public/platform/WebGraphicsContext3D.h

Issue 1808933002: Remove framebufferRenderbuffer and framebufferTexture* from WGC3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wgc3d-unused
Patch Set: framebufferRenderbuffer: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 virtual void detachShader(WebGLId program, WebGLId shader) = 0; 204 virtual void detachShader(WebGLId program, WebGLId shader) = 0;
205 virtual void disable(WGC3Denum cap) = 0; 205 virtual void disable(WGC3Denum cap) = 0;
206 virtual void disableVertexAttribArray(WGC3Duint index) = 0; 206 virtual void disableVertexAttribArray(WGC3Duint index) = 0;
207 virtual void drawArrays(WGC3Denum mode, WGC3Dint first, WGC3Dsizei count) = 0; 207 virtual void drawArrays(WGC3Denum mode, WGC3Dint first, WGC3Dsizei count) = 0;
208 virtual void drawElements(WGC3Denum mode, WGC3Dsizei count, WGC3Denum type, WGC3Dintptr offset) = 0; 208 virtual void drawElements(WGC3Denum mode, WGC3Dsizei count, WGC3Denum type, WGC3Dintptr offset) = 0;
209 209
210 virtual void enable(WGC3Denum cap) = 0; 210 virtual void enable(WGC3Denum cap) = 0;
211 virtual void enableVertexAttribArray(WGC3Duint index) = 0; 211 virtual void enableVertexAttribArray(WGC3Duint index) = 0;
212 virtual void finish() = 0; 212 virtual void finish() = 0;
213 virtual void flush() = 0; 213 virtual void flush() = 0;
214 virtual void framebufferRenderbuffer(WGC3Denum target, WGC3Denum attachment, WGC3Denum renderbuffertarget, WebGLId renderbuffer) = 0;
215 virtual void framebufferTexture2D(WGC3Denum target, WGC3Denum attachment, WG C3Denum textarget, WebGLId texture, WGC3Dint level) = 0;
216 virtual void frontFace(WGC3Denum mode) = 0; 214 virtual void frontFace(WGC3Denum mode) = 0;
217 virtual void generateMipmap(WGC3Denum target) = 0; 215 virtual void generateMipmap(WGC3Denum target) = 0;
218 216
219 virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&) = 0; 217 virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&) = 0;
220 virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&) = 0; 218 virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&) = 0;
221 virtual void getAttachedShaders(WebGLId program, WGC3Dsizei maxCount, WGC3Ds izei* count, WebGLId* shaders) = 0; 219 virtual void getAttachedShaders(WebGLId program, WGC3Dsizei maxCount, WGC3Ds izei* count, WebGLId* shaders) = 0;
222 virtual WGC3Dint getAttribLocation(WebGLId program, const WGC3Dchar* name) = 0; 220 virtual WGC3Dint getAttribLocation(WebGLId program, const WGC3Dchar* name) = 0;
223 virtual void getBooleanv(WGC3Denum pname, WGC3Dboolean* value) = 0; 221 virtual void getBooleanv(WGC3Denum pname, WGC3Dboolean* value) = 0;
224 virtual void getBufferParameteriv(WGC3Denum target, WGC3Denum pname, WGC3Din t* value) = 0; 222 virtual void getBufferParameteriv(WGC3Denum target, WGC3Denum pname, WGC3Din t* value) = 0;
225 virtual WGC3Denum getError() = 0; 223 virtual WGC3Denum getError() = 0;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 virtual void copyBufferSubData(WGC3Denum readTarget, WGC3Denum writeTarget, WGC3Dintptr readOffset, WGC3Dintptr writeOffset, WGC3Dsizeiptr size) { } 425 virtual void copyBufferSubData(WGC3Denum readTarget, WGC3Denum writeTarget, WGC3Dintptr readOffset, WGC3Dintptr writeOffset, WGC3Dsizeiptr size) { }
428 virtual void copyTexSubImage3D(WGC3Denum target, WGC3Dint level, WGC3Dint xo ffset, WGC3Dint yoffset, WGC3Dint zoffset, WGC3Dint x, WGC3Dint y, WGC3Dsizei wi dth, WGC3Dsizei height) { } 426 virtual void copyTexSubImage3D(WGC3Denum target, WGC3Dint level, WGC3Dint xo ffset, WGC3Dint yoffset, WGC3Dint zoffset, WGC3Dint x, WGC3Dint y, WGC3Dsizei wi dth, WGC3Dsizei height) { }
429 virtual WebGLId createSampler() { return 0; } 427 virtual WebGLId createSampler() { return 0; }
430 virtual WebGLId createTransformFeedback() { return 0; } 428 virtual WebGLId createTransformFeedback() { return 0; }
431 virtual void deleteSampler(WebGLId sampler) { } 429 virtual void deleteSampler(WebGLId sampler) { }
432 virtual void deleteSync(WGC3Dsync sync) { } 430 virtual void deleteSync(WGC3Dsync sync) { }
433 virtual void deleteTransformFeedback(WebGLId transformfeedback) { } 431 virtual void deleteTransformFeedback(WebGLId transformfeedback) { }
434 virtual void drawRangeElements(WGC3Denum mode, WGC3Duint start, WGC3Duint en d, WGC3Dsizei count, WGC3Denum type, WGC3Dintptr offset) { } 432 virtual void drawRangeElements(WGC3Denum mode, WGC3Duint start, WGC3Duint en d, WGC3Dsizei count, WGC3Denum type, WGC3Dintptr offset) { }
435 virtual void endTransformFeedback(void) { } 433 virtual void endTransformFeedback(void) { }
436 virtual WGC3Dsync fenceSync(WGC3Denum condition, WGC3Dbitfield flags) { retu rn nullptr; } 434 virtual WGC3Dsync fenceSync(WGC3Denum condition, WGC3Dbitfield flags) { retu rn nullptr; }
437 virtual void framebufferTextureLayer(WGC3Denum target, WGC3Denum attachment, WGC3Duint texture, WGC3Dint level, WGC3Dint layer) { }
438 virtual void getActiveUniformBlockName(WebGLId program, WGC3Duint uniformBlo ckIndex, WGC3Dsizei bufSize, WGC3Dsizei *length, WGC3Dchar *uniformBlockName) { } 435 virtual void getActiveUniformBlockName(WebGLId program, WGC3Duint uniformBlo ckIndex, WGC3Dsizei bufSize, WGC3Dsizei *length, WGC3Dchar *uniformBlockName) { }
439 virtual void getActiveUniformBlockiv(WebGLId program, WGC3Duint uniformBlock Index, WGC3Denum pname, WGC3Dint *params) { } 436 virtual void getActiveUniformBlockiv(WebGLId program, WGC3Duint uniformBlock Index, WGC3Denum pname, WGC3Dint *params) { }
440 virtual void getActiveUniformsiv(WebGLId program, WGC3Dsizei uniformCount, c onst WGC3Duint *uniformIndices, WGC3Denum pname, WGC3Dint *params) { } 437 virtual void getActiveUniformsiv(WebGLId program, WGC3Dsizei uniformCount, c onst WGC3Duint *uniformIndices, WGC3Denum pname, WGC3Dint *params) { }
441 virtual void getBufferParameteri64v(WGC3Denum target, WGC3Denum pname, WGC3D int64 *value) { } 438 virtual void getBufferParameteri64v(WGC3Denum target, WGC3Denum pname, WGC3D int64 *value) { }
442 virtual WGC3Dint getFragDataLocation(WebGLId program, const WGC3Dchar *name) { return -1; } 439 virtual WGC3Dint getFragDataLocation(WebGLId program, const WGC3Dchar *name) { return -1; }
443 virtual void getInteger64v(WGC3Denum pname, WGC3Dint64 *data) { } 440 virtual void getInteger64v(WGC3Denum pname, WGC3Dint64 *data) { }
444 virtual void getIntegeri_v(WGC3Denum target, WGC3Duint index, WGC3Dint *data ) { } 441 virtual void getIntegeri_v(WGC3Denum target, WGC3Duint index, WGC3Dint *data ) { }
445 virtual void getInteger64i_v(WGC3Denum target, WGC3Duint index, WGC3Dint64 * data) { } 442 virtual void getInteger64i_v(WGC3Denum target, WGC3Duint index, WGC3Dint64 * data) { }
446 virtual void getInternalformativ(WGC3Denum target, WGC3Denum internalformat, WGC3Denum pname, WGC3Dsizei bufSize, WGC3Dint *params) { } 443 virtual void getInternalformativ(WGC3Denum target, WGC3Denum internalformat, WGC3Denum pname, WGC3Dsizei bufSize, WGC3Dint *params) { }
447 virtual void getSamplerParameterfv(WebGLId sampler, WGC3Denum pname, WGC3Dfl oat *params) { } 444 virtual void getSamplerParameterfv(WebGLId sampler, WGC3Denum pname, WGC3Dfl oat *params) { }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum type, WGC3Dsizei stride, WGC3Dintptr pointer) { } 492 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum type, WGC3Dsizei stride, WGC3Dintptr pointer) { }
496 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo ut) { } 493 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo ut) { }
497 494
498 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi ble, and avoid using WebGraphicsContext3D at all. 495 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi ble, and avoid using WebGraphicsContext3D at all.
499 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; 496 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0;
500 }; 497 };
501 498
502 } // namespace blink 499 } // namespace blink
503 500
504 #endif 501 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698