Chromium Code Reviews| Index: Source/core/tests/FakeWebGraphicsContext3D.h |
| diff --git a/Source/core/tests/FakeWebGraphicsContext3D.h b/Source/core/tests/FakeWebGraphicsContext3D.h |
| index 693e246843492cc10bb1d2fbb6b8d2da3ba651d8..5c563eeaeddacde1af93cdb7f42a3d90285388eb 100644 |
| --- a/Source/core/tests/FakeWebGraphicsContext3D.h |
| +++ b/Source/core/tests/FakeWebGraphicsContext3D.h |
| @@ -37,6 +37,7 @@ class FakeWebGraphicsContext3D : public WebGraphicsContext3D { |
| public: |
| FakeWebGraphicsContext3D() |
| : m_nextTextureId(1) |
| + , m_isContextLost(false) |
| { |
| } |
| @@ -53,7 +54,7 @@ public: |
| virtual void synthesizeGLError(WGC3Denum) { } |
| - virtual bool isContextLost() { return false; } |
| + virtual bool isContextLost() { return m_isContextLost; } |
| virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, WGC3Dsizeiptr size, WGC3Denum access) { return 0; } |
| virtual void unmapBufferSubDataCHROMIUM(const void*) { } |
| @@ -263,9 +264,11 @@ public: |
| virtual void getQueryivEXT(GC3Denum, GC3Denum, GC3Dint*) { } |
| virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { } |
| + void fakeContextLoss() { m_isContextLost = true;} |
|
jamesr
2013/08/05 22:56:36
keep a blank line before the 'protected:', please
|
| protected: |
| unsigned m_nextTextureId; |
| Attributes m_attrs; |
| + bool m_isContextLost; |
| }; |
| } // namespace WebKit |