Index: cc/texture_uploader.cc |
diff --git a/cc/texture_uploader.cc b/cc/texture_uploader.cc |
index 56e73472ca62c3a6c60492d60d2e83b2e50b168f..8414a5ff0b46b864c7464868b7c660a865e9c8e0 100644 |
--- a/cc/texture_uploader.cc |
+++ b/cc/texture_uploader.cc |
@@ -196,6 +196,12 @@ void TextureUploader::flush() { |
m_numTextureUploadsSinceLastFlush = 0; |
} |
+void TextureUploader::releaseCachedQueries() |
+{ |
+ processQueries(); |
+ m_availableQueries.clear(); |
+} |
+ |
void TextureUploader::uploadWithTexSubImage(const uint8* image, |
const gfx::Rect& image_rect, |
const gfx::Rect& source_rect, |