| Index: cc/test/fake_web_graphics_context_3d.h
|
| diff --git a/cc/test/fake_web_graphics_context_3d.h b/cc/test/fake_web_graphics_context_3d.h
|
| index 8ef6cb9788aaa79b2e45b50b8ac664bcf055aa48..10485e076110ecfffc8756289c1efaead506699b 100644
|
| --- a/cc/test/fake_web_graphics_context_3d.h
|
| +++ b/cc/test/fake_web_graphics_context_3d.h
|
| @@ -16,6 +16,8 @@ class FakeWebGraphicsContext3D : public WebKit::WebGraphicsContext3D {
|
| public:
|
| FakeWebGraphicsContext3D()
|
| : m_nextTextureId(1)
|
| + , m_contextLost(false)
|
| + , m_contextLostCallback(NULL)
|
| {
|
| }
|
|
|
| @@ -39,6 +41,7 @@ public:
|
| virtual void synthesizeGLError(WebKit::WGC3Denum) { }
|
|
|
| virtual bool isContextLost();
|
| + virtual WebKit::WGC3Denum getGraphicsResetStatusARB();
|
|
|
| virtual void* mapBufferSubDataCHROMIUM(WebKit::WGC3Denum target, WebKit::WGC3Dintptr offset, WebKit::WGC3Dsizeiptr size, WebKit::WGC3Denum access);
|
|
|
| @@ -236,9 +239,15 @@ public:
|
| virtual void getQueryivEXT(WebKit::WGC3Denum, WebKit::WGC3Denum, WebKit::WGC3Dint*) { }
|
| virtual void getQueryObjectuivEXT(WebKit::WebGLId, WebKit::WGC3Denum, WebKit::WGC3Duint*) { }
|
|
|
| + virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback);
|
| +
|
| + void loseContext();
|
| +
|
| protected:
|
| unsigned m_nextTextureId;
|
| Attributes m_attrs;
|
| + bool m_contextLost;
|
| + WebGraphicsContextLostCallback* m_contextLostCallback;
|
| };
|
|
|
| } // namespace cc
|
|
|