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

Unified Diff: cc/TextureUploader.h

Issue 10916292: Adaptively throttle texture uploads (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
Index: cc/TextureUploader.h
diff --git a/cc/TextureUploader.h b/cc/TextureUploader.h
index 1826fcbbe2125f2df36df66b4642894f7693a228..f54f8c33373c1191831b418b33efa41e63194e50 100644
--- a/cc/TextureUploader.h
+++ b/cc/TextureUploader.h
@@ -20,6 +20,9 @@ public:
virtual ~TextureUploader() { }
virtual bool isBusy() = 0;
+
+ // Returns our throughput on the GPU process
+ virtual double estimatedPixelsPerSecond() = 0;
virtual void beginUploads() = 0;
virtual void endUploads() = 0;
virtual void uploadTexture(CCResourceProvider*, Parameters) = 0;
« cc/CCThreadProxy.cpp ('K') | « cc/CCThreadProxy.cpp ('k') | cc/ThrottledTextureUploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698