Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: cc/test/fake_web_graphics_context_3d.h

Issue 11606012: cc: Unify context losing machinery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698