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

Unified Diff: cc/texture_uploader.cc

Issue 12284013: Shrink texture uploader when not visible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 7 years, 10 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
« no previous file with comments | « cc/texture_uploader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « cc/texture_uploader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698