| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 { | 40 { |
| 41 } | 41 } |
| 42 | 42 |
| 43 virtual bool makeContextCurrent() { return true; } | 43 virtual bool makeContextCurrent() { return true; } |
| 44 | 44 |
| 45 virtual int width() { return 0; } | 45 virtual int width() { return 0; } |
| 46 virtual int height() { return 0; } | 46 virtual int height() { return 0; } |
| 47 | 47 |
| 48 virtual void reshape(int width, int height) { } | 48 virtual void reshape(int width, int height) { } |
| 49 | 49 |
| 50 virtual bool isGLES2Compliant() { return false; } | |
| 51 | |
| 52 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W
ebGLId framebuffer, int width, int height) { return false; } | 50 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W
ebGLId framebuffer, int width, int height) { return false; } |
| 53 | 51 |
| 54 virtual WebGLId getPlatformTextureId() { return 0; } | |
| 55 | |
| 56 virtual void prepareTexture() { } | 52 virtual void prepareTexture() { } |
| 57 | 53 |
| 58 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) { } | 54 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) { } |
| 59 | 55 |
| 60 virtual void synthesizeGLError(WGC3Denum) { } | 56 virtual void synthesizeGLError(WGC3Denum) { } |
| 61 | 57 |
| 62 virtual bool isContextLost() { return false; } | 58 virtual bool isContextLost() { return false; } |
| 63 | 59 |
| 64 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset,
WGC3Dsizeiptr size, WGC3Denum access) { return 0; } | 60 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset,
WGC3Dsizeiptr size, WGC3Denum access) { return 0; } |
| 65 virtual void unmapBufferSubDataCHROMIUM(const void*) { } | 61 virtual void unmapBufferSubDataCHROMIUM(const void*) { } |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { } | 268 virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { } |
| 273 | 269 |
| 274 protected: | 270 protected: |
| 275 unsigned m_nextTextureId; | 271 unsigned m_nextTextureId; |
| 276 Attributes m_attrs; | 272 Attributes m_attrs; |
| 277 }; | 273 }; |
| 278 | 274 |
| 279 } // namespace WebKit | 275 } // namespace WebKit |
| 280 | 276 |
| 281 #endif // FakeWebGraphicsContext3D_h | 277 #endif // FakeWebGraphicsContext3D_h |
| OLD | NEW |