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

Unified Diff: third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h

Issue 1790753002: Expose GLES2Interface to blink, and delete isContextLost() from WGC3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wgc3d: deps-for-tests Created 4 years, 9 months 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: 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;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/test/MockGLES2Interface.h ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698