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

Unified Diff: cc/ThrottledTextureUploader.h

Issue 11028129: cc: Improve texture per second calculation and overhead (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Keep a sorted history and discard min/max Created 8 years, 2 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 | cc/ThrottledTextureUploader.cpp » ('j') | cc/ThrottledTextureUploader.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ThrottledTextureUploader.h
diff --git a/cc/ThrottledTextureUploader.h b/cc/ThrottledTextureUploader.h
index f51740158d124129061bdd09542ad133a11a0ae0..1b43bb7f3d8998b7da3b626dd92097de1c729095 100644
--- a/cc/ThrottledTextureUploader.h
+++ b/cc/ThrottledTextureUploader.h
@@ -8,7 +8,7 @@
#include "TextureUploader.h"
#include "base/basictypes.h"
-#include <deque>
+#include <set>
#include <wtf/Deque.h>
namespace WebKit {
@@ -65,7 +65,8 @@ private:
WebKit::WebGraphicsContext3D* m_context;
Deque<OwnPtr<Query> > m_pendingQueries;
Deque<OwnPtr<Query> > m_availableQueries;
- std::deque<double> m_texturesPerSecondHistory;
+ std::multiset<double> m_texturesPerSecondHistory;
+ int m_historyRemovalCount;
size_t m_numBlockingTextureUploads;
DISALLOW_COPY_AND_ASSIGN(ThrottledTextureUploader);
« no previous file with comments | « no previous file | cc/ThrottledTextureUploader.cpp » ('j') | cc/ThrottledTextureUploader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698