| Index: Source/WebKit/chromium/tests/FakeWebGraphicsContext3D.h
|
| ===================================================================
|
| --- Source/WebKit/chromium/tests/FakeWebGraphicsContext3D.h (revision 122257)
|
| +++ Source/WebKit/chromium/tests/FakeWebGraphicsContext3D.h (working copy)
|
| @@ -35,6 +35,11 @@
|
| // All operations are no-ops (returning 0 if necessary).
|
| class FakeWebGraphicsContext3D : public WebGraphicsContext3D {
|
| public:
|
| + FakeWebGraphicsContext3D()
|
| + : m_nextTextureId(1)
|
| + {
|
| + }
|
| +
|
| virtual bool makeContextCurrent() { return true; }
|
|
|
| virtual int width() { return 0; }
|
| @@ -246,7 +251,7 @@
|
| virtual WebGLId createProgram() { return 1; }
|
| virtual WebGLId createRenderbuffer() { return 1; }
|
| virtual WebGLId createShader(WGC3Denum) { return 1; }
|
| - virtual WebGLId createTexture() { return 1; }
|
| + virtual WebGLId createTexture() { return m_nextTextureId++; }
|
|
|
| virtual void deleteBuffer(WebGLId) { }
|
| virtual void deleteFramebuffer(WebGLId) { }
|
| @@ -267,6 +272,7 @@
|
| virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { }
|
|
|
| protected:
|
| + unsigned m_nextTextureId;
|
| Attributes m_attrs;
|
| };
|
|
|
|
|