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

Unified Diff: Source/WebKit/chromium/tests/FakeWebGraphicsContext3D.h

Issue 10690121: Merge 121076 - [chromium] LayerRendererChromium is not getting visibility messages in single thread… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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: 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;
};
« no previous file with comments | « Source/WebKit/chromium/tests/CCTiledLayerTestCommon.h ('k') | Source/WebKit/chromium/tests/LayerRendererChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698