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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 1341423006: Removing GL context rate limiting feature and related wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 2572cd6df23fdc743abdefbf46b397f044c33c3b..6c6735f308abb9a635bd82f4b5e51939efa748d5 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -855,30 +855,6 @@ void LayerTreeHost::ApplyScrollAndScale(ScrollAndScaleSet* info) {
}
}
-void LayerTreeHost::StartRateLimiter() {
- if (inside_begin_main_frame_)
- return;
-
- if (!rate_limit_timer_.IsRunning()) {
- rate_limit_timer_.Start(FROM_HERE,
- base::TimeDelta(),
- this,
- &LayerTreeHost::RateLimit);
- }
-}
-
-void LayerTreeHost::StopRateLimiter() {
- rate_limit_timer_.Stop();
-}
-
-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.
- proxy_->ForceSerializeOnSwapBuffers();
- client_->RateLimitSharedMainThreadContext();
-}
-
void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) {
if (device_scale_factor == device_scale_factor_)
return;

Powered by Google App Engine
This is Rietveld 408576698