Index: third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h |
diff --git a/third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h b/third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h |
index d41a81013b5a527cef1f69270a9b7ed7f83cb690..ff7c637e15a39ea6b563a644dfc519f01d0cc6c0 100644 |
--- a/third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h |
+++ b/third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h |
@@ -47,8 +47,6 @@ public: |
virtual void synthesizeGLError(WGC3Denum) { } |
- virtual bool isContextLost() { return m_contextLost; } |
- |
virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, WGC3Dsizeiptr size, WGC3Denum access) { return 0; } |
virtual void unmapBufferSubDataCHROMIUM(const void*) { } |
virtual void* mapTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, WGC3Denum access) { return 0; } |
@@ -285,6 +283,9 @@ public: |
virtual WebString getTranslatedShaderSourceANGLE(WebGLId) { return WebString(); } |
+ // Don't use this, make a MockGLES2Interface instead. |
+ virtual gpu::gles2::GLES2Interface* getGLES2Interface() { return nullptr; } |
+ |
void fakeContextLost() { m_contextLost = true; } |
protected: |
unsigned m_nextTextureId; |