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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual bool makeContextCurrent() = 0; | 133 virtual bool makeContextCurrent() = 0; |
134 | 134 |
135 // The size of the region into which this WebGraphicsContext3D is rendering. | 135 // The size of the region into which this WebGraphicsContext3D is rendering. |
136 // Returns the last values passed to reshape(). | 136 // Returns the last values passed to reshape(). |
137 virtual int width() = 0; | 137 virtual int width() = 0; |
138 virtual int height() = 0; | 138 virtual int height() = 0; |
139 | 139 |
140 // Resizes the region into which this WebGraphicsContext3D is drawing. | 140 // Resizes the region into which this WebGraphicsContext3D is drawing. |
141 virtual void reshape(int width, int height) = 0; | 141 virtual void reshape(int width, int height) = 0; |
142 | 142 |
| 143 // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer |
| 144 virtual void setVisibilityCHROMIUM(bool visible) { } |
| 145 |
143 // Query whether it is built on top of compliant GLES2 implementation. | 146 // Query whether it is built on top of compliant GLES2 implementation. |
144 virtual bool isGLES2Compliant() = 0; | 147 virtual bool isGLES2Compliant() = 0; |
145 | 148 |
146 virtual bool setParentContext(WebGraphicsContext3D* parentContext) { return
false; } | 149 virtual bool setParentContext(WebGraphicsContext3D* parentContext) { return
false; } |
147 | 150 |
148 // Helper for software compositing path. Reads back the frame buffer into | 151 // Helper for software compositing path. Reads back the frame buffer into |
149 // the memory region pointed to by "pixels" with size "bufferSize". It is | 152 // the memory region pointed to by "pixels" with size "bufferSize". It is |
150 // expected that the storage for "pixels" covers (4 * width * height) bytes. | 153 // expected that the storage for "pixels" covers (4 * width * height) bytes. |
151 // Returns true on success. | 154 // Returns true on success. |
152 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W
ebGLId framebuffer, int width, int height) = 0; | 155 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W
ebGLId framebuffer, int width, int height) = 0; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 protected: | 375 protected: |
373 #if WEBKIT_USING_SKIA | 376 #if WEBKIT_USING_SKIA |
374 virtual GrGLInterface* onCreateGrGLInterface() { return 0; } | 377 virtual GrGLInterface* onCreateGrGLInterface() { return 0; } |
375 #endif | 378 #endif |
376 | 379 |
377 }; | 380 }; |
378 | 381 |
379 } // namespace WebKit | 382 } // namespace WebKit |
380 | 383 |
381 #endif | 384 #endif |
OLD | NEW |