Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebGraphicsContext3D.h |
| diff --git a/third_party/WebKit/public/platform/WebGraphicsContext3D.h b/third_party/WebKit/public/platform/WebGraphicsContext3D.h |
| index 89ad941ddcb143cb256f57655f156a67f3411fa5..7d7b77e194594b89174a345632941190a4441297 100644 |
| --- a/third_party/WebKit/public/platform/WebGraphicsContext3D.h |
| +++ b/third_party/WebKit/public/platform/WebGraphicsContext3D.h |
| @@ -141,30 +141,13 @@ public: |
| // the ID number, the more recently the context has been flushed. |
| virtual uint32_t lastFlushID() { return 0; } |
| - // Resizes the region into which this WebGraphicsContext3D is drawing. |
| - virtual void reshapeWithScaleFactor(int width, int height, float scaleFactor) { } |
|
Ken Russell (switch to Gerrit)
2016/03/16 00:18:22
I think some test code will need to be deleted to
danakj
2016/03/16 00:19:28
I can find no calls to it with grep (outside of cc
Ken Russell (switch to Gerrit)
2016/03/16 00:29:55
Yes, it was the cc/ tests I found via codesearch.
|
| - |
| - // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer |
| - virtual void setVisibilityCHROMIUM(bool visible) = 0; |
| - |
| // GL_EXT_discard_framebuffer - makes specified attachments of currently bound framebuffer undefined. |
| virtual void discardFramebufferEXT(WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) { } |
| - // GL_CHROMIUM_discard_backbuffer - controls allocation/deallocation of the back buffer. |
| - virtual void discardBackbufferCHROMIUM() { } |
| - virtual void ensureBackbufferCHROMIUM() { } |
| - |
| virtual WGC3Duint64 insertFenceSyncCHROMIUM() { return 0; } |
| virtual bool genSyncTokenCHROMIUM(WGC3Duint64, WGC3Dbyte*) { return false; } |
| virtual void waitSyncTokenCHROMIUM(const WGC3Dbyte*) {} |
| - // Copies the contents of the off-screen render target used by the WebGL |
| - // context to the corresponding texture used by the compositor. |
| - virtual void prepareTexture() = 0; |
| - |
| - // GL_CHROMIUM_post_sub_buffer - Copies part of the back buffer to the front buffer. |
| - virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) = 0; |
| - |
| // Synthesizes an OpenGL error which will be returned from a |
| // later call to getError. This is used to emulate OpenGL ES |
| // 2.0 behavior on the desktop and to enforce additional error |
| @@ -175,12 +158,6 @@ public: |
| // getError in the order they were added. |
| virtual void synthesizeGLError(WGC3Denum) = 0; |
| - // GL_CHROMIUM_map_sub |
| - virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, WGC3Dsizeiptr size, WGC3Denum access) = 0; |
| - virtual void unmapBufferSubDataCHROMIUM(const void*) = 0; |
| - virtual void* mapTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, WGC3Denum access) = 0; |
| - virtual void unmapTexSubImage2DCHROMIUM(const void*) = 0; |
| - |
| // GL_CHROMIUM_request_extension |
| virtual WebString getRequestableExtensionsCHROMIUM() = 0; |
| virtual void requestExtensionCHROMIUM(const char*) = 0; |
| @@ -189,9 +166,6 @@ public: |
| virtual void blitFramebufferCHROMIUM(WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Dint dstY1, WGC3Dbitfield mask, WGC3Denum filter) = 0; |
| virtual void renderbufferStorageMultisampleCHROMIUM(WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) = 0; |
| - // GL_CHROMIUM_lose_context |
| - virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other) { } |
| - |
| // The entry points below map directly to the OpenGL ES 2.0 API. |
| // See: http://www.khronos.org/registry/gles/ |
| // and: http://www.khronos.org/opengles/sdk/docs/man/ |
| @@ -284,8 +258,6 @@ public: |
| virtual void readPixels(WGC3Dint x, WGC3Dint y, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, void* pixels) = 0; |
| - virtual void releaseShaderCompiler() = 0; |
| - |
| virtual void renderbufferStorage(WGC3Denum target, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) = 0; |
| virtual void sampleCoverage(WGC3Dclampf value, WGC3Dboolean invert) = 0; |
| virtual void scissor(WGC3Dint x, WGC3Dint y, WGC3Dsizei width, WGC3Dsizei height) = 0; |
| @@ -358,21 +330,12 @@ public: |
| virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback) { } |
| virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callback) { } |
| - // GL_ARB_robustness |
| - // |
| - // This entry point must provide slightly different semantics than |
| - // the GL_ARB_robustness extension; specifically, the lost context |
| - // state is sticky, rather than reported only once. |
| - virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */ } |
| virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) = 0; |
| // GL_CHROMIUM_screen_space_antialiasing |
| virtual void applyScreenSpaceAntialiasingCHROMIUM() { } |
| - // GL_CHROMIUM_iosurface |
| - virtual void texImageIOSurface2DCHROMIUM(WGC3Denum target, WGC3Dint width, WGC3Dint height, WGC3Duint ioSurfaceId, WGC3Duint plane) { } |
| - |
| // GL_EXT_texture_storage |
| virtual void texStorage2DEXT(WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat, |
| WGC3Dint width, WGC3Dint height) { } |
| @@ -390,9 +353,6 @@ public: |
| virtual void queryCounterEXT(WebGLId query, WGC3Denum target) {} |
| virtual void getQueryObjectui64vEXT(WebGLId query, WGC3Denum pname, WGC3Duint64* params) {} |
| - // GL_CHROMIUM_bind_uniform_location |
| - virtual void bindUniformLocationCHROMIUM(WebGLId program, WGC3Dint location, const WGC3Dchar* uniform) { } |
| - |
| // GL_CHROMIUM_copy_texture |
| virtual void copyTextureCHROMIUM(WGC3Duint sourceId, |
| WGC3Duint destId, WGC3Denum internalFormat, WGC3Denum destType, |
| @@ -402,10 +362,6 @@ public: |
| WGC3Dint y, WGC3Dsizei width, WGC3Dsizei height, |
| WGC3Dboolean unpackFlipY, WGC3Dboolean unpackPremultiplyAlpha, WGC3Dboolean unpackUnmultiplyAlpha) { } |
| - // GL_CHROMIUM_shallow_flush |
| - virtual void shallowFlushCHROMIUM() { } |
| - virtual void shallowFinishCHROMIUM() { } |
| - |
| // GL_CHROMIUM_subscribe_uniform |
| virtual void genValuebuffersCHROMIUM(WGC3Dsizei count, WebGLId* ids) { } |
| virtual WebGLId createValuebufferCHROMIUM() { return 0; } |
| @@ -422,17 +378,10 @@ public: |
| virtual void produceTextureCHROMIUM(WGC3Denum target, const WGC3Dbyte* mailbox) { } |
| virtual void produceTextureDirectCHROMIUM(WebGLId texture, WGC3Denum target, const WGC3Dbyte* mailbox) { } |
| - virtual void consumeTextureCHROMIUM(WGC3Denum target, const WGC3Dbyte* mailbox) { } |
| virtual WebGLId createAndConsumeTextureCHROMIUM(WGC3Denum target, const WGC3Dbyte* mailbox) { return 0; } |
| // GL_EXT_debug_marker |
| - virtual void insertEventMarkerEXT(const WGC3Dchar* marker) { } |
| virtual void pushGroupMarkerEXT(const WGC3Dchar* marker) { } |
| - virtual void popGroupMarkerEXT(void) { } |
| - |
| - // GL_CHROMIUM_trace_marker |
| - virtual void traceBeginCHROMIUM(const WGC3Dchar* category, const WGC3Dchar* trace) { } |
| - virtual void traceEndCHROMIUM() { } |
| // GL_OES_vertex_array_object |
| virtual WebGLId createVertexArrayOES() { return 0; } |
| @@ -444,15 +393,6 @@ public: |
| virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId) { } |
| virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId) { } |
| - // GL_CHROMIUM_pixel_transfer_buffer_object |
| - virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access) { return nullptr; } |
| - virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target) { return false; } |
| - |
| - // GL_CHROMIUM_async_pixel_transfers |
| - virtual void asyncTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height, WGC3Dint border, WGC3Denum format, WGC3Denum type, const void* pixels) { } |
| - virtual void asyncTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, const void* pixels) { } |
| - virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum) { } |
| - |
| // GL_EXT_draw_buffers |
| virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs) { } |