summaryrefslogtreecommitdiffstats
path: root/cc/ThrottledTextureUploader.h
diff options
context:
space:
mode:
authorbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-03 05:42:42 +0000
committerbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-03 05:42:42 +0000
commit31e1059266b867f8b2198da740614276a5360fee (patch)
tree991026dedb5bfba1ae23e4c4738baeb5d87928c9 /cc/ThrottledTextureUploader.h
parentbcd1eaf7295568d672bd856d6f6e4061bb3a5d2e (diff)
downloadchromium_src-31e1059266b867f8b2198da740614276a5360fee.zip
chromium_src-31e1059266b867f8b2198da740614276a5360fee.tar.gz
chromium_src-31e1059266b867f8b2198da740614276a5360fee.tar.bz2
cc: Measure texture upload time individually.
Measures each texture's upload time idividually to calculate an expected texture upload rate. Removes the need for beginUpload and endUpload. BUG=152631 Review URL: https://chromiumcodereview.appspot.com/11031018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/ThrottledTextureUploader.h')
-rw-r--r--cc/ThrottledTextureUploader.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/cc/ThrottledTextureUploader.h b/cc/ThrottledTextureUploader.h
index 96e44d8..f517401 100644
--- a/cc/ThrottledTextureUploader.h
+++ b/cc/ThrottledTextureUploader.h
@@ -28,8 +28,6 @@ public:
virtual size_t numBlockingUploads() OVERRIDE;
virtual void markPendingUploadsAsNonBlocking() OVERRIDE;
virtual double estimatedTexturesPerSecond() OVERRIDE;
- virtual void beginUploads() OVERRIDE;
- virtual void endUploads() OVERRIDE;
virtual void uploadTexture(CCResourceProvider*, Parameters) OVERRIDE;
private:
@@ -40,7 +38,7 @@ private:
virtual ~Query();
void begin();
- void end(size_t texturesUploaded);
+ void end();
bool isPending();
void wait();
unsigned value();
@@ -55,19 +53,19 @@ private:
unsigned m_queryId;
unsigned m_value;
bool m_hasValue;
- size_t m_texturesUploaded;
bool m_isNonBlocking;
};
ThrottledTextureUploader(WebKit::WebGraphicsContext3D*);
+ void beginQuery();
+ void endQuery();
void processQueries();
WebKit::WebGraphicsContext3D* m_context;
Deque<OwnPtr<Query> > m_pendingQueries;
Deque<OwnPtr<Query> > m_availableQueries;
std::deque<double> m_texturesPerSecondHistory;
- size_t m_texturesUploaded;
size_t m_numBlockingTextureUploads;
DISALLOW_COPY_AND_ASSIGN(ThrottledTextureUploader);