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

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

Issue 1834983003: Remove string-getting methods from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getactive: pointers 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 f7f3c1ba3328c79238502d28491fa76e4ffd8a56..929aaa2511c0b3e54ed098b1083454dee609a907 100644
--- a/third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h
+++ b/third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h
@@ -35,31 +35,8 @@ namespace blink {
// All operations are no-ops (returning 0 if necessary).
class MockWebGraphicsContext3D : public WebGraphicsContext3D {
public:
- MockWebGraphicsContext3D()
- : m_nextTextureId(1)
- , m_contextLost(false)
- {
- }
-
- virtual void blitFramebufferCHROMIUM(WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Dint dstY1, WGC3Dbitfield mask, WGC3Denum filter) { }
-
- virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&) { return false; }
- virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&) { return false; }
- virtual Attributes getContextAttributes() { return m_attrs; }
- virtual WebString getProgramInfoLog(WebGLId program) { return WebString(); }
- virtual WebString getShaderInfoLog(WebGLId shader) { return WebString(); }
- virtual WebString getShaderSource(WebGLId shader) { return WebString(); }
-
- 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;
- bool m_contextLost;
- Attributes m_attrs;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698