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

Unified Diff: cc/layer_tree_host.cc

Issue 12566033: cc: Chromify RateLimiter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « cc/layer_tree_host.h ('k') | cc/rate_limiter.h » ('j') | cc/rate_limiter.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host.cc
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
index b56bdde349ee8fc9ba7712703d158b3270f76325..349298fc17d7863940ae5360c85d2cba7d86257e 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -123,7 +123,7 @@ LayerTreeHost::~LayerTreeHost() {
s_num_layer_tree_instances--;
RateLimiterMap::iterator it = rate_limiters_.begin();
if (it != rate_limiters_.end())
- it->second->stop();
+ it->second->Stop();
if (root_layer_) {
// The layer tree must be destroyed before the layer tree host. We've
@@ -824,24 +824,24 @@ void LayerTreeHost::StartRateLimiter(WebKit::WebGraphicsContext3D* context3d) {
DCHECK(context3d);
RateLimiterMap::iterator it = rate_limiters_.find(context3d);
if (it != rate_limiters_.end()) {
- it->second->start();
+ it->second->Start();
} else {
scoped_refptr<RateLimiter> rate_limiter =
- RateLimiter::create(context3d, this, proxy_->MainThread());
+ RateLimiter::Create(context3d, this, proxy_->MainThread());
rate_limiters_[context3d] = rate_limiter;
- rate_limiter->start();
+ rate_limiter->Start();
}
}
void LayerTreeHost::StopRateLimiter(WebKit::WebGraphicsContext3D* context3d) {
RateLimiterMap::iterator it = rate_limiters_.find(context3d);
if (it != rate_limiters_.end()) {
- it->second->stop();
+ it->second->Stop();
rate_limiters_.erase(it);
}
}
-void LayerTreeHost::rateLimit() {
+void LayerTreeHost::RateLimit() {
// Force a no-op command on the compositor context, so that any ratelimiting
// commands will wait for the compositing context, and therefore for the
// SwapBuffers.
« no previous file with comments | « cc/layer_tree_host.h ('k') | cc/rate_limiter.h » ('j') | cc/rate_limiter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698