Index: third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp b/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp |
index 8f7073ddfb7bd0577d1ef021b46c903c7951b251..3a4c093ab2718c0ec9a6e318f77aaa0bfaead07f 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp |
@@ -57,6 +57,13 @@ void WebGLTimerQueryEXT::updateCachedResult(gpu::gles2::GLES2Interface* gl) |
if (!hasTarget()) |
return; |
+ // If this is a timestamp query, set the result to 0 and make it available as we don't support timestamps in WebGL due to very poor driver support for them |
+ if (m_target == GL_TIMESTAMP_EXT) { |
+ m_queryResult = 0; |
+ m_queryResultAvailable = true; |
+ return; |
+ } |
+ |
// We can only update the cached result when control returns to the browser. |
m_canUpdateAvailability = false; |
GLuint available = 0; |