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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 12278025: Shrink QueryTracker when freeing everything (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore buckets 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 | « no previous file | gpu/command_buffer/client/query_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index eb1dfcde6640d32d44bc8192ec3a7ef660304cb9..4a9fc0bf911e185850c0323bd573fb7acd264409 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -250,6 +250,7 @@ void GLES2Implementation::FreeUnusedSharedMemory() {
void GLES2Implementation::FreeEverything() {
Finish();
+ query_tracker_->Shrink();
FreeUnusedSharedMemory();
transfer_buffer_->Free();
helper_->FreeRingBuffer();
« no previous file with comments | « no previous file | gpu/command_buffer/client/query_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698