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

Unified Diff: cc/CCTextureUpdateController.h

Issue 10916292: Adaptively throttle texture uploads (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Do not vary partial upload limit Created 8 years, 3 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/CCTextureUpdateController.cpp » ('j') | cc/CCTextureUpdateController.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCTextureUpdateController.h
diff --git a/cc/CCTextureUpdateController.h b/cc/CCTextureUpdateController.h
index 61e0f6ce3257333449bbafb313b95ebf22be5116..b634be1c65de25e99af023cab3c23f4fa386df22 100644
--- a/cc/CCTextureUpdateController.h
+++ b/cc/CCTextureUpdateController.h
@@ -49,6 +49,8 @@ public:
protected:
CCTextureUpdateController(CCTextureUpdateControllerClient*, CCThread*, PassOwnPtr<CCTextureUpdateQueue>, CCResourceProvider*, TextureCopier*, TextureUploader*);
+ static size_t maxFullUpdatesPerTick(TextureUploader*);
+
// This returns true when there were textures left to update.
bool updateMoreTexturesIfEnoughTimeRemaining();
void updateMoreTexturesNow();
@@ -61,6 +63,7 @@ protected:
TextureCopier* m_copier;
TextureUploader* m_uploader;
double m_monotonicTimeLimit;
+ size_t m_textureUpdatesPerTick;
bool m_firstUpdateAttempt;
};
« no previous file with comments | « no previous file | cc/CCTextureUpdateController.cpp » ('j') | cc/CCTextureUpdateController.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698