| 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 readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W
ebGLId framebuffer, int width, int height) { return false; } | |
| 51 | |
| 52 virtual void prepareTexture() { } | 50 virtual void prepareTexture() { } |
| 53 | 51 |
| 54 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) { } | 52 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) { } |
| 55 | 53 |
| 56 virtual void synthesizeGLError(WGC3Denum) { } | 54 virtual void synthesizeGLError(WGC3Denum) { } |
| 57 | 55 |
| 58 virtual bool isContextLost() { return false; } | 56 virtual bool isContextLost() { return false; } |
| 59 | 57 |
| 60 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset,
WGC3Dsizeiptr size, WGC3Denum access) { return 0; } | 58 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset,
WGC3Dsizeiptr size, WGC3Denum access) { return 0; } |
| 61 virtual void unmapBufferSubDataCHROMIUM(const void*) { } | 59 virtual void unmapBufferSubDataCHROMIUM(const void*) { } |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { } | 266 virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { } |
| 269 | 267 |
| 270 protected: | 268 protected: |
| 271 unsigned m_nextTextureId; | 269 unsigned m_nextTextureId; |
| 272 Attributes m_attrs; | 270 Attributes m_attrs; |
| 273 }; | 271 }; |
| 274 | 272 |
| 275 } // namespace WebKit | 273 } // namespace WebKit |
| 276 | 274 |
| 277 #endif // FakeWebGraphicsContext3D_h | 275 #endif // FakeWebGraphicsContext3D_h |
| OLD | NEW |