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 unsigned insertSyncPoint() { return 0; } | 151 virtual bool insertSyncPoint(WGC3Dbyte*) { return false; } |
152 virtual void waitSyncPoint(unsigned) { } | 152 virtual void waitSyncToken(const WGC3Dbyte*) {} |
153 | 153 |
154 // 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 |
155 // context to the corresponding texture used by the compositor. | 155 // context to the corresponding texture used by the compositor. |
156 virtual void prepareTexture() = 0; | 156 virtual void prepareTexture() = 0; |
157 | 157 |
158 // 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. |
159 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; |
160 | 160 |
161 // Synthesizes an OpenGL error which will be returned from a | 161 // Synthesizes an OpenGL error which will be returned from a |
162 // later call to getError. This is used to emulate OpenGL ES | 162 // later call to getError. This is used to emulate OpenGL ES |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } | 549 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } |
550 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC
3Duint z, WGC3Duint w) { } | 550 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC
3Duint z, WGC3Duint w) { } |
551 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } | 551 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } |
552 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } | 552 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } |
553 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } | 553 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } |
554 }; | 554 }; |
555 | 555 |
556 } // namespace blink | 556 } // namespace blink |
557 | 557 |
558 #endif | 558 #endif |
OLD | NEW |