| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 // Query whether it is built on top of compliant GLES2 implementation. | 132 // Query whether it is built on top of compliant GLES2 implementation. |
| 133 virtual bool isGLES2Compliant() = 0; | 133 virtual bool isGLES2Compliant() = 0; |
| 134 | 134 |
| 135 virtual bool setParentContext(WebGraphicsContext3D* parentContext) { return
false; } | 135 virtual bool setParentContext(WebGraphicsContext3D* parentContext) { return
false; } |
| 136 | 136 |
| 137 // Helper for software compositing path. Reads back the frame buffer into | 137 // Helper for software compositing path. Reads back the frame buffer into |
| 138 // the memory region pointed to by "pixels" with size "bufferSize". It is | 138 // the memory region pointed to by "pixels" with size "bufferSize". It is |
| 139 // expected that the storage for "pixels" covers (4 * width * height) bytes. | 139 // expected that the storage for "pixels" covers (4 * width * height) bytes. |
| 140 // Returns true on success. | 140 // Returns true on success. |
| 141 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize) =
0; | 141 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W
ebGLId framebuffer, int width, int height) = 0; |
| 142 | 142 |
| 143 // Returns the id of the texture which is used for storing the contents of | 143 // Returns the id of the texture which is used for storing the contents of |
| 144 // the framebuffer associated with this context. This texture is accessible | 144 // the framebuffer associated with this context. This texture is accessible |
| 145 // by the gpu-based page compositor. | 145 // by the gpu-based page compositor. |
| 146 virtual WebGLId getPlatformTextureId() = 0; | 146 virtual WebGLId getPlatformTextureId() = 0; |
| 147 | 147 |
| 148 // Copies the contents of the off-screen render target used by the WebGL | 148 // Copies the contents of the off-screen render target used by the WebGL |
| 149 // context to the corresponding texture used by the compositor. | 149 // context to the corresponding texture used by the compositor. |
| 150 virtual void prepareTexture() = 0; | 150 virtual void prepareTexture() = 0; |
| 151 | 151 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 // | 360 // |
| 361 // This entry point must provide slightly different semantics than | 361 // This entry point must provide slightly different semantics than |
| 362 // the GL_ARB_robustness extension; specifically, the lost context | 362 // the GL_ARB_robustness extension; specifically, the lost context |
| 363 // state is sticky, rather than reported only once. | 363 // state is sticky, rather than reported only once. |
| 364 virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */
} | 364 virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */
} |
| 365 }; | 365 }; |
| 366 | 366 |
| 367 } // namespace WebKit | 367 } // namespace WebKit |
| 368 | 368 |
| 369 #endif | 369 #endif |
| OLD | NEW |