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

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: fixed mojo autogens 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
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 85790d703b3530b17f40aac9694e323ff12ec554..d5bbe6609d9523bb0778307c764d5770783b5139 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -87,7 +87,6 @@ scoped_ptr<LayerTreeHost> LayerTreeHost::CreateSingleThreaded(
LayerTreeHost::LayerTreeHost(InitParams* params)
: micro_benchmark_controller_(this),
next_ui_resource_id_(1),
- inside_begin_main_frame_(false),
needs_full_tree_sync_(true),
needs_meta_info_recomputation_(true),
client_(params->client),
@@ -223,9 +222,7 @@ void LayerTreeHost::BeginMainFrameNotExpectedSoon() {
}
void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) {
- inside_begin_main_frame_ = true;
client_->BeginMainFrame(args);
- inside_begin_main_frame_ = false;
}
void LayerTreeHost::DidStopFlinging() {
@@ -863,30 +860,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;
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698