summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/tests/CCTextureUpdaterTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/tests/CCTextureUpdaterTest.cpp')
-rw-r--r--Source/WebKit/chromium/tests/CCTextureUpdaterTest.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/Source/WebKit/chromium/tests/CCTextureUpdaterTest.cpp b/Source/WebKit/chromium/tests/CCTextureUpdaterTest.cpp
index b7a26df2f..bfb35c048 100644
--- a/Source/WebKit/chromium/tests/CCTextureUpdaterTest.cpp
+++ b/Source/WebKit/chromium/tests/CCTextureUpdaterTest.cpp
@@ -51,12 +51,25 @@ class CCTextureUpdaterTest;
class WebGraphicsContext3DForUploadTest : public FakeWebGraphicsContext3D {
public:
- WebGraphicsContext3DForUploadTest(CCTextureUpdaterTest *test) : m_test(test) { }
+ WebGraphicsContext3DForUploadTest(CCTextureUpdaterTest *test)
+ : m_test(test)
+ , m_supportShallowFlush(true)
+ { }
+
virtual void flush(void);
+ virtual void shallowFlushCHROMIUM(void);
virtual GrGLInterface* onCreateGrGLInterface() { return 0; }
+ virtual WebString getString(WGC3Denum name)
+ {
+ if (m_supportShallowFlush)
+ return WebString("GL_CHROMIUM_shallow_flush");
+ return WebString("");
+ }
+
private:
CCTextureUpdaterTest* m_test;
+ bool m_supportShallowFlush;
};
@@ -231,6 +244,11 @@ void WebGraphicsContext3DForUploadTest::flush(void)
m_test->onFlush();
}
+void WebGraphicsContext3DForUploadTest::shallowFlushCHROMIUM(void)
+{
+ m_test->onFlush();
+}
+
void TextureUploaderForUploadTest::beginUploads()
{
m_test->onBeginUploads();