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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer | 158 // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer |
159 virtual void setVisibilityCHROMIUM(bool visible) = 0; | 159 virtual void setVisibilityCHROMIUM(bool visible) = 0; |
160 | 160 |
161 // GL_EXT_discard_framebuffer - makes specified attachments of currently bou
nd framebuffer undefined. | 161 // GL_EXT_discard_framebuffer - makes specified attachments of currently bou
nd framebuffer undefined. |
162 virtual void discardFramebufferEXT(WGC3Denum target, WGC3Dsizei numAttachmen
ts, const WGC3Denum* attachments) { } | 162 virtual void discardFramebufferEXT(WGC3Denum target, WGC3Dsizei numAttachmen
ts, const WGC3Denum* attachments) { } |
163 | 163 |
164 // GL_CHROMIUM_discard_backbuffer - controls allocation/deallocation of the
back buffer. | 164 // GL_CHROMIUM_discard_backbuffer - controls allocation/deallocation of the
back buffer. |
165 virtual void discardBackbufferCHROMIUM() { } | 165 virtual void discardBackbufferCHROMIUM() { } |
166 virtual void ensureBackbufferCHROMIUM() { } | 166 virtual void ensureBackbufferCHROMIUM() { } |
167 | 167 |
168 virtual unsigned insertSyncPoint() { return 0; } | 168 virtual bool insertSyncPoint(WGC3Dbyte*) { return false; } |
169 virtual void waitSyncPoint(unsigned) { } | 169 virtual void waitSyncToken(const WGC3Dbyte*) {} |
170 | 170 |
171 // Copies the contents of the off-screen render target used by the WebGL | 171 // Copies the contents of the off-screen render target used by the WebGL |
172 // context to the corresponding texture used by the compositor. | 172 // context to the corresponding texture used by the compositor. |
173 virtual void prepareTexture() = 0; | 173 virtual void prepareTexture() = 0; |
174 | 174 |
175 // GL_CHROMIUM_post_sub_buffer - Copies part of the back buffer to the front
buffer. | 175 // GL_CHROMIUM_post_sub_buffer - Copies part of the back buffer to the front
buffer. |
176 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) = 0; | 176 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) = 0; |
177 | 177 |
178 // Synthesizes an OpenGL error which will be returned from a | 178 // Synthesizes an OpenGL error which will be returned from a |
179 // later call to getError. This is used to emulate OpenGL ES | 179 // later call to getError. This is used to emulate OpenGL ES |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } | 566 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } |
567 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC
3Duint z, WGC3Duint w) { } | 567 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC
3Duint z, WGC3Duint w) { } |
568 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } | 568 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } |
569 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } | 569 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } |
570 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } | 570 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } |
571 }; | 571 }; |
572 | 572 |
573 } // namespace blink | 573 } // namespace blink |
574 | 574 |
575 #endif | 575 #endif |
OLD | NEW |