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

Unified Diff: cc/CCTextureUpdateController.h

Issue 10933095: cc: Remove resource updates from scheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 3d485a7eea32dd92c357f1244744ae499c9420bb..cae20f98f67df66bf2cbc43df16b3bcceeb777b3 100644
--- a/cc/CCTextureUpdateController.h
+++ b/cc/CCTextureUpdateController.h
@@ -35,13 +35,15 @@ public:
virtual ~CCTextureUpdateController();
- void updateMoreTextures(double monotonicTimeLimit);
+ // updateTexturesCompleted() will be called when finished.
+ void start();
+
+ void updateAllTexturesNow();
// CCTimerClient implementation.
virtual void onTimerFired() OVERRIDE;
// Virtual for testing.
- virtual double monotonicTimeNow() const;
virtual double updateMoreTexturesTime() const;
virtual size_t updateMoreTexturesSize() const;
@@ -49,18 +51,14 @@ protected:
CCTextureUpdateController(CCTextureUpdateControllerClient*, CCThread*, PassOwnPtr<CCTextureUpdateQueue>, CCResourceProvider*, TextureCopier*, TextureUploader*);
// This returns true when there were textures left to update.
- bool updateMoreTexturesIfEnoughTimeRemaining();
- void updateMoreTexturesNow();
+ bool updateMoreTextures();
CCTextureUpdateControllerClient* m_client;
OwnPtr<CCTimer> m_timer;
OwnPtr<CCTextureUpdateQueue> m_queue;
- bool m_contentsTexturesPurged;
CCResourceProvider* m_resourceProvider;
TextureCopier* m_copier;
TextureUploader* m_uploader;
- double m_monotonicTimeLimit;
- 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