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

Unified Diff: cc/TextureUploader.h

Issue 10916292: Adaptively throttle texture uploads (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: cc_unittests passing again 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 abb6089edf5ee78e1c8fbf1191e87eb282e01c70..de22f306b5ececc2a80494f4e9c2d012f473b07d 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;

Powered by Google App Engine
This is Rietveld 408576698