summaryrefslogtreecommitdiffstats
path: root/cc/test/test_web_graphics_context_3d.h
diff options
context:
space:
mode:
authormvujovic@adobe.com <mvujovic@adobe.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-21 05:59:57 +0000
committermvujovic@adobe.com <mvujovic@adobe.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-21 05:59:57 +0000
commit521ba29fe8dcf0b0e1216affac2a28d9d6e0cd34 (patch)
treeac7d157b3229a4135fe9570752b58d85e032c4bd /cc/test/test_web_graphics_context_3d.h
parent05a13914f19cf7f7d21c724d836021e263139157 (diff)
downloadchromium_src-521ba29fe8dcf0b0e1216affac2a28d9d6e0cd34.zip
chromium_src-521ba29fe8dcf0b0e1216affac2a28d9d6e0cd34.tar.gz
chromium_src-521ba29fe8dcf0b0e1216affac2a28d9d6e0cd34.tar.bz2
Make TestWebGraphicsContext3D capable of tracking texture parameters via texParameteri and getTexParameteriv
This makes bugs like http://crbug.com/274753 unit-testable. Review URL: https://codereview.chromium.org/57993005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_web_graphics_context_3d.h')
-rw-r--r--cc/test/test_web_graphics_context_3d.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h
index 5e876ef..4828720 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -47,6 +47,13 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
blink::WGC3Denum target,
blink::WebGLId texture_id);
+ virtual void texParameteri(blink::WGC3Denum target,
+ blink::WGC3Denum pname,
+ blink::WGC3Dint param);
+ virtual void getTexParameteriv(blink::WGC3Denum target,
+ blink::WGC3Denum pname,
+ blink::WGC3Dint* value);
+
virtual blink::WGC3Denum checkFramebufferStatus(blink::WGC3Denum target);
virtual Attributes getContextAttributes();
@@ -313,6 +320,8 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
void SwapBuffersComplete();
void CreateNamespace();
blink::WebGLId BoundTextureId(blink::WGC3Denum target);
+ scoped_refptr<TestTexture> BoundTexture(blink::WGC3Denum target);
+ void CheckTextureIsBound(blink::WGC3Denum target);
unsigned context_id_;
Attributes attributes_;