| OLD | NEW |
| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer | 141 // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer |
| 142 virtual void setVisibilityCHROMIUM(bool visible) = 0; | 142 virtual void setVisibilityCHROMIUM(bool visible) = 0; |
| 143 | 143 |
| 144 // GL_EXT_discard_framebuffer - makes specified attachments of currently bou
nd framebuffer undefined. | 144 // GL_EXT_discard_framebuffer - makes specified attachments of currently bou
nd framebuffer undefined. |
| 145 virtual void discardFramebufferEXT(WGC3Denum target, WGC3Dsizei numAttachmen
ts, const WGC3Denum* attachments) { } | 145 virtual void discardFramebufferEXT(WGC3Denum target, WGC3Dsizei numAttachmen
ts, const WGC3Denum* attachments) { } |
| 146 | 146 |
| 147 // GL_CHROMIUM_discard_backbuffer - controls allocation/deallocation of the
back buffer. | 147 // GL_CHROMIUM_discard_backbuffer - controls allocation/deallocation of the
back buffer. |
| 148 virtual void discardBackbufferCHROMIUM() { } | 148 virtual void discardBackbufferCHROMIUM() { } |
| 149 virtual void ensureBackbufferCHROMIUM() { } | 149 virtual void ensureBackbufferCHROMIUM() { } |
| 150 | 150 |
| 151 virtual WGC3Duint64 insertFenceSyncCHROMIUM() { return 0; } | 151 virtual bool insertSyncPoint(WGC3Dbyte*) { return false; } |
| 152 virtual bool genSyncTokenCHROMIUM(WGC3Duint64, WGC3Dbyte*) { return false; } | 152 virtual void waitSyncToken(const WGC3Dbyte*) {} |
| 153 virtual void waitSyncTokenCHROMIUM(const WGC3Dbyte*) {} | |
| 154 | 153 |
| 155 // Copies the contents of the off-screen render target used by the WebGL | 154 // Copies the contents of the off-screen render target used by the WebGL |
| 156 // context to the corresponding texture used by the compositor. | 155 // context to the corresponding texture used by the compositor. |
| 157 virtual void prepareTexture() = 0; | 156 virtual void prepareTexture() = 0; |
| 158 | 157 |
| 159 // GL_CHROMIUM_post_sub_buffer - Copies part of the back buffer to the front
buffer. | 158 // GL_CHROMIUM_post_sub_buffer - Copies part of the back buffer to the front
buffer. |
| 160 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) = 0; | 159 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) = 0; |
| 161 | 160 |
| 162 // Synthesizes an OpenGL error which will be returned from a | 161 // Synthesizes an OpenGL error which will be returned from a |
| 163 // later call to getError. This is used to emulate OpenGL ES | 162 // later call to getError. This is used to emulate OpenGL ES |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } | 547 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } |
| 549 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC
3Duint z, WGC3Duint w) { } | 548 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC
3Duint z, WGC3Duint w) { } |
| 550 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } | 549 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } |
| 551 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } | 550 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } |
| 552 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } | 551 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } |
| 553 }; | 552 }; |
| 554 | 553 |
| 555 } // namespace blink | 554 } // namespace blink |
| 556 | 555 |
| 557 #endif | 556 #endif |
| OLD | NEW |