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

Unified Diff: cc/CCTextureUpdateController.h

Issue 10963039: cc: Always try to fill the upload queue. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase and improvements 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/CCTextureUpdateController.cpp » ('j') | no next file with comments »
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 74bb8ca957403e0c2107e8eeaa733815e170de96..f294f75a1d9c835ffdc64b7c201a6847174d192e 100644
--- a/cc/CCTextureUpdateController.h
+++ b/cc/CCTextureUpdateController.h
@@ -29,7 +29,7 @@ public:
{
return adoptPtr(new CCTextureUpdateController(client, thread, queue, resourceProvider, uploader));
}
- static size_t maxPartialTextureUpdates();
+ static int maxPartialTextureUpdates();
virtual ~CCTextureUpdateController();
@@ -45,18 +45,18 @@ public:
// Virtual for testing.
virtual base::TimeTicks now() const;
virtual base::TimeDelta updateMoreTexturesTime() const;
- virtual size_t updateMoreTexturesSize() const;
+ virtual int updateMoreTexturesSize() const;
protected:
CCTextureUpdateController(CCTextureUpdateControllerClient*, CCThread*, PassOwnPtr<CCTextureUpdateQueue>, CCResourceProvider*, TextureUploader*);
- static size_t maxFullUpdatesPerTick(TextureUploader*);
-
- size_t maxBlockingUpdates() const;
+ int maxBlockingUploads() const;
+ int targetBlockingUploads() const;
// This returns true when there were textures left to update.
+ int maxTexturesBeforeTimeLimit();
bool updateMoreTexturesIfEnoughTimeRemaining();
- void updateMoreTexturesNow();
+ void updateMoreTexturesNow(int maxTextures);
CCTextureUpdateControllerClient* m_client;
OwnPtr<CCTimer> m_timer;
@@ -65,7 +65,7 @@ protected:
CCResourceProvider* m_resourceProvider;
TextureUploader* m_uploader;
base::TimeTicks m_timeLimit;
- size_t m_textureUpdatesPerTick;
+ double m_estimatedTexturesPerSecond;
bool m_firstUpdateAttempt;
private:
« no previous file with comments | « no previous file | cc/CCTextureUpdateController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698